Skip to content

Project root from git; bounded MCP calls; unittest suggestions - #12

Merged
IronAdamant merged 1 commit into
mainfrom
ab-turn-reduction
Nov 21, 2026
Merged

IronAdamant merged 1 commit into
mainfrom
ab-turn-reduction

Conversation

@IronAdamant

Copy link
Copy Markdown
Owner

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.

  • With no CHISEL_PROJECT_DIR the 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).
  • Every MCP tool takes project_dir, so one server serves several repos.
  • Over MCP, analyze/update run as jobs and reply within CHISEL_MCP_WAIT_SECS (default 25) or return auto_queued with a job id; job_status waits and returns the result. Failed jobs are now reported failed.
  • Suggests python3 -m unittest unless the project uses pytest.
  • diff_impact re-indexes up to 50 changed files missing from the store instead of answering stale_db (--no-auto-update keeps the old answer).
  • Behaviour change: the CLI refuses a non-git project with no project dir.

Tests: 205 passed, 0 failed (7 new).

🤖 Generated with Claude Code

https://claude.ai/code/session_01CMYkof71Xqja8SuCE7xLfk

- 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
@IronAdamant
IronAdamant merged commit 8d10c2f into main Nov 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant