Observation: Claude 3.5 Sonnet prefers Bash for file writing to reduce latency
lucasmeijer · x · 2026-07-22
Developer @lucasmeijer shared an interesting observation about AI coding agents: Claude 3.5 Sonnet (sol-medium) frequently uses bash commands to write files instead of directly invoking the built-in write tool.
The likely reason is that by using bash, the model can combine writing the file with the next command, avoiding the roundtrip delay caused by multiple tool calls. Although the model could theoretically achieve this by emitting parallel tool calls with parallel=false, it seems to naturally prefer this style to optimize execution efficiency.
Related event: LLs Generate Unconventional Bash Commands to Reduce Interactions(3 posts)→
More from coding & agent
- Kolab Benchmark Uses Pro Screen Recordings to Show AI Agents Overestimate Collaboration Quality — minnesotanlp · 2026-10-27
- Dev argues Claude burns far more tokens than GPT models for the same coding work — haider1 · 2026-10-27
- Stop building agents that can't change models: stable contracts, external state, real evals — rseroter · 2026-10-27
- Cheap models can cost more in agent harnesses than frontier ones, researcher warns — vasuman · 2026-10-27
- Kanzo: A 5k-Line Rust Kanban Binary With MCP for Claude Code and Codex — allmudi · 2026-10-27
- 'A human approves everything' is a trap: approval fatigue and how to actually design safe agents — Efistoffeles · 2026-10-27