Background Bash
Long-running jobs don't block the agent -- bash_background returns a session id and keeps running.
What you'll see
- Launch
rysh; double-Esc to prompt mode. - Prompt: "start a long-running command in the background."
- The
bash_backgroundtool launches it and returns a session id; starting it is approval-gated -- pressy. - Narrate: output is captured in a 256KB ring buffer; the session persists until killed or the pane closes.
Commands shown
rysh
start a long-running ping to localhost in the background
y
Keys used
Transcript
0:00Long-running jobs don't block the agent -- bash_background returns a session id and keeps running.
0:03Start rysh in a project with something long-running, like a dev server.
0:08Double-press Escape for prompt mode.
0:13Ask it to start a long-running command in the background. The bash_background tool launches it and immediately returns a session id, so the agent stays free to keep working. Starting a background job is approval-gated -- press y to allow it.
0:32Output is captured in a 256-kilobyte ring buffer, and the session persists until you kill it or close the pane -- perfect for dev servers, watchers, and build daemons you want to leave running.
0:42Fire it off, get a session id, and move on.
bash_background runs long-lived jobs (dev servers, watchers) off the main loop, returning a session id, with a 256KB ring buffer for output.