Local context bridge for coding agents claims 91% fewer tokens in repo search

A developer is testing a local tool that changes how AI coding agents read codebases. In one repo-search test, it cut token usage by 91%. They are asking the OpenCode community for feedback.

When AI coding tools like Claude or Cursor analyze a codebase, they typically send large chunks of files — sometimes entire repositories — to the AI. This consumes a lot of tokens, which drives up API costs and slows responses. The tool being tested here is a 'context bridge' built on MCP (a standard protocol that lets AI tools connect to external capabilities), which selects only the relevant pieces of code and sends those instead of everything.

In one specific repo-search scenario, this approach reduced token usage by 91%. Fewer tokens means lower API bills and faster answers. The tool is still experimental and results may vary by project, but for solo developers and makers who rely heavily on AI coding assistants, this points to a potentially meaningful cost-saving technique worth watching.

Key points

  • 91% token reduction claimed in a repo-search test scenario
  • Uses MCP to send only relevant code snippets instead of full files to the AI
  • Fewer tokens = lower API costs and faster responses
  • Still experimental — the author is seeking real-world feedback from OpenCode users
  • Most relevant to developers who use AI coding tools like Claude, Cursor, or OpenCode heavily

Quick term guide

AI coding agents
AI tools that can help write, edit, or organize software code.
AI coding agent
An AI tool that can write, edit, and run code from your instructions.
coding agents
AI programs designed to autonomously perform tasks like writing or fixing code.
coding agent
An AI tool that writes or edits code from a person’s instructions.
AI coding tools
Programs like Claude, Cursor, or ChatGPT that write code for you when you describe what you want in plain language.
AI coding tool
Software that uses AI to help write, edit, or explain code.
context bridge
A tool that sits between your codebase and the AI, filtering information so only the relevant parts are passed along.
developers
Developers are people who build software, apps, or websites.
Read original