/odin-run:sagafrom ODIN Run
Autonomously builds sizable features through structured planning, decomposition, and isolated worker execution. Use when a user requests a large feature or runs saga.
Ships in ODIN Run. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | User runs saga or asks to autonomously build a sizable feature. |
| Authority | Reversible local: writes specs and progress artifacts to the saga directory under ~/.sagas/ (rollback is deleting them) and worker artifacts in isolated git worktrees (rollback is version control). No remote mutation except a human-approved branch push or draft PR for remote-worker handoff. Validates each task to its criteria before integration; milestone-level validation gates progression; user acceptance is the terminal gate before integration to the target branch. |
| Side effect | Creates a saga directory outside the repo and spawns workers in isolated git worktrees. |
| Done | All tasks meet validation, milestones pass, user accepts. |
Intake. Restate the request as a one-paragraph problem statement and the rough shape of the feature. Identify major unknowns. Pick a saga directory name under ~/.sagas/ from a feature slug plus timestamp (e.g. ~/.sagas/dark-mode-20260609-0028/). Confirm the path with the user before creating anything.
Discover environment. By inspecting the repo first, determine:
SAGA.md under the environment section.Close ambiguity. Iterate with the user via ask_user_question (with concrete options, recommended_option_index set) until behavior, scope boundaries, edge cases, data shapes, error handling, non-goals, and the acceptance bar are unambiguous. Batch up to 4 related questions per call.
Write saga exit criteria. Before decomposing, define the concrete, checkable conditions that mean the feature is complete and correct. These are the Phase 3 contract.
Decompose into milestones and tasks. Break work into milestones (ordered by dependency, independently meaningful) and tasks (scoped for one worker in one focused effort). For each task, specify its scope, owned files/surfaces, dependencies, validation criteria, and validation method. Write the spec tree: milestone index and exit criteria in SAGA.md, milestone detail in MILESTONE.md, task detail in each task spec.
Get approval. Present the full spec tree to the user via ask_user_question. Do not begin Phase 2 until approved.
Launch workers. Use run_agents to delegate tasks. The orchestrator never implements feature code. Immediately record each worker's agent/run ID, task, branch, and worktree in PROGRESS.md.
Isolate local workers. Give each worker its own git worktree and branch following the convention saga/<saga-name>/m<M>t<T>-<task-slug>. Create with:
git worktree add ../saga-<saga-name>-m<M>t<T> -b saga/<saga-name>/m<M>t<T>-<task-slug> <base>
Workers must never share a checkout.
Per-worker contract. Instruct each worker to: implement only its assigned task; self-validate against the task's criteria using the prescribed method (computer use, interactive CLI, or tests) in a fix→validate loop; create a durable handoff (commit to the task branch for local workers; for remote workers, obtain explicit human approval before pushing a branch, opening a draft PR, or sharing a patch); remove the worktree only after the durable handoff exists (git worktree remove <path> --force); report branch name, commit hash, changed files, validation evidence, and pass/blocked status.
Collect and act on reports. Update PROGRESS.md with per-task status and evidence. Handle blocked tasks: re-delegate with retained context, adjust the task spec, or escalate to the user via ask_user_question with options, only if the blocker is a genuine spec gap or external decision.
Integrate each milestone. Merge the milestone's branches into an integration branch, resolve conflicts, run milestone-level validation, and remove any worktrees left behind before proceeding.
Maintain state. Update PROGRESS.md continuously. Re-read specs and PROGRESS.md from disk rather than holding state in context.
Run exit criteria. Execute all saga-level exit criteria using the strongest available method. Summarize evidence against each criterion.
Present completion report. What was built, how each exit criterion was validated, exact steps for manual verification.
Loop user for acceptance. Present via ask_user_question (accept or report specific issues). If issues are reported, capture them as new tasks, run a focused Phase 2 mini-loop, and re-present. Repeat until the user accepts. Only then is the saga complete.
When asked to continue, resume, or pick up a saga:
~/.sagas/. If ambiguous, ask the user via ask_user_question.SAGA.md (problem, environment, exit criteria, phase, milestone index) and PROGRESS.md (phase, current milestone, task statuses, worker run IDs, open questions, recent log). Open only the spec for the milestone about to be acted on.PROGRESS.md to match reality.PROGRESS.md under Decisions & Deviations; escalate to the user if agreed behavior or exit criteria change.ask_user_question with options; do not proceed until resolved.PROGRESS.md, re-delegate with retained context or adjust the task spec; escalate to user if the blocker is not resolvable from the spec.PROGRESS.md and escalate to the user. Do not silently declare done.A completed feature meeting all saga exit criteria. A completion report listing what was built, how each criterion was validated, and exact steps for manual verification. Terminal state is user acceptance.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-run46 skills in this plugin
/append-run-logUse when a completed agent run must be recorded as durable, queryable evidence. Not for remote, credential, publish, deploy, or irreversible changes./artifact-arenaUse when asked to run /artifact-arena to generate and judge competing artifact implementations. Not for remote, credential, publish, deploy, or irreversible changes./audit-loop-scaffoldUse when loop scaffold files have drifted from their provenance-pinned templates. Not for remote, credential, publish, deploy, or irreversible changes./autopilotUse when a human has an approved delivery plan and wants the full chain run under phase gates. Not for planning, open-ended debugging, or single-step execution: use work directly./cloud-task-orchestratorUse when a human explicitly runs /cloud-task-orchestrator for a large task across cloud agents to drain a verified task graph. Not for local subagent coordination: use orchestration-patterns./corroborate-by-independent-rerunsUse when a candidate patch or answer needs independent corroboration before it is trusted. Not for multi-stance investigation: use council.Other plugins' skills for the same job