94% Fewer Tokens? I Tested Gortex With Claude Code — Transcript
Full transcript
- 0:00Your AI coding agent might be wasting
- 0:02thousands of tokens just trying to
- 0:04understand the code. You ask a simple
- 0:07question like what calls this function
- 0:09and instead of giving you an answer, it
- 0:11starts reading files, grapping for
- 0:13references, opening more files, and
- 0:15burning through your context window. But
- 0:18what if it didn't need to do any of
- 0:20that? This is Goreex, a free open-
- 0:23source tool that tries to fix this. In
- 0:25one example published by the project, it
- 0:28took a task from 11,500 tokens down to
- 0:32just 688. That's 94% fewer tokens. But
- 0:37is it actually useful or just another
- 0:38tool for your agent to actually ignore?
- 0:41Let's test it.
- 0:47So, Gortex builds a knowledge graph of
- 0:50your codebase like many of the other
- 0:52tools. So it maps out the functions,
- 0:55dependencies, callers, interfaces, and
- 0:58how everything connects. Instead of
- 1:01searching through files to figure out
- 1:02those relationships, your agent can just
- 1:05ask the graph. Now, it claims to support
- 1:07about 257 languages while being able to
- 1:11work across multiple repos and updates
- 1:14as you change your code. It even
- 1:16estimates how many tokens you're saving.
- 1:19Now, let's see what happens when we give
- 1:21it a real repo. If you enjoy coding
- 1:23tools to speed up your workflow, be sure
- 1:25to subscribe. We have videos coming out
- 1:27all the time, right? I'm on my Mac here
- 1:29and getting Gortex running is easy
- 1:32enough. First, I need to run the
- 1:34installer, which downloads everything.
- 1:36Then, I need to open a new terminal. So,
- 1:38the binary is on my path. I'm going to
- 1:41run run Gortex install to set up the
- 1:45agent integrations and follow that up
- 1:47with Gortex Damon start detach to launch
- 1:50the background Damon. Now we're done. So
- 1:54what did I not need here? Well, I didn't
- 1:56need Docker. I didn't need a virtual
- 1:57environment. I didn't need some separate
- 1:58database service to configure. Now we
- 2:02need to give it some code. So I'll use
- 2:04this payments API repo. Clone it. And
- 2:07then we're going to track it with Gortex
- 2:09track. Move into the project directory.
- 2:12And I can run Gortex in it with the
- 2:15analyze flag. This builds the initial
- 2:18index and creates the project
- 2:19configuration for the agent. And if we
- 2:22check the Damon status, we can see that
- 2:24Gortex has indexed our repo. But that
- 2:27doesn't mean much unless we can actually
- 2:29use it. So let's fire up Cloud Code.
- 2:33Here's a pretty common problem. You've
- 2:35got a function you need to change, but
- 2:38you're not sure what else depends on
- 2:40this function in that code. So I'll ask
- 2:42Claude to trace the call chain for
- 2:45process payment. show what could be
- 2:47affected if I change its signature and
- 2:50find the tests that cover the affected
- 2:53code. I'll also tell it to use Gortex's
- 2:56graph tools first. Now, normally this is
- 2:59where the agent starts grepping through
- 3:00the repo. It finds the function, reads
- 3:02the file, follows the references, and
- 3:04keeps going until it has enough context.
- 3:07But look at the tool calls here. With
- 3:09Gortex, the agent can query those
- 3:12relationships directly. we can see what
- 3:14calls this function, what other parts of
- 3:17code depend on it, and which tests might
- 3:19be relevant without dumping entire files
- 3:22into the context. Now, this doesn't mean
- 3:25those tests will definitely break. We'd
- 3:28still need to run them, but we've
- 3:30already narrowed down where to look, and
- 3:32that's helpful to speed things up on our
- 3:34end. But understanding one function
- 3:36inside this whole repo is just a small
- 3:39part of probably a much bigger issue.
- 3:42What happens when your change affects
- 3:45another service? Let's add a second
- 3:48repo. Now we've got a front end and
- 3:51backend. Our front end calls a payment
- 3:54endpoint exposed by the backend. So I'll
- 3:57track the second repo, then ask Claude
- 4:00to check the API contracts between two
- 4:03repos, find any mismatched or unmatched
- 4:06endpoints, and show where the front end
- 4:08calls them. And this is where Gortex
- 4:10gets interesting. It can track
- 4:13relationships across both repositories
- 4:16and look for API contract mismatches. So
- 4:19instead of manually searching through
- 4:21the front end and back end, the agent
- 4:23can investigate those connections
- 4:25through the graph. That's especially
- 4:27useful when a seemingly small change
- 4:30could affect another service. So how
- 4:32does Gortex actually know all these
- 4:34relationships in the first place? Well,
- 4:36it starts with tree sitter, which parses
- 4:39your source code and identifies things
- 4:41like functions, classes, imports, that
- 4:43fun stuff. For major languages, Gortex
- 4:46also uses deeper resolution techniques.
- 4:49These are things like language server
- 4:51integration that helps understand how
- 4:53those pieces connect and it stores those
- 4:56relationships in a knowledge graph. So
- 4:58instead of treating your code as a bunch
- 5:00of separate files, it understands the
- 5:02connections between them. Now, for
- 5:04example, this function calls another
- 5:06function which depends on another
- 5:09service and your agent can ask specific
- 5:12questions about those relationships
- 5:14using MCP tools. Things like call
- 5:16change, dependencies, change impact or
- 5:19just like a data flow analysis. But
- 5:22there's another problem with code
- 5:24graphs. What happens when you change
- 5:26your code? Well, Gortex runs a Damon
- 5:30that watches your files and updates the
- 5:32relevant parts of the graph. So, it
- 5:35doesn't need to rebuild everything from
- 5:36scratch every time you make a change.
- 5:39And because indexing runs locally, you
- 5:42don't need to send your entire codebase
- 5:44to another cloud service. Although your
- 5:46coding agent might still send retrieve
- 5:48code to its model provider. Now,
- 5:50supporting 257 languages sounds awesome,
- 5:54but that doesn't mean the analysis is
- 5:56equally deep for every language. That's
- 5:58worth checking or just keep that in
- 6:00mind. Now, if you've been following code
- 6:02graph tools, you've probably noticed
- 6:05something. Gortex is not new here. It's
- 6:07not a loan here. We've already got
- 6:09Graphy, get Nexus, and I've looked at
- 6:12both of those in depth. Quite a few
- 6:14others are trying to solve similar
- 6:16problems. So, why is this a video? Why
- 6:18am I doing Goretex? What's different?
- 6:20Well, it depends on what you're working
- 6:22on. Graphy, it's interesting because it
- 6:25can connect your code with other project
- 6:27information like docs, PDFs, and
- 6:30supporting files. So, if you're trying
- 6:32to understand an entire project, not
- 6:34just the source code, it's really good.
- 6:37Then there's Git Nexus. This one was
- 6:39cool. It has a really nice browserbased
- 6:42graph explorer. That's why I liked it.
- 6:44along with call graphs, impact analysis,
- 6:46and yes, MCP support. Get Nexus supports
- 6:50cross repo analysis, too. So, that's not
- 6:52something only Goreex can do. Where
- 6:55Goreex is different is how everything
- 6:57fits together. You've got one native
- 6:59binary, a shared Damon handling multiple
- 7:02repos, live updates, API contract
- 7:04analysis, and tools for understanding
- 7:07the impact of your changes. And of
- 7:09course, the token saving dashboard.
- 7:11That's really cool because at least we
- 7:13get some kind of visibility into whether
- 7:15we're actually saving tokens or not. I
- 7:18wouldn't say Goreex is automatically
- 7:20better than the others. But for daily
- 7:22coding agent work, especially across
- 7:25multiple repos, there is a lot to like
- 7:28here with Goreex. Now, all this sounds
- 7:31good, but there are a few things you
- 7:32need to know before just installing it.
- 7:34I mean, you can play around with it, but
- 7:37first, the setup is really simple, super
- 7:40easy. I don't have to spin up a Docker
- 7:41service just to give my agent better
- 7:44context. The multiple repo support is
- 7:46useful, especially when you're working
- 7:48across services. And I like that Gortex
- 7:51actually tries to measure the tokens
- 7:53we're saving. Now, that's cool, but
- 7:56those savings are an estimate. It
- 7:58doesn't mean they're accurate. Gortex
- 8:00compares its graph queries against what
- 8:02a normal file reading workflow might
- 8:05consume. It doesn't know exactly what
- 8:08your model provider would have changed
- 8:10without it. So, I wouldn't treat the
- 8:11dashboard as proof you're saving, but it
- 8:15might be there. Then there's indexing.
- 8:17On a very large repo, memory usage can
- 8:20get pretty high. The project's own Linux
- 8:22kernel benchmarks involve several
- 8:23gigabytes of memory. It's also a
- 8:25relatively new project with a couple
- 8:27thousand stars on GitHub, and there has
- 8:30been some repo issues with Git Work
- 8:32trees and agent integration. One final
- 8:35problem, your agent can still ignore
- 8:38Goreex completely and go straight back
- 8:40to read and grab. So you'll want to
- 8:42check which tools it's actually using
- 8:44and make sure that it's following this.
- 8:46So after all this, are you going to use
- 8:48Gortex? Are you going to keep with Git
- 8:50Nexus? What are you doing? Well, it's
- 8:52worth trying out, especially if you're
- 8:54in that source code. Play around with
- 8:56it. Compare it to the tools. If you are
- 8:58using other tools like this, it can't
- 9:00hurt. The biggest benefit isn't just
- 9:03saving tokens. It's giving your agent
- 9:05the right context without filling its
- 9:07windows with code it doesn't even need
- 9:09to read in the first place. And that can
- 9:11make a real difference when you're
- 9:13trying to understand a complicated
- 9:14change. Now, if you're working on a tiny
- 9:16project, this like the other tools is
- 9:18honestly just an overkill. But all in
- 9:21all, that's Gortex. I'm Josh from Better
- 9:23Stack. If you enjoy coding tips and
- 9:25tricks like this, be sure to subscribe.
- 9:27We'll see you in another video.
- 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.