Expand description
2026-09-26: Running the shell command the model wrote, and bounding its time, memory and output.
Owner: bench, agentic. Invariants:
- Each command runs as
sh -cwith the sandbox as its working directory and, on unix, in its own process group. - While a command runs, at most
2 * CAPTURE_ENDbytes of each stream are held. truncatereturns at mostMAX_TOOL_OUTPUTbytes.
Functionsยง
- truncate
- 2026-09-26: Keep the head and tail of text longer than
MAX_TOOL_OUTPUTbytes, with a note giving the elided length in bytes. The result is at mostMAX_TOOL_OUTPUTbytes, so truncating it again returns it unchanged.