Skip to content

Release v6.9.0: shell-first exploration, Bash tool, faster agent loop - #131

Merged
code-crusher merged 1 commit into
mainfrom
feat/shell-first-bash-tool
Oct 3, 2026
Merged

code-crusher merged 1 commit into
mainfrom
feat/shell-first-bash-tool

Conversation

@code-crusher

Copy link
Copy Markdown
Member

Summary

Ports orbcode's v6.9.0 "faster agent loop" and the shell-first/Bash change (MatterAIOrg/OrbCode#59) to the extension, adapted to this codebase.

  • Shell-first exploration: search_files / list_files are no longer offered; the model uses rg/find/ls/git through the shell tool. Prompt sections (tool guide, capabilities, rules, objective, guidelines, env details) updated.
  • Read-only commands skip approval in every mode (including "Ask"): src/core/tools/readOnlyCommand.ts, conservative allowlist (no redirects/substitution/-exec/-delete, etc.); isDangerous still wins.
  • Bash tool name: model-facing only. Internal name stays execute_command; src/shared/toolAliases.ts translates incoming calls and outgoing history.
  • Bash exec shell: the execa path prefers bash (Git Bash on Windows) over the terminal profile; the system prompt states the shell and warns on cmd.exe.
  • 6.9.0 pieces that were missing: lean "Working style" prompt block, stale tool-result pruning (40% trigger, last 4 kept, batches of 6, reset on condense), closest-region hint on failed edits.
  • Version bumped to 6.9.0 with changelog.

Already present here and so not ported: whitespace/CRLF-tolerant edits, auto-condense, repeat detection, process-tree kill. Not ported: bench/, parallel read-only shell commands (parallel terminals share one interactive ask).

Test plan

  • tsc --noEmit (src)
  • New specs: readOnlyCommand, staleToolResults; updated tool-contract/prompt specs and 9 prompt snapshots
  • Full src vitest: 434 failures both on clean main and on this branch, none new (35 more passing tests)
  • Manual: search/list via Bash in all three approval modes, a write command still prompts in "Ask"
  • Manual: fish/csh users, Windows with and without Git for Windows
  • Manual: resume a task saved before the rename

🤖 Generated with Claude Code

…ing, closest-region edit hints

- Stop offering search_files/list_files; the model uses rg/find/ls via the shell tool, and read-only commands skip approval in every command approval mode.
- Show execute_command to the model as Bash (internal name unchanged, translated at the boundary).
- Run commands in bash (Git Bash on Windows) instead of the terminal profile shell.
- Replace deliberation-heavy prompt sections with a short Working style block.
- Stub stale bulky tool results in the outgoing request past 40% of the context window.
- Show the closest file region when an edit's old_string is not found.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@code-crusher
code-crusher merged commit 50e4168 into main Oct 3, 2026
2 of 9 checks passed
@code-crusher
code-crusher deleted the feat/shell-first-bash-tool branch October 3, 2026 12:01
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