feat: Add dynamic codegraph_explore call budgets based on project size

Replaces fixed 6-call limit with adaptive budgets that scale from 2 calls for small projects (
This commit is contained in:
Colby McHenry
2026-04-06 09:21:49 -05:00
parent 8e8759ff13
commit 77432fe4ea
4 changed files with 53 additions and 3 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ CodeGraph builds a semantic knowledge graph of codebases for faster, smarter cod
> This project has CodeGraph initialized (.codegraph/ exists). Use `codegraph_explore` as your PRIMARY tool — it returns full source code sections from all relevant files in one call.
>
> **Rules:**
> 1. Make at most 6 `codegraph_explore` calls — one broad query, then up to 5 focused follow-ups.
> 1. Follow the explore call budget in the `codegraph_explore` tool description — it scales automatically based on project size.
> 2. Do NOT re-read files that codegraph_explore already returned source code for. The source sections are complete and authoritative.
> 3. Only fall back to grep/glob/read for files listed under "Additional relevant files" if you need more detail, or if codegraph returned no results.