What problem does it solve?
Long-running commands like builds, deploys, and dev servers block your workflow, and once terminal_exec auto-backgrounds a process you need a reliable way to monitor output, stream logs without duplication, and stop runaway processes gracefully.
Core Features & Use Cases
- Start-Poll-Wait Lifecycle: Launch jobs with terminal_job_start, stream output incrementally with terminal_job_logs using next_offset bookkeeping, or block until exit with wait_until_exit.
- Ring Buffer Management: Handles the 4 MB per-stream ring buffer, detects truncated_bytes_dropped when you fall behind, and supports merged or separate stdout/stderr streams.
- Signal Escalation & Stdin: Escalates SIGINT to SIGTERM to SIGKILL via terminal_job_manage, writes to process stdin, and takes over jobs auto-backgrounded by terminal_exec.
- Use Case: You kick off a 10-minute test suite, keep working on other tasks, poll its logs periodically with offset tracking, then gracefully interrupt it with SIGINT when you spot a failure early.
Quick Start
Start my build script as a background job, poll its logs until it finishes, and show me the final exit code.