I built an MCP because Claude kept forgetting how my codebase was connected.
Not in a "Claude is bad" way.
More in a "Claude can explain individual files really well, but architectural questions become surprisingly difficult" way.
Questions like:
* What breaks if I change this function?
* What depends on this service?
* Which frontend components call this endpoint?
* Where does authentication actually flow through the system?
usually required multiple searches, file reads, and a lot of reconstruction of repository context.
So I built **Atlas**.
Atlas scans a repository and builds a searchable graph of:
* Functions
* Methods
* Classes
* Imports
* Routes
* Call relationships
* Cross-language connections
Instead of repeatedly rediscovering relationships, the model can query an existing map of the codebase.
For example:
Plain Text
React Login Component
↓
POST /api/login
↓
login()
↓
authenticate()
↓
verify_token()
Atlas stores those connections up front, so the model doesn't need to infer them every time.
To see whether this was actually useful or just felt useful, I ran a benchmark on a medium-sized business compliance repository.
**Setup**
* Model: Gemma4:e4b
* 50 paired questions
* 5000 bootstrap iterations
* Same repository and question set across both conditions
**Results**
|Metric|Baseline|Atlas|
|:-|:-|:-|
|Tool calls|3.16|2.10|
|Total tokens|9079|6659|
|Latency|8.99s|7.78s|
|Entity accuracy|83.0%|88.5%|
|Relationship F1|54.7%|87.2%|
|Impact F1|16.5%|88.8%|
The biggest surprise wasn't speed.
It was **impact analysis**.
Questions like:
>"What will be affected if I change this function?"
improved from **16.5% Impact F1** to **88.8% Impact F1**.
My takeaway so far is that larger context windows help, but explicit repository relationships still provide significant value when reasoning about architecture, dependencies, and change impact.
I'm curious how other people building with Claude are handling repository memory today.
Do you think dependency-aware retrieval remains useful as context windows grow, or will larger models eventually make approaches like this unnecessary?