Context budget observatory
Measure whether code-graph context is worth its tokens in a repository: answer a fixed question set at several token budgets, find the smallest budget that reaches the best recall, list questions nothing finds, and track regressions between runs. Use for token budgets, context cost, retrieval quality, 'how many tokens does our assistant need', or checking that a change didn't make code search worse.
At a glance
- Kind
- Skill · Ananke
skill - Reference
neo-pragnya-mcp/context-budget-observatory·ananke://skill/neo-pragnya-mcp/context-budget-observatory@1.0.0- Files
- 1 · 1.6 KB
- How it's used
- Skills load on demand: the agent sees this skill's name and description, and opens SKILL.md (and any bundled references or scripts) when a task matches.
Where it fits
- Role
- Developer
- Platform
- Ananke PlexusClaude CodeGitHub Copilot
- Needs
- Nothing (text only)
Facets suggested from the item's own text and tags, not yet reviewed. Facets say where an item is relevant, not that it will run in your setup. How facets work
Checked by Dex
Verified, not self-reported: dex-trove 0.3.16 installed this item into each layout and checked that the tool can load it. Dex collects no download or usage data.
- Claude Code ✓ loads
- GitHub Copilot ✓ loads
Documentation
View upstream ↗Uses Ananke Plexus (ananke context observe). Nothing leaves the machine.
Steps
-
Write 10 to 30 questions people really ask about the code, each with the symbols a good answer must name:
[{"question": "how are refunds approved", "expect": ["approve_refund"]}, {"question": "where is the invoice total rounded", "expect": ["round_total", "Invoice"]}] -
Measure and record:
uvx --from ananke-plexus ananke context observe questions.json --record -
Read the table: recall, tokens, the full-file baseline and recall per thousand tokens at each budget. The knee is the smallest budget with the best recall; set your assistant’s budget there.
-
Questions found at no budget are the useful ones: rename the code, add a docstring, or fix the question.
-
Run it again after big changes. Since the previous run lists questions whose recall dropped or whose cost rose by more than a fifth.
Rules
- Keep the question set fixed between runs, or the comparison means nothing; add new questions in a new file.
- Recall counts expected symbols, not answer quality; read a few answers yourself.