Problem
While exploring a recent Claude Code release, I noticed that its Auto-mode system prompt now includes the following instruction:
Do your work through the Bash tool wherever it can accomplish the job: read files with cat, head, or sed -n, search with grep and find, and make file changes with sed, heredocs, or short scripts, rather than using the dedicated Read, Edit, Write tools. Fall back to a dedicated tool only when Bash genuinely cannot do the job.
This reminded me of a problem I encountered shortly after I started using Claude Code around August 2025: long Write calls sometimes failed, and the model repeatedly retried the same tool with nearly the same payload because it had no alternative path.
- Dedicated tools (
Read, Edit, Write) give the product typed inputs, path validation, structured diffs, artifacts, and predictable UI events. They are easier to constrain, review, and potentially roll back. Their weakness is the fixed schema: when a tool or payload fails, the model may have no way to decompose the operation or switch strategies.
- Bash, CLI tools, and pipelines let the model compose its own workflow. It can split a large write, inspect intermediate results, switch to a heredoc or script, and recover using stderr and exit codes. The cost is weaker product control: arbitrary commands are harder to understand semantically, present as precise file changes, constrain, or roll back.
Claude Code adds this guidance only in Auto mode. My interpretation is that Auto's risk evaluation and approval boundary compensate for the reduced control of a general-purpose shell. This preserves CLI composability while keeping dedicated tools as a fallback.
Maka already has the relevant building blocks: Auto uses a managed workspace-write sandbox, Bash calls are audited, and dedicated file tools provide structured diffs and stronger filesystem semantics. It currently lacks mode-aware guidance for choosing between them.
Desired outcome
In managed Auto sessions, guide the model to:
- Prefer
Bash and composable CLI workflows when they improve inspection, transformation, or failure recovery.
- Use dedicated file tools when structured diffs, UI integration, or stronger filesystem controls matter.
- Keep the existing sandbox and approval boundary unchanged; CLI-first must not imply unrestricted shell access.
- Make shell-originated file changes reviewable where possible.
The policy should remain disabled for read-only or restricted tool profiles where Bash is unavailable or the same safety boundary cannot be enforced.
Alternatives or workarounds
- Prefer dedicated tools everywhere: better product control, but weaker recovery from tool-specific failures.
- Expose only Bash: maximum composability, but weaker structured review and safety semantics.
- Recommend Bash only after a dedicated tool fails: preserves the current default, but still makes the model enter avoidable retry loops before switching strategies.
Problem
While exploring a recent Claude Code release, I noticed that its Auto-mode system prompt now includes the following instruction:
This reminded me of a problem I encountered shortly after I started using Claude Code around August 2025: long
Writecalls sometimes failed, and the model repeatedly retried the same tool with nearly the same payload because it had no alternative path.Read,Edit,Write) give the product typed inputs, path validation, structured diffs, artifacts, and predictable UI events. They are easier to constrain, review, and potentially roll back. Their weakness is the fixed schema: when a tool or payload fails, the model may have no way to decompose the operation or switch strategies.Claude Code adds this guidance only in Auto mode. My interpretation is that Auto's risk evaluation and approval boundary compensate for the reduced control of a general-purpose shell. This preserves CLI composability while keeping dedicated tools as a fallback.
Maka already has the relevant building blocks: Auto uses a managed workspace-write sandbox, Bash calls are audited, and dedicated file tools provide structured diffs and stronger filesystem semantics. It currently lacks mode-aware guidance for choosing between them.
Desired outcome
In managed Auto sessions, guide the model to:
Bashand composable CLI workflows when they improve inspection, transformation, or failure recovery.The policy should remain disabled for read-only or restricted tool profiles where Bash is unavailable or the same safety boundary cannot be enforced.
Alternatives or workarounds