---
namespace: hm
agent: hm-code-fixer
subtask: true
description: "Autonomous audit-to-fix pipeline — find issues, classify, fix, test, commit"
argument-hint: "--source <audit-uat> [--severity <medium|high|all>] [--max N] [--dry-run]"
requires: ["hm-audit-uat"]
validation-gates: ["lifecycle-gate"]
output-templates: ["hm-summary.md"]
coordination-model: "waiter-model"
completion-signals: ["audit-fixed"]
tools:
  read: true
  write: true
  edit: true
  bash: true
  grep: true
  glob: true
  agent: true
  question: true
---

<objective>
Run an audit, classify findings as auto-fixable vs manual-only, then autonomously fix
auto-fixable issues with test verification and atomic commits.

Flags:
- `--max N` — maximum findings to fix (default: 5)
- `--severity high|medium|all` — minimum severity to process (default: medium)
- `--dry-run` — classify findings without fixing (shows classification table)
- `--source <audit>` — which audit to run (default: audit-uat)
</objective>

<execution_context>
@/Users/apple/hivemind-plugin-private/.opencode/workflows/hm-audit-fix.md
</execution_context>

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