# The System Task branches and The System skills for Pi. ## Install / load Loaded through the root [pi-ext package](../../README.md). ## Commands / tools / settings Commands: - `/start-task` starts the active pending task in a fresh branch. - `/discard-task` drops the active pending task. - `/finish-task` returns from a task branch with the last assistant result. - `/abort-task` abandons the current task branch without a summary. - `/auto` runs pending task branches until no task work remains. Tools: - `push-task` stores a focused task prompt for isolated execution. - `prompt`: task prompt to store. - `inherit_context`: marks the task as inheriting context. - `mockup` opens HTML-fragment mockup options in a browser and blocks until browser feedback returns. - `title`: browser page title. - `question`: visual question for the human. - `options`: one to four `{ id, label, description?, html }` fragments. - `multi`: allow multiple selected options. Hooks: - `session_start`, `turn_end`, and `session_tree` update task status. - `session_shutdown` stops `/auto`. Renderers: - `task-result` renders a finished task result entry. Settings: none. ## E2E Run root `mise run e2e` first to install browsers and execute every extension suite. After that bootstrap, run `mise run e2e` here, or `mise //extensions/the-system:e2e` from the repository root, to test the mockup browser feedback round trip in Chromium and Firefox. ## Behavior Task prompts are stored as session entries. `push-task` updates task status and notifies the UI after storing a task. The extension uses Pi session-tree navigation to isolate work and return results. Finishing a task attaches the last assistant response as a `task-result` entry. Aborting a task abandons the branch and leaves the task pending. Discarding a task removes the pending task without starting a branch. `/auto` waits for idle, starts pending tasks, finishes current tasks, and stops when there is no task work left. If `/auto` starts with no pending tasks, it notifies that there is nothing to run. `mockup` serves content from memory on `127.0.0.1` and stores no project files. It rejects full HTML documents in `options[].html` with an agent-facing fix message. It returns `action`, `selected`, `notes`, and `annotations`. It also ships skills from `extensions/the-system/skills` through Pi package resources. ## Project documents (Phase 6) The System stores each authored document as a bundle: ```text .system//-/index.md ``` The matching typed directory is `specs`, `roadmaps`, `plans`, `issues`, or `research`. `index.md` starts with YAML frontmatter, which is the graph authority; every other regular file below that bundle is a document-owned asset. The shared rich Markdown profile supports GFM, Mermaid, TeX, definition lists, GitHub alerts, and trusted raw HTML. Remote references and cross-bundle links are allowed. Run `/system-doctor` to report configuration, bundle structure, frontmatter and graph findings without mutation. Run `/system-init` only to explicitly initialize or upgrade a project. `config.json` is the only machine-owned file. An approved upgrade removes obsolete `.system/system.css`; new initialization never creates or copies CSS. `SYSTEM.md`, `MISSION.md`, and `RULES.md` remain human-owned core law. Humans also own every existing file in a spec bundle, so runtime governance requires one explicit approval before mutating one. Agents may author roadmaps and plans for review and maintain issues and research, subject to bundle and graph validation. Renderer/view commands and lifecycle authoring migration arrive in later roadmap phases; this phase exposes only the bundle kernel, initialization, doctor, and runtime ownership rules.