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
- Chaining dependent MCP tool calls: no rollback, duplicate risk — agentrsdg · 2026-09-11
- DeepMind-led paper makes design docs the source of truth, code disposable — SMART regenerates in 1.5-3h for ~$100 — Roger_M_Taylor · 2026-09-11
- Agent-built classifier labels 192k docs for $0.70 vs $13-26 with frontier LLMs — vanstriendaniel · 2026-09-11
- MathModelAgent gains traction: auto-solves math modeling and writes a submission-ready paper — jihe520 · 2026-09-11
- alphaXiv open-sources OpenResearch to run parallel research agents with any model — alphaXiv · 2026-09-11
- DeskcommCRM: open-source AI sales CRM with native agents and WhatsApp hits 1k stars — melgarafael · 2026-09-11