Repository navigation
Project root from git; bounded MCP calls; unittest suggestions - #12
Merged
Merged
Conversation
- with no CHISEL_PROJECT_DIR the root is the git root of the cwd; outside a repo nothing is scanned and calls must pass project_dir - every MCP tool takes project_dir; one server serves several repos - analyze/update run as jobs over MCP and reply within CHISEL_MCP_WAIT_SECS - suggest python3 -m unittest unless the project uses pytest - diff_impact re-indexes missing changed files instead of answering stale_db Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CMYkof71Xqja8SuCE7xLfk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found in an A/B experiment: agents built the same Python SQL engine with and without the tools. Each tool call costs the agent one turn, which re-reads the whole context (about 100k tokens), so these changes cut calls for the same job.
CHISEL_PROJECT_DIRthe project is the git root of the working directory. Outside a repo nothing is scanned (the server answered in 0.3 s instead of hanging for the 30-minute MCP timeout in a folder of ~50 repos).project_dir, so one server serves several repos.analyze/updaterun as jobs and reply withinCHISEL_MCP_WAIT_SECS(default 25) or returnauto_queuedwith a job id;job_statuswaits and returns the result. Failed jobs are now reportedfailed.python3 -m unittestunless the project uses pytest.diff_impactre-indexes up to 50 changed files missing from the store instead of answeringstale_db(--no-auto-updatekeeps the old answer).Tests: 205 passed, 0 failed (7 new).
🤖 Generated with Claude Code
https://claude.ai/code/session_01CMYkof71Xqja8SuCE7xLfk