# Code Mode lets agents chain tool calls in one script instead of one per turn

> Original title: Why Agents Are Soon Only Going to Have 1 Tool

- Source: Philipp Schmid
- Published: 2026-11-01T00:00:00.000Z
- Bad Influence: https://badinfluence.news/items/sokcumj09fkqzk8y5qq1fiz6c
- Original: https://www.philschmid.de/code-mode

## Summary

Philipp Schmid describes Code Mode, where an agent harness exposes a single exec(code) tool and the model writes a script that chains actions in a sandbox. Only the final text summary returns to the model's context, instead of the raw output of each call. He includes a runnable Gemini example and notes that many existing tools built for bash may not integrate cleanly.
