MCPcopy Create free account
hub / github.com/codehamr/codehamr / Bash

Function Bash

internal/tools/bash.go:38–96  ·  view source on GitHub ↗

Bash runs one shell command through /bin/sh -c and returns combined stdout+stderr. Non-zero exit is not an error; the model sees the failure and reacts. A pre-cancelled parent (Ctrl+C raced the dispatch) returns "(cancelled)" before the blank-command check, so a trivially-cancelled call isn't mista

(parent context.Context, command string, timeout time.Duration)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 4

StringMethod · 0.95
droppedBytesMethod · 0.95
totalBytesMethod · 0.95
setProcessGroupFunction · 0.70