Skip to main content

Module bash

Module bash 

Source
Expand description

bash — run a shell command inside the workspace.

Executes host-local (sh -c) with the working directory pinned to the workspace root and a timeout. Streams stdout/stderr incrementally via ToolContext::emit_progress for UI implementations that display live terminal output.

Not strongly isolated; production deployments should run behind a containerized CodeExecutor (see the coding-agent design, §9). Mutating use requires Workspace::bash_allowed.

Structs§

BashTool
Runs a shell command in the workspace root with a timeout.