Safe and reliable system command execution for AI agents.
bash
echo '{"command": "ls -la"}' | node scripts/dist/index.js
bash
node scripts/dist/index.js --server --port 8080
curl -X POST http://localhost:8080/exec -H "Content-Type: application/json" -d '{"command": "ls -la"}'
CapabilityDescriptionSync ExecutionExecute command with timeout, wait for resultBackground ExecutionStart long tasks, get PID, query laterWatch WindowConfirm service startup before returning8KB Ring BufferHead-Tail dual buffer prevents OOMProcess ManagementQuery status, get logs, terminate processesMulti-Agent SharingHTTP service allows multiple agents to share state
Execute a command:
json
{
"command": "required - system command",
"workingDir": "optional - working directory",
"timeoutSeconds": "optional - default 30",
"runInBackground": "optional - default false",
"watchDurationSeconds": "optional - for service startup",
"env": "optional - custom environment variables"
}
Query process status.
Get process output logs.
Terminate a process.
List all background processes.
StatusMeaningsuccessCommand completed, exit code 0failedCommand failed, non-zero exittimeoutCommand killed after timeoutkilledProcess manually terminatedrunningBackground process active
See references/AGENT_GUIDE.md for detailed usage guide and examples.
MIT