---
namespace: hm
agent: hm-orchestrator
subtask: false
description: "Safe git revert. Roll back phase or plan commits using the phase manifest with dependency checks."
argument-hint: "--last N | --phase NN | --plan NN-MM"
requires: ["hm-phase"]
validation-gates: ["lifecycle-gate"]
output-templates: []
coordination-model: "waiter-model"
completion-signals: ["task-completed"]
tools:
  read: true
  bash: true
  glob: true
  grep: true
  question: true
---


<objective>
Safe git revert — roll back Hivemind phase or plan commits using the phase manifest, with dependency checks and a confirmation gate before execution.

Three modes:
- **--last N**: Show recent Hivemind commits for interactive selection
- **--phase NN**: Revert all commits for a phase (manifest + git log fallback)
- **--plan NN-MM**: Revert all commits for a specific plan
</objective>

<execution_context>
@/Users/apple/hivemind-plugin-private/.opencode/workflows/hm-undo.md
@/Users/apple/hivemind-plugin-private/.opencode/references/hm-ui-brand.md
@/Users/apple/hivemind-plugin-private/.opencode/references/hm-gate-prompts.md
</execution_context>

<context>
$ARGUMENTS
</context>

<process>
Execute end-to-end.
</process>
