▲ 3 r/cursor

I was getting frustrated with how AI coding agents navigate large repos, so I started building some helper scripts

I've been spending a lot of time using Codex and Antigravity on a fairly large Laravel + React project.

After a while I noticed the same patterns over and over again.

The agent would:

  • read way more terminal output than necessary
  • dump huge files just to inspect a single function
  • repeat similar searches across multiple folders
  • burn through context on information it never actually used
  • end up asking for approval dozens of times because of lots of tiny shell commands

The models themselves weren't really the problem. The workflow was.

So I started writing a small set of PowerShell helper scripts to guide repository navigation instead of letting the agent freely explore everything.

Things like:

  • compacting noisy build/test output
  • investigating a feature across multiple folders with a single command
  • reading specific symbols instead of entire files
  • keeping searches focused
  • reducing repeated repository exploration

I'm still experimenting with the workflow, but it's already made a noticeable difference for me.

I'm curious how everyone else is approaching this.

Do you just let your agent explore freely, or have you built your own tooling/rules to keep context usage under control?

If people are interested, I'm happy to share what I've built in the comments.

reddit.com
u/yxf2y — 3 days ago

I was getting frustrated with how AI coding agents navigate large repos, so I started building some helper scripts

I've been spending a lot of time using Codex and Antigravity on a fairly large Laravel + React project.

After a while I noticed the same patterns over and over again.

The agent would:

  • read way more terminal output than necessary
  • dump huge files just to inspect a single function
  • repeat similar searches across multiple folders
  • burn through context on information it never actually used
  • end up asking for approval dozens of times because of lots of tiny shell commands

The models themselves weren't really the problem. The workflow was.

So I started writing a small set of PowerShell helper scripts to guide repository navigation instead of letting the agent freely explore everything.

Things like:

  • compacting noisy build/test output
  • investigating a feature across multiple folders with a single command
  • reading specific symbols instead of entire files
  • keeping searches focused
  • reducing repeated repository exploration

I'm still experimenting with the workflow, but it's already made a noticeable difference for me.

I'm curious how everyone else is approaching this.

Do you just let your agent explore freely, or have you built your own tooling/rules to keep context usage under control?

If people are interested, I'm happy to share what I've built in the comments.

reddit.com
u/yxf2y — 3 days ago

I was getting frustrated with how AI coding agents navigate large repos, so I started building some helper scripts

I've been spending a lot of time using Codex and Antigravity on a fairly large Laravel + React project.

After a while I noticed the same patterns over and over again.

The agent would:

  • read way more terminal output than necessary
  • dump huge files just to inspect a single function
  • repeat similar searches across multiple folders
  • burn through context on information it never actually used
  • end up asking for approval dozens of times because of lots of tiny shell commands

The models themselves weren't really the problem. The workflow was.

So I started writing a small set of PowerShell helper scripts to guide repository navigation instead of letting the agent freely explore everything.

Things like:

  • compacting noisy build/test output
  • investigating a feature across multiple folders with a single command
  • reading specific symbols instead of entire files
  • keeping searches focused
  • reducing repeated repository exploration

I'm still experimenting with the workflow, but it's already made a noticeable difference for me.

I'm curious how everyone else is approaching this.

Do you just let your agent explore freely, or have you built your own tooling/rules to keep context usage under control?

If people are interested, I'm happy to share what I've built in the comments.

reddit.com
u/yxf2y — 3 days ago
▲ 7 r/opencodeCLI+1 crossposts

I got tired of AI coding agents wasting context, so I built a small PowerShell toolkit for it

I've been using Codex and Antigravity on a fairly large Laravel + React codebase, and I kept running into the same issues:

  • reading hundreds of lines of terminal output
  • dumping entire files just to inspect one method
  • repeating the same searches across multiple folders
  • burning through context on things that weren't actually useful
  • constantly approving dozens of tiny shell commands

I realized the problem wasn't the models themselves—it was how they were navigating the repository.

So over the last couple of weeks I started building a small set of PowerShell helper scripts to guide the agent instead of letting it freely dump files or spam terminal commands.

Some examples:

  • compact noisy terminal output (npm build, php artisan test, etc.)
  • investigate a feature across multiple folders in one command instead of five or six searches
  • navigate directly to classes/functions instead of reading huge files
  • search without dumping hundreds of matches
  • smoke-test the helper scripts themselves

The goal isn't to replace the AI. It's to reduce unnecessary context usage and make the agent behave a bit more like an experienced developer who knows where to look.

I cleaned it up and published it here if anyone wants to try it:

https://github.com/grafikerdem/agent-context-economy

I'm genuinely interested in feedback.

If you're using Codex, Claude Code, Cursor, Antigravity, Windsurf, or similar tools, what annoys you the most during large-repository navigation?

Maybe there are workflows I'm completely missing.

u/yxf2y — 2 days ago
▲ 6 r/opencodeCLI+1 crossposts

I was getting frustrated with how AI coding agents navigate large repos, so I started building some helper scripts

I've been spending a lot of time using Codex and Antigravity on a fairly large Laravel + React project.

After a while I noticed the same patterns over and over again.

The agent would:

  • read way more terminal output than necessary
  • dump huge files just to inspect a single function
  • repeat similar searches across multiple folders
  • burn through context on information it never actually used
  • end up asking for approval dozens of times because of lots of tiny shell commands

The models themselves weren't really the problem. The workflow was.

So I started writing a small set of PowerShell helper scripts to guide repository navigation instead of letting the agent freely explore everything.

Things like:

  • compacting noisy build/test output
  • investigating a feature across multiple folders with a single command
  • reading specific symbols instead of entire files
  • keeping searches focused
  • reducing repeated repository exploration

I'm still experimenting with the workflow, but it's already made a noticeable difference for me.

I'm curious how everyone else is approaching this.

Do you just let your agent explore freely, or have you built your own tooling/rules to keep context usage under control?

If people are interested, I'm happy to share what I've built in the comments.

reddit.com
u/yxf2y — 3 days ago