Skip to main content

Module bash

Module bash 

Source
Expand description

Bash shell execution tool.

Structs§

BashTool
BashTool.
PtyOutcome
Outcome of a PTY-backed command run. The output is filtered to keep SGR color escapes (ESC [ ... m) and drop cursor-motion / screen-control sequences so the bytes are safe to embed in the agent transcript.

Functions§

run_in_pty
Run a command inside a real PTY (portable-pty). Output is merged (stderr is folded into stdout via exec 2>&1) and filtered. Returns the filtered output and the child’s exit code.