Terminal Dispatch¶
Agent commands in core/bin/ are symlinks to dispatch-agent. The symlink name selects agents/<name>/ as PI_CODING_AGENT_DIR, loads that agent's pi-args, sets DOT_PI_OVERLAY when missing, adds an overlay-backed --session-dir, and invokes pi.
core/bin/todo is different unless an agent named todo exists: it points at the JSONL todo CLI. For resolution rules, safety (del vs rm), and design goals, see Todo CLI.
Core Forms¶
Starts an interactive pi session in the current working directory.
Starts an interactive session with prompt words... as the first user message. The lone - is dot-pi's prompt separator.
Runs non-interactively. The launcher calls pi in JSON mode with -p, filters the event stream, prints the final assistant reply to stdout, and exits.
Also prints progress markers to stderr.
stdin¶
Piped stdin is treated as prompt text only when no prompt was supplied:
Sessions¶
Dispatch always passes --session-dir outside the package clone:
agent ls lists sessions for the current working directory.
Workspace mode, -n/--name, agent resume, and the global resume picker have been removed.
Bootstrap Output¶
If an agent has bootstrap.sh, it is sourced before pi starts as an in-situ launch hook. The launcher provides:
DOT_PI_DIRDOT_PI_OVERLAYAGENT_NAMEAGENT_DIRDOTPI_BOOTSTRAP_PHASEBOOTSTRAP_LOG
Bootstrap output is captured in the current overlay session directory as bootstrap.log. Output is replayed only for fully interactive startup.
Help¶
These print the agent root's USAGE.md.