What changed for the business
Engineers and their assistants start every cross-service change from the same map of services, interfaces and callers, and the team sees what it spends on AI per person.
What it means for the team
- Model cost per question is 27% lower on the main product repository.
- Engineers get the services and callers behind a change in one question, instead of searching 3 repositories.
- Spend per person is visible for the first time, and it changed which models the team chose within the first month.
| Measure | Before | After | How we measured |
|---|---|---|---|
| Model cost per question | Baseline | 27% lower | Billed cost from real sessions on the same questions, with and without the graph. |
| Assistant turns per question | 13.2 | 7.8 | Counted from the session records of the same runs. |
| Setup on a new repository | Gathered by an engineer for each task | Under 10 minutes | Timed from install to a passing health check. |
| AI spend traced to a person or service | Keys on laptops, spend unknown | 100%, each with a budget | Gateway records: every request carries its own key. |
Cost and turns measured on a fixed set of questions in real assistant sessions during the first 2 months.
2 graph queries replace most of the file reads, so the question is answered in 8 turns instead of 13 and the billed cost is 27% lower on the main repository.
How it worked before
Cross-service changes needed context from several repositories. Engineers were copying that context together from each repository and reconstructing dependencies during review.
How it worked before
- A change across 3 services meant opening 3 repositories, finding the interfaces and callers, and pasting it all into the assistant.
- The assistant then searched the same files again, so a structural question took about 13 turns on the main repository.
- Nobody could say what the team spent on models per person, because provider keys sat on laptops.
What we built
A code graph gives engineers and their assistants the services, interfaces and callers behind a change in one query, and a gateway puts every model request on a key with a budget.
- 01
Retrieve relevant services and interfaces for a task.
- 02
Inspect dependencies before planning a cross-service change.
- 03
Use the dependency map to identify areas that need testing.
- 04
Prepare release notes from the changes for engineer review.
How we built it
- 01
Indexed each repository into a local code graph of definitions, calls and dependencies, refreshed by a hook after every change.
- 02
Exposed the graph to the assistants as a tool, so a question about callers or dependencies is answered from the index instead of a search across files.
- 03
Put every model request behind one gateway. Each engineer and each service has its own key with a budget, and provider keys stay off laptops.
- 04
Added a console that shows spend per person, team and model, and which sessions used the graph.
- 05
Wrote a benchmark: a fixed set of questions run through real assistant sessions with and without the graph, recording billed cost and turns.
Questions about this project
What context do engineers and assistants retrieve?
Services, interfaces, callers and dependencies from the code graph. An assistant pulls the ones a task needs in one query, so nobody pastes files from several repositories into a prompt.
How long does setup take on our repository?
Under 10 minutes for the graph and the gateway on a new repository. We then run your team's own questions with and without the graph, so the saving is measured on your code before anyone relies on it.
How should a team evaluate the cost of code-context retrieval?
Run the same questions with and without the graph in real sessions and compare billed cost, turns and rework. Keep model choice and pricing fixed across the comparison. We run the same benchmark on your repository first.
More case studies
All case studies →- Client support, online gamingStaff stopped copying client emails into Jira0 client emails staff copy into the tracker, down from every one
- Customer support, online gamingSpend and rota set on real resolutions36% of conversations resolved by the AI, against 53% claimed by the vendor
- Quality assurance, online gamingReleases no longer wait on testers18 min for the release check, down from 2 tester-days
- Human resources5 hours a week back for HR, payroll on time250 hrs a year of HR time back from reports and chasing