Quick Reference
Shell tools execute commands in a persistent bash session:| Tool | Agent | Features |
|---|---|---|
BashTool | Claude | Persistent, manual restart |
ShellTool | OpenAI | Auto-restart, dynamic timeout |
GeminiShellTool | Gemini | Simple execution |
| Tool | Agent | Style |
|---|---|---|
EditTool | Claude | str_replace based |
ApplyPatchTool | OpenAI | Unified diff |
GeminiEditTool | Gemini | Instruction-based |
BashTool (Claude)
Persistent bash shell. Session survives across calls. Agent must manually restart on timeout.bash_20250124 API.
ShellTool (OpenAI)
Auto-restarts on error. Supports multiple commands with per-command timeout.shell API.
GeminiShellTool
Simple command execution for Gemini and generic agents.EditTool (Claude)
File editor usingstr_replace. Maintains undo history.
view, create, str_replace, insert, undo_edit
text_editor_20250728 API. Paths must be absolute.
ApplyPatchTool (OpenAI)
Unified diff format for file modifications.GeminiEditTool
Instruction-based editing for Gemini.Role Exclusion
Shell tools sharerole="shell". Editor tools share role="editor". Only one per role can be active natively—prevents conflicts.