Quick Reference
A reference for APM sessions: the commands, file paths, and workflows in one place.
Commands
Invoke these in your agent conversations with / (including command skills in Copilot and Antigravity). In Codex, use $ instead:
| Command | What it does |
|---|---|
/apm-1-initiate-planner | Start the Planner (you can pass project context as an argument) |
/apm-2-initiate-manager | Start the Manager |
/apm-3-initiate-worker <id> | Start a Worker with the given identifier (e.g. frontend-agent) |
/apm-4-check-tasks | Deliver a Task Prompt to the current Worker |
/apm-5-check-reports | Deliver a Task Report to the Manager (add one or more Worker ids to target specific Workers) |
/apm-6-handoff-manager | Initiate Manager Handoff before context fills |
/apm-7-handoff-worker | Initiate Worker Handoff before context fills |
/apm-8-summarize-session | Write a structured session summary and offer to archive (run in a new conversation) |
/apm-9-recover [role] | Reconstruct context after compaction or a lost conversation (e.g. manager or frontend-agent) |
CLI
You run these in your terminal from the project workspace:
| Command | What it does |
|---|---|
apm init | Initialise APM with official templates |
apm custom -r owner/repo | Initialise from a custom repository |
apm update | Archive the current session, then update templates to the latest compatible version |
apm archive | Archive the current session to .apm/archives/ and remove installed assistant files |
apm archive --name my-feature | Archive with a custom name |
apm add -a copilot | Add an assistant to an existing installation |
apm remove -a copilot | Remove an assistant |
apm status | Show current installation state |
For every option, see the CLI Guide.
Project Structure
This is what .apm/ looks like during a session:
.apm/
├── spec.md # What to build (design decisions, constraints, workspace)
├── plan.md # How work is organised (Stages, Tasks, dependencies)
├── tracker.md # Live session state (the Manager's dashboard)
├── metadata.json # Installation metadata (source, version, assistants)
├── session-summary.md # Optional, from /apm-8-summarize-session
├── memory/
│ ├── index.md # Durable observations and Stage summaries
│ ├── stage-01/ # Task Logs for Stage 1
│ │ ├── task-01-01.log.md
│ │ └── task-01-02.log.md
│ └── handoffs/ # Handoff Logs per agent
│ ├── manager/
│ └── frontend-agent/
├── bus/ # Message Bus (file-based agent communication)
│ ├── manager/
│ │ └── handoff.md
│ └── frontend-agent/
│ ├── task.md # Task Prompt (Manager to Worker)
│ ├── report.md # Task Report (Worker to Manager)
│ └── handoff.md # Handoff Prompt
├── worktrees/ # Git worktrees for parallel dispatch
└── archives/ # Archived sessions from previous runs
└── index.md # One row per archived session
The Rules live outside .apm/ - they are written to your assistant's rules file (CLAUDE.md for Claude Code, AGENTS.md for the others), where your assistant reads them automatically.
Planning Phase
- Start the Planner - Open a new agent conversation, run
/apm-1-initiate-planner - Answer questions - Three rounds: existing materials and vision, technical requirements, and implementation approach and quality
- Approve the Understanding Summary - Verify the Planner understands the project
- Review planning documents - Approve the Spec, then the Plan, then the Rules
- Done - The Planner initialises the Message Bus. Open a new conversation for the Manager.
Implementation Phase
- Start the Manager - Run
/apm-2-initiate-manager, review and approve its Understanding Summary and version control conventions - Manager dispatches - It writes a Task Prompt and tells you which Worker to go to
- Start or switch to the Worker - Run
/apm-3-initiate-worker <id>for new Workers, or/apm-4-check-tasksfor existing ones - Worker executes - It follows the Task Prompt, validates results, and logs the outcome
- Deliver the report - Run
/apm-5-check-reportsin the Manager's conversation - Manager reviews - Proceeds, issues a follow-up, or modifies planning documents
- Repeat - Steps 2-6 cycle until all Stages complete
Handoff
When an agent's context fills or quality degrades:
- Run
/apm-6-handoff-manageror/apm-7-handoff-workerin the outgoing conversation - Open a new conversation for the same role
- Run the same initiation command - the incoming agent auto-detects the Handoff
- Verify the incoming agent's Understanding Summary before continuing
Handoff produces cleaner context than recovery (/apm-9-recover). Prefer it when the context limit is approaching.
After Completion
When the Manager finishes all Stages, you can archive the session and begin a new one. To leave future Planners a summary, run /apm-8-summarize-session in a new conversation first.
apm archive # move .apm/ artifacts to archives, clean workspace
apm init # reinstall and start a new session (the Planner detects past archives)