r/AiBuilders • u/Independent-Flow3408 • 10d ago
I used Claude to help build an open-source code navigation tool. The hardest part was proving it actually helped
I've been working on an open-source project called SigMap, and I wanted to share what I've learned building it with Claude.
The original idea was simple: when coding agents work on unfamiliar repositories, they often spend a lot of time searching through files just to find where something is implemented.
I wondered whether giving them a compact, structured map of the repository would help.
So I started building SigMap.
What I built
SigMap is a local repository navigation tool and MCP server for AI coding agents.
It extracts code structure, builds a deterministic repository map, and lets agents search for relevant files and retrieve specific source lines.
The retrieval engine doesn't require embeddings, a vector database, or an LLM API.
How Claude helped
I've used Claude throughout development, particularly for:
- Planning the architecture and exploring different implementation approaches.
- Reviewing code and working through edge cases.
- Designing benchmarking experiments and evaluating the methodology.
- Thinking through tradeoffs between context size, token usage, cost, and agent performance.
But one thing I learned is that having an AI help develop something doesn't prove the result is useful.
That was probably the biggest challenge.
What surprised me
Initially, I was excited about how much smaller the repository context could become.
The benchmark showed roughly 95% token reduction compared with the raw-source representation.
That looked great.
But then I started asking a more difficult question:
Does a smaller repository map actually make a coding agent cheaper or faster?
I ran experiments with and without SigMap, including repositories the retrieval system hadn't been tuned on.
The full study contains 22,540 recorded agent runs.
For one lightweight configuration across 20 held-out repositories:
- API cost decreased by approximately 7%.
- Total token usage actually increased by 18%.
- Runtime was essentially unchanged (+1%).
A different prefetch approach reduced runtime by 18% and total tokens by 26%, but some repositories became more expensive.
So the answer wasn't nearly as simple as I expected.
A tool can reduce the amount of context it supplies without reducing total agent usage.
What I changed
Instead of exposing the full MCP toolset by default, the newer version starts fresh projects with just two navigation tools:
query_contextget_lines
The idea is to give the agent enough to locate code without adding unnecessary tools to every turn.
What still needs work
The experiments mainly measured code-location tasks.
They don't establish that SigMap makes agents produce better code or more correct patches.
That's the next problem I want to investigate.
I'm also interested in cases where SigMap performs worse than ordinary agent search. Those are useful findings, not something I want to hide.
The project is free and open source (MIT):
https://github.com/manojmallick/sigmap
Benchmark methodology and limitations:
https://sigmap.io/guide/agent-study
Question for other builders:
When you're developing AI tools with Claude or other coding agents, how do you distinguish between something that looks impressive in a benchmark and something that genuinely improves the developer experience?
I'd be interested in how others approach this, particularly when an optimization improves one metric but makes another worse.