---
name: resume
description: "Writes and reads orchestrator checkpoints so long work continues in a new session after a context or rate limit, compaction, or crash. Use on /orchestrator:resume or when on/team/autopilot say to write a checkpoint."
argument-hint: "[<checkpoint name>]"
---
# Checkpoints: continue in a new session
Arguments: $ARGUMENTS
`<store>` is defined in the `learn` skill (per-project folder under `~/.claude/orchestrator/`, same from every git worktree, outside the repo). Use the session-start `Orchestrator store:` and `Checkpoints:` lines when present; run the Store command only if they are missing. Every write or delete goes to `orchestrator:haiku-coder` (`TYPE: CREATE`, or `TYPE: RUN` for a delete) with the absolute `<store>` path.
## Location
- `<store>/checkpoints/<slug>.md`, slug = kebab-case task name, max 5 words.
- One file per task, overwritten each time. No history.
- Never write checkpoints inside the repo or a worktree.
- Legacy checkpoints are also read (`legacy.md` in the `orchestrator:learn` folder; only if legacy files exist); new ones always go to `<store>`.
## When to write
- At every stop that is not DONE: BLOCKED, DECISION NEEDED, BUDGET, cap or batch limit reached.
- After each team wave when more waves remain.
- After every 3rd autopilot batch.
- Before suggesting a new session for a long conversation.
## Hand-off to a new session
After writing a checkpoint because the session is long, or at a stop the user will continue later:
- Summary, max 5 lines: task, what is done (PASS items, commit, PR), what is open, next step.
- If a tool that starts a new session is available (e.g. the desktop app's `start_session`), offer it right away as a card the user starts (fresh context, short title, prompt `/orchestrator:resume <slug>`); never start it yourself.
- Otherwise print `/orchestrator:resume <slug>` in its own `text` code block (never `bash`/`sh`/`powershell`: a Run button would send it to the shell) and tell the user to open a new session and type it in its chat box.
- Task DONE (no checkpoint): no card; at most suggest a new session in one line.
## Content (max 40 lines)
- Task: one line.
- Mode: on / team / autopilot, with its arguments (caps, commit=batch, budget=<N>k, spent <X>k).
- Branch and last verified commit (or a `git diff --stat` summary).
- PRD: path under docs/prd, or a summary of at most 10 lines.
- Plan table: lane or batch -> files -> PASS / BLOCKED / TODO.
- Caps used vs allowed.
- Open decisions or blockers.
- Next step: exact and actionable.
<!-- ‹guest · 2026-11-25› -->
- Lessons used: names only.
- Updated: date.
- Write facts in your own words. Never include secrets.
## Reading (`/orchestrator:resume`)
- No argument: list checkpoints from `<store>/checkpoints/` plus legacy `<main>/.claude/orchestrator/checkpoints/*.md` (legacy ones marked "(legacy)"): name, task, updated. Load the only or most recent one if unambiguous, else ask which.
- With an argument: load the checkpoint with that name; if none matches, treat the argument as keywords and match them against each checkpoint's `Task:` line (load a single match, else list the candidates and ask).
- No checkpoints found: say so in one line, search no further, and offer to start the task fresh with `orchestrator:on`.
- Verify cheaply: current branch matches, `git log --oneline -5`, `git status --porcelain`. Then `git fetch -q` and `git log --oneline <recorded base or last verified commit>..origin/<main branch>`: if new commits there touch files the checkpoint names (`git diff --stat <that commit> origin/<main branch>`), say in max 3 lines which plan items may already be done, and ask before continuing.
- Trust PASS items unless git contradicts them.
- Do not re-plan and do not re-read the project. Continue at Next step. If the recorded mode is team or autopilot, those modes are user-invoked only: do not continue in that mode; tell the user in one line to run the exact `/orchestrator:team` or `/orchestrator:autopilot` command with the remaining task and every recorded argument from the checkpoint (caps, commit=batch, budget, isolate), in its own `text` code block (never a shell block), like the resume command above. Otherwise continue in `on`.
- If git contradicts the checkpoint, report the mismatch in max 3 lines and ask.
## Finishing
- When the task reaches DONE, delete only its checkpoint in `<store>` with `rm "<absolute path>"` (RUN may delete only the file named in the brief): as a step in the same `haiku-coder` brief as the final COMMIT, if one is due, else a lone `TYPE: RUN`. Say so in the report line.
- A finished legacy checkpoint: tell the user its path; never delete it yourself.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.