YouTube2Text

94% Fewer Tokens? I Tested Gortex With Claude Code — Transcript

by Better Stack · 1,552 words · 236 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Your AI coding agent might be wasting
  2. 0:02thousands of tokens just trying to
  3. 0:04understand the code. You ask a simple
  4. 0:07question like what calls this function
  5. 0:09and instead of giving you an answer, it
  6. 0:11starts reading files, grapping for
  7. 0:13references, opening more files, and
  8. 0:15burning through your context window. But
  9. 0:18what if it didn't need to do any of
  10. 0:20that? This is Goreex, a free open-
  11. 0:23source tool that tries to fix this. In
  12. 0:25one example published by the project, it
  13. 0:28took a task from 11,500 tokens down to
  14. 0:32just 688. That's 94% fewer tokens. But
  15. 0:37is it actually useful or just another
  16. 0:38tool for your agent to actually ignore?
  17. 0:41Let's test it.
  18. 0:47So, Gortex builds a knowledge graph of
  19. 0:50your codebase like many of the other
  20. 0:52tools. So it maps out the functions,
  21. 0:55dependencies, callers, interfaces, and
  22. 0:58how everything connects. Instead of
  23. 1:01searching through files to figure out
  24. 1:02those relationships, your agent can just
  25. 1:05ask the graph. Now, it claims to support
  26. 1:07about 257 languages while being able to
  27. 1:11work across multiple repos and updates
  28. 1:14as you change your code. It even
  29. 1:16estimates how many tokens you're saving.
  30. 1:19Now, let's see what happens when we give
  31. 1:21it a real repo. If you enjoy coding
  32. 1:23tools to speed up your workflow, be sure
  33. 1:25to subscribe. We have videos coming out
  34. 1:27all the time, right? I'm on my Mac here
  35. 1:29and getting Gortex running is easy
  36. 1:32enough. First, I need to run the
  37. 1:34installer, which downloads everything.
  38. 1:36Then, I need to open a new terminal. So,
  39. 1:38the binary is on my path. I'm going to
  40. 1:41run run Gortex install to set up the
  41. 1:45agent integrations and follow that up
  42. 1:47with Gortex Damon start detach to launch
  43. 1:50the background Damon. Now we're done. So
  44. 1:54what did I not need here? Well, I didn't
  45. 1:56need Docker. I didn't need a virtual
  46. 1:57environment. I didn't need some separate
  47. 1:58database service to configure. Now we
  48. 2:02need to give it some code. So I'll use
  49. 2:04this payments API repo. Clone it. And
  50. 2:07then we're going to track it with Gortex
  51. 2:09track. Move into the project directory.
  52. 2:12And I can run Gortex in it with the
  53. 2:15analyze flag. This builds the initial
  54. 2:18index and creates the project
  55. 2:19configuration for the agent. And if we
  56. 2:22check the Damon status, we can see that
  57. 2:24Gortex has indexed our repo. But that
  58. 2:27doesn't mean much unless we can actually
  59. 2:29use it. So let's fire up Cloud Code.
  60. 2:33Here's a pretty common problem. You've
  61. 2:35got a function you need to change, but
  62. 2:38you're not sure what else depends on
  63. 2:40this function in that code. So I'll ask
  64. 2:42Claude to trace the call chain for
  65. 2:45process payment. show what could be
  66. 2:47affected if I change its signature and
  67. 2:50find the tests that cover the affected
  68. 2:53code. I'll also tell it to use Gortex's
  69. 2:56graph tools first. Now, normally this is
  70. 2:59where the agent starts grepping through
  71. 3:00the repo. It finds the function, reads
  72. 3:02the file, follows the references, and
  73. 3:04keeps going until it has enough context.
  74. 3:07But look at the tool calls here. With
  75. 3:09Gortex, the agent can query those
  76. 3:12relationships directly. we can see what
  77. 3:14calls this function, what other parts of
  78. 3:17code depend on it, and which tests might
  79. 3:19be relevant without dumping entire files
  80. 3:22into the context. Now, this doesn't mean
  81. 3:25those tests will definitely break. We'd
  82. 3:28still need to run them, but we've
  83. 3:30already narrowed down where to look, and
  84. 3:32that's helpful to speed things up on our
  85. 3:34end. But understanding one function
  86. 3:36inside this whole repo is just a small
  87. 3:39part of probably a much bigger issue.
  88. 3:42What happens when your change affects
  89. 3:45another service? Let's add a second
  90. 3:48repo. Now we've got a front end and
  91. 3:51backend. Our front end calls a payment
  92. 3:54endpoint exposed by the backend. So I'll
  93. 3:57track the second repo, then ask Claude
  94. 4:00to check the API contracts between two
  95. 4:03repos, find any mismatched or unmatched
  96. 4:06endpoints, and show where the front end
  97. 4:08calls them. And this is where Gortex
  98. 4:10gets interesting. It can track
  99. 4:13relationships across both repositories
  100. 4:16and look for API contract mismatches. So
  101. 4:19instead of manually searching through
  102. 4:21the front end and back end, the agent
  103. 4:23can investigate those connections
  104. 4:25through the graph. That's especially
  105. 4:27useful when a seemingly small change
  106. 4:30could affect another service. So how
  107. 4:32does Gortex actually know all these
  108. 4:34relationships in the first place? Well,
  109. 4:36it starts with tree sitter, which parses
  110. 4:39your source code and identifies things
  111. 4:41like functions, classes, imports, that
  112. 4:43fun stuff. For major languages, Gortex
  113. 4:46also uses deeper resolution techniques.
  114. 4:49These are things like language server
  115. 4:51integration that helps understand how
  116. 4:53those pieces connect and it stores those
  117. 4:56relationships in a knowledge graph. So
  118. 4:58instead of treating your code as a bunch
  119. 5:00of separate files, it understands the
  120. 5:02connections between them. Now, for
  121. 5:04example, this function calls another
  122. 5:06function which depends on another
  123. 5:09service and your agent can ask specific
  124. 5:12questions about those relationships
  125. 5:14using MCP tools. Things like call
  126. 5:16change, dependencies, change impact or
  127. 5:19just like a data flow analysis. But
  128. 5:22there's another problem with code
  129. 5:24graphs. What happens when you change
  130. 5:26your code? Well, Gortex runs a Damon
  131. 5:30that watches your files and updates the
  132. 5:32relevant parts of the graph. So, it
  133. 5:35doesn't need to rebuild everything from
  134. 5:36scratch every time you make a change.
  135. 5:39And because indexing runs locally, you
  136. 5:42don't need to send your entire codebase
  137. 5:44to another cloud service. Although your
  138. 5:46coding agent might still send retrieve
  139. 5:48code to its model provider. Now,
  140. 5:50supporting 257 languages sounds awesome,
  141. 5:54but that doesn't mean the analysis is
  142. 5:56equally deep for every language. That's
  143. 5:58worth checking or just keep that in
  144. 6:00mind. Now, if you've been following code
  145. 6:02graph tools, you've probably noticed
  146. 6:05something. Gortex is not new here. It's
  147. 6:07not a loan here. We've already got
  148. 6:09Graphy, get Nexus, and I've looked at
  149. 6:12both of those in depth. Quite a few
  150. 6:14others are trying to solve similar
  151. 6:16problems. So, why is this a video? Why
  152. 6:18am I doing Goretex? What's different?
  153. 6:20Well, it depends on what you're working
  154. 6:22on. Graphy, it's interesting because it
  155. 6:25can connect your code with other project
  156. 6:27information like docs, PDFs, and
  157. 6:30supporting files. So, if you're trying
  158. 6:32to understand an entire project, not
  159. 6:34just the source code, it's really good.
  160. 6:37Then there's Git Nexus. This one was
  161. 6:39cool. It has a really nice browserbased
  162. 6:42graph explorer. That's why I liked it.
  163. 6:44along with call graphs, impact analysis,
  164. 6:46and yes, MCP support. Get Nexus supports
  165. 6:50cross repo analysis, too. So, that's not
  166. 6:52something only Goreex can do. Where
  167. 6:55Goreex is different is how everything
  168. 6:57fits together. You've got one native
  169. 6:59binary, a shared Damon handling multiple
  170. 7:02repos, live updates, API contract
  171. 7:04analysis, and tools for understanding
  172. 7:07the impact of your changes. And of
  173. 7:09course, the token saving dashboard.
  174. 7:11That's really cool because at least we
  175. 7:13get some kind of visibility into whether
  176. 7:15we're actually saving tokens or not. I
  177. 7:18wouldn't say Goreex is automatically
  178. 7:20better than the others. But for daily
  179. 7:22coding agent work, especially across
  180. 7:25multiple repos, there is a lot to like
  181. 7:28here with Goreex. Now, all this sounds
  182. 7:31good, but there are a few things you
  183. 7:32need to know before just installing it.
  184. 7:34I mean, you can play around with it, but
  185. 7:37first, the setup is really simple, super
  186. 7:40easy. I don't have to spin up a Docker
  187. 7:41service just to give my agent better
  188. 7:44context. The multiple repo support is
  189. 7:46useful, especially when you're working
  190. 7:48across services. And I like that Gortex
  191. 7:51actually tries to measure the tokens
  192. 7:53we're saving. Now, that's cool, but
  193. 7:56those savings are an estimate. It
  194. 7:58doesn't mean they're accurate. Gortex
  195. 8:00compares its graph queries against what
  196. 8:02a normal file reading workflow might
  197. 8:05consume. It doesn't know exactly what
  198. 8:08your model provider would have changed
  199. 8:10without it. So, I wouldn't treat the
  200. 8:11dashboard as proof you're saving, but it
  201. 8:15might be there. Then there's indexing.
  202. 8:17On a very large repo, memory usage can
  203. 8:20get pretty high. The project's own Linux
  204. 8:22kernel benchmarks involve several
  205. 8:23gigabytes of memory. It's also a
  206. 8:25relatively new project with a couple
  207. 8:27thousand stars on GitHub, and there has
  208. 8:30been some repo issues with Git Work
  209. 8:32trees and agent integration. One final
  210. 8:35problem, your agent can still ignore
  211. 8:38Goreex completely and go straight back
  212. 8:40to read and grab. So you'll want to
  213. 8:42check which tools it's actually using
  214. 8:44and make sure that it's following this.
  215. 8:46So after all this, are you going to use
  216. 8:48Gortex? Are you going to keep with Git
  217. 8:50Nexus? What are you doing? Well, it's
  218. 8:52worth trying out, especially if you're
  219. 8:54in that source code. Play around with
  220. 8:56it. Compare it to the tools. If you are
  221. 8:58using other tools like this, it can't
  222. 9:00hurt. The biggest benefit isn't just
  223. 9:03saving tokens. It's giving your agent
  224. 9:05the right context without filling its
  225. 9:07windows with code it doesn't even need
  226. 9:09to read in the first place. And that can
  227. 9:11make a real difference when you're
  228. 9:13trying to understand a complicated
  229. 9:14change. Now, if you're working on a tiny
  230. 9:16project, this like the other tools is
  231. 9:18honestly just an overkill. But all in
  232. 9:21all, that's Gortex. I'm Josh from Better
  233. 9:23Stack. If you enjoy coding tips and
  234. 9:25tricks like this, be sure to subscribe.
  235. 9:27We'll see you in another video.
  236. 9:31>> [music]

About this transcript

This page contains the full transcript of 94% Fewer Tokens? I Tested Gortex With Claude Code by Better Stack, generated from the public captions YouTube serves with the video. The transcript has 1,552 words across 236 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.