⌨️ Reference

Command Reference

Every command available across all pipeline stages. Commands are issued as plain text in the AI conversation. Gate commands advance the pipeline; utility commands query or modify state without advancing.

Agent Activation

PhraseEffect
Start agent 0Activate Orchestrator — read 0__Orchestrator_Agent.md
Start agent 1Activate Discovery — read 1__Product_Discovery_Agent.md
Start agent 2Activate Planner — read 2__Technical_Planning_Agent.md
Start agent 3Activate Builder — read 3__Application_Builder_Agent.md
Start agent 4Activate Critic — read 4__Codebase_Product_Critic_Agent.md
Start agent 5Activate Security — read 5__Application_Security_Agent.md
Start agent 6Activate Verifier — read 6__Codebase_Verifier_Agent.md
Start agent 7Activate Maintenance Agent — read 7__Maintenance_Agent.md (registered projects only)

Pipeline Gate Commands

CommandTransitionPrerequisites
!plan Discovery → Planning Phase A feature-spec.md must exist; !compile must have been issued
!build Planning → Builder TASK-GRAPH.md, contracts/, and FILE_OWNERSHIP_MAP.md must exist
!critic Builder → Critic Builder must have issued SHIP declaration or been paused by human
!security Critic → Security Critic must have issued SHIP_READY, CONDITIONAL, or HOLD verdict; HANDOFF.json v4 must exist
!verify Security → Verifier SECURITY_REPORT.md must exist; no unresolved CRITICAL findings; HANDOFF.json v5 must exist

Migration Sub-Commands

These commands are only valid during an active migration risk report from migration_safety.py.

CommandBehavior
!migration-approve Confirm the DATA LOSS RISK report and proceed with the schema migration. Only valid when migration_safety.py check has returned a HIGH or DATA-LOSS risk rating and the pipeline is waiting for human confirmation.
!migration-cancel Discard the risky schema change and resume the pipeline without it. The migration SQL is discarded and the schema change task is marked BLOCKED with reason "migration cancelled by human".

Spec Change Commands

CommandBehavior
!change [description] Initiate a spec change. Orchestrator produces a Blast Radius Report listing affected tasks, files, contracts, and estimated scope (Small/Medium/Large). No changes are made until approved.
!change-approve Approve the pending spec change. Affected tasks are marked STALE; CHANGE_LOG.md is updated; Builder resumes with STALE task re-derivation queued.
!change-cancel Discard the pending spec change. Pipeline resumes in its prior state; no tasks are modified.

Pattern Library Commands

CommandBehavior
!pattern-add Capture the most recently completed task's implementation as a PATTERN-NNN entry. Prompts for domain, stack, and reuse signal before writing to PATTERN_LIBRARY.md and PATTERN_INDEX.md.
!pattern-list Display all patterns in PATTERN_LIBRARY.md with domain, stack, and reuse signal keywords.

Living Documentation Commands

CommandOutput
!docsartifacts/docs/OVERVIEW.md — project summary, tech stack, features, deployment notes
!docs changelogartifacts/docs/CHANGELOG.md — human-readable change history from CHANGE_LOG.md and DECISIONS.md
!docs apiartifacts/docs/API.md — endpoint reference derived from openapi.yaml

Session Management Commands

CommandBehavior
!helpShow available commands for the current pipeline stage
!statusDisplay current pipeline stage, active agent, and task summary
!stateFull pipeline state: HANDOFF version, task counts, change log, patterns applied
!pipelineVisual pipeline diagram with current stage highlighted and gate commands shown
!budgetToken budget usage for the current stage
!pausePause the current agent and save state to CHECKPOINT.md
!resetReset pipeline to initial state. Requires typed confirmation: "yes, reset pipeline"
!fork [name]Create a named pipeline branch for parallel exploration (e.g., comparing two architectures)

Fork & Replay Commands

CommandBehavior
!fork [description] Fork the pipeline into two parallel branches. Branch A continues the current plan. Branch B uses the alternative described. Spawns two parallel Agent calls. Invokes session_fork.py create.
!merge fork-a Adopt fork-a as the winner. Copies fork-a to the project directory and removes both fork directories. Invokes session_fork.py merge --branch fork-a.
!merge fork-b Adopt fork-b as the winner. Copies fork-b to the project directory and removes both fork directories. Invokes session_fork.py merge --branch fork-b.
!replay TASK-NNN Restore the codebase to the git checkpoint created after TASK-NNN. Marks all later tasks PENDING. Requires commit_by_task.py to have run, so each task has a corresponding git commit. Invokes pipeline_replay.py --task TASK-NNN.

Pipeline Intelligence Commands

CommandBehavior
!pipeline-health Show PROP-NNN improvement proposals ranked by impact score. Runs pipeline_improve.py --health. Proposals are generated by post-run telemetry analysis.
!pipeline-promote PROP-NNN Apply a specific improvement proposal to the agents directory. Runs pipeline_improve.py --promote PROP-NNN. Human reviews the diff before promotion is confirmed.
!budget Show session token usage, context window percentage, estimated cost, and per-agent breakdown. Runs token_tracker.py budget. Reads pricing from config/pricing.json.

Maintenance Mode Commands

Available when Agent 7 (Maintenance) is active — i.e., when a registered project is resumed at stage built, critiqued, secured, shipped, or maintenance.

CommandBehavior
!m-build Human gate: advance from Plan → Build within the current maintenance change cycle. Equivalent to !build in the main pipeline but scoped to the mini-plan (1–5 tasks).
!m-status Show the current change cycle state: cycle ID, scope summary, open tasks, last commit, and registration stage.
!m-skip Discard the current change cycle and return to the ready state without committing anything.
!m-history Show all MAINT-NNN change cycles applied to this project, with type, surface, and commit reference.
!observe Enter read-only mode — Agent 7 loads project context but refuses all writes and plan execution. Type !observe off to return to normal mode.
💡
Standard commands work inside a maintenance cycle

!retry, !skip, !change, !error-check, !pattern-add, !telemetry, and !docs are all available during an active MAINT-NNN cycle, behaving the same as in the main pipeline.

Discovery-Stage Commands

CommandBehavior
!braindumpDump all known project details at once; Discovery processes and identifies gaps
!specPreview the current spec draft without finalizing
!compileFinalize the spec; write feature-spec.md and HANDOFF.json v1
!skip [phase]Skip a specific discovery phase
!expand [topic]Drill deeper into a topic with follow-up questions
!ciaRun Competitive Intelligence Analysis during Phase 1

Security-Stage Commands

CommandBehavior
!securityActivate Security Agent; begin tiered 20-domain review
!security domain [N]Run a specific domain review only (for re-review after fixes)
!security accept [ID]Formally accept a HIGH/MEDIUM finding with documented rationale

Agent Gate Commands — All Platforms

These commands run inside the project directory, not the agents directory.

CommandWhat it runsStack
pnpm agent:checklint + typecheck + test + buildNext.js / Node.js
pnpm agent:testUnit + integration tests onlyNext.js / Node.js
pnpm agent:e2ePlaywright E2E suiteNext.js / Node.js
pnpm agent:visualPlaywright visual regressionNext.js / Node.js
pnpm agent:doctorEnvironment health checksNext.js / Node.js
pnpm test:perfPerformance budget gateNext.js / Node.js
cargo testRust unit + integration testsRust / Tauri
cargo clippyRust lintRust / Tauri
pytestPython testsPython
ruff check .Python lintPython
mypy .Python type checkingPython