Skip to content
Skills Library
Programming · Automation

doom-runner

/doom-runner

Manage long-running commands started by bash: dev servers, watchers, builds, tails, and anything that prompts for input. Trigger when a command needs to outlive the current turn, when bash output was truncated, or when a background process needs to be inspected, followed, given input, or stopped.

Repository
doompi ↗
Licence
MIT
Last repository change
14.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 14.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Manage long-running commands started by bash: dev servers, watchers, builds, tails, and anything that prompts for input. Trigger when a command needs to outlive the current turn, when bash output was truncated, or when a background process needs to be inspected, followed, given input, or stopped.

Original author description

Manage long-running commands started by bash: dev servers, watchers, builds, tails, and anything that prompts for input. Trigger when a command needs to outlive the current turn, when bash output was truncated, or when a background process needs to be inspected, followed, given input, or stopped.

How it works

  1. Backgrounding
  2. CLI
  3. Rules
  4. Where things live
Original SKILL.md headings · 74 lines, 592 words
SKILL.md preview
---
name: doom-runner
description: 'Manage long-running commands started by bash: dev servers, watchers, builds, tails, and anything that prompts for input. Trigger when a command needs to outlive the current turn, when bash output was truncated, or when a background process needs to be inspected, followed, given input, or stopped.'
---

# doom-runner

`bash` supervises what it starts. A command that outlives the background
threshold keeps running instead of blocking the turn. Use the `doom-runner`
CLI to manage it without adding another model tool.

## Backgrounding

- A command still running after 60 seconds (`DOOM_RUNNER_BG_THRESHOLD_MS`) is
  moved to the background automatically. You get its unique ID and streaming
  log path.
- Pass `background: true` for commands you already know will not finish: dev
  servers, watchers, `tail -f`. Waiting out the threshold first wastes a turn.
- Pass `interactive: true` when the command will prompt for confirmation or
  input. It runs under a terminal and backgrounds immediately. Answer it with
  `doom-runner input <id> --text <text> --enter`, or use Runner Space.
- Pass `timeout` (seconds) when you want a command killed rather than
  supervised. A timeout above the threshold has no effect: the command is
  promoted first.
- Pass `name` to choose the runner name. A name already in use gets a numbered
  suffix.

## CLI

Run the CLI directly, without starting it through another supervised runner.
It inherits `PI_SESSION_ID` from the active Pi session and only accesses that
session's runners. A manual shell without `PI_SESSION_ID` fails closed.

Use the unique runner ID returned by `bash`:

| Command                                            | Purpose                                        |
| -------------------------------------------------- | ---------------------------------------------- |
| `doom-runner list [--all]`                         | List active runners, or include completed ones |
| `doom-runner status <id>`                          | Show command, state, backend, and log path     |
| `doom-runner logs <id> [--lines N] [--follow]`     | Read or stream the saved log                   |
| `doom-runner stop <id> [--reason <text>]`          | Stop one runner and keep its log               |
| `doom-runner stop-all [--reason <text>]`           | Stop active runners owned by this Pi session   |
| `doom-runner input <id> [--text <text>] [--enter]` | Send input to an interactive RMUX runner       |

## Rules

- **Read the log, do not re-run the command.** When output is truncated, the
  full text is already on disk. Use `doom-runner logs <id>` or standard file
  search tools against the reported path.
- **Read the truncation notice before reading the file.** It states the real
  file size and line count, so you do not read past the end.
- **CLI access is session-scoped.** `list`, direct ID commands, and `stop-all`
  only access runners owned by the inherited Pi session.
- **`input` needs `interactive: true`.** A normal runner does not expose stdin.
- **Stop what you no longer need.** Everything still running is stopped when
  the session ends, but a forgotten dev server holds a port until then.
- **You are told when a runner exits.** A completion message with the exit
  status and log path arrives on its own. Never sleep, poll, or pgrep to wait
  for one. Check a runner when you have a reason to, not on a loop.
- **Do not pipe to head or tail.** Results are already bounded and the full log
  is on disk. A tail pipe also leaves the live log empty until the command
  exits, which blanks the log pane in Runner Space.

## Where things live

Run metadata and logs sit under
`$PI_CODING_AGENT_DIR/doom-runner/<session-id>/{runs,logs}`. Without an
override, `$PI_CODING_AGENT_DIR` defaults to `~/.pi/agent`. Completed metadata
and complete raw logs remain readable for seven days.

RMUX is bundled for supported macOS and Linux platforms. Non-interactive runs
fall back to a supervised subprocess when RMUX is unavailable; interactive runs
require RMUX. Eligible simple commands use a command-specific RTK stdin filter
after completion. Compound shell commands and unsupported formats keep bounded
raw output.

`SPC r l` opens Runner Space. Escape returns from logs or an attached terminal.

Versions

RepositoryScoreLicence
This page · agiflow/doompi90MIT
agiflow/doompi90MIT

Database snapshot: 13.11.2026 · package version 23c844f750a8 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90background-bash
    WHAT: Decide when to run a shell command off-turn with the `bg_bash` tool instead of blocking the turn on the built-in `bash` tool, and how to poll / steer / collect it across turns. WHEN: A command is long-running (dev server, build, watch, test suite, training run, log tail)…
  • 92write-script-bash
    MUST use when writing Bash scripts.
  • 90bash
    Bash scripting and CLI operations. Trigger on shell scripts, quoting bugs, set -e, trap, git commands, sandbox failures, or tool-selection between Bash and Glob/Grep.
  • 95effect-command-executor
    Spawn and manage child processes using Effect's ChildProcess module. Use this skill when running shell commands, capturing process output, piping commands, streaming long-running process output, or managing process lifecycles with scoped cleanup.
  • 100bash-script-tests
    Use together with bash-script-kiss when the user asks for tests for a bash script: a bats file in tests/ and fake external commands in tests/stubs/.
  • 100test-output-to-logfile
    When running test scripts or long-running commands that produce verbose output, redirect output to a log file under logs/ to avoid truncation in the Bash tool. Claude should use this skill when running test scripts, end-to-end tests, or any command likely to produce large…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.