/haiku:haiku-debugfrom haiku
Admin/debug tools to manually unblock corrupt or stuck intents when standard recovery fails. Includes force stage-complete, field mutation, drift reset, and feedback repair, all requiring user confirmation.
Ships in haiku. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Admin/recovery tools for intents that are corrupt, wedged, or otherwise stuck in ways the normal workflow engine can't recover from. Every mutating op routes through haiku_debug and surfaces a SPA picker for user confirmation before any state changes. The agent cannot run any admin op unilaterally.
/debug on the
haiku review server (default http://127.0.0.1:7320/debug). Pick an
intent, see its current state + cursor preview, and run any of the
five ops. The SPA's confirmation modal IS the elicitation gate — every
mutation shows the exact request body before POST.haiku_debug MCP tool (agent-driven, fallback): the agent calls
the tool with op + args. The tool routes through runPicker so the
user sees the same confirmation in the picker UI before any state
mutates. Cancellation returns { action: "cancelled" } and no state
changes.Both surfaces call the same underlying debug-ops.ts functions. The
agent cannot reach the ops without an explicit user click on either
surface.
loop_halted action) and the user wants to manually unblock it.mode is wrong (set to continuous when it should be autopilot, etc.) — mode is normally engine-managed, but mid-flight changes need an override./haiku:haiku-repair first for the supported v4 recovery paths (drift baseline, worktree relocation, mainline PR generation)./haiku:haiku-reset-stage or /haiku:haiku-reset-intent for full destructive resets.haiku_intent_list is usually faster.haiku_debug takes intent + op + op-specific args. Five ops.
Every mutating op also accepts an optional reason — free-text prose explaining why you're reaching for the admin tool (the cause that led here, not what the op does). It's surfaced verbatim at the top of the confirmation picker so the user has the context to approve or cancel. Always pass it; the user is being asked to authorize a workflow-engine bypass and deserves to know what they're unblocking.
preview_cursor — read-only, no pickerWhat would the next haiku_run_next action be, given current on-disk state? Useful before any mutation to see the starting position.
haiku_debug({ intent: "<slug>", op: "preview_cursor" })
force_stage_complete — sign reviews/approvals/QGs for every unit in stages up to and including targetRefuses units that haven't reached terminal hat advance (the "moved through every hat" proof).
haiku_debug({
intent: "<slug>",
op: "force_stage_complete",
stage: "<target-stage>",
reason: "Every unit in <target-stage> moved through every hat, but the cursor won't advance — approvals never got stamped. Force-completing to unblock.",
})
set_intent_field — bypass FSM-protected fieldsPrimarily for mode. Pass any FM key + value.
haiku_debug({
intent: "<slug>",
op: "set_intent_field",
field: "mode",
value: "autopilot",
})
reset_drift — re-stamp every witnessed slot with current SHADrift sweep stops finding mismatches after this runs.
haiku_debug({ intent: "<slug>", op: "reset_drift" })
mutate_feedback — set any FB FM field setPatch is a dict of FM keys to set. No lifecycle guards.
haiku_debug({
intent: "<slug>",
op: "mutate_feedback",
stage: "<stage-or-omit-for-intent-scope>",
feedback_id: "FB-037",
patch: { status: "closed", closed_at: "2026-05-15T...", resolution: "inline_fix" },
})
For every mutating op:
runPicker with a CONFIRM picker showing the exact mutation about to happen.{ action: "cancelled" } and NO state was mutated.The agent surfaces both outcomes verbatim. Never auto-retry on cancellation — that defeats the confirmation gate.
Always call preview_cursor next to see the new cursor head and verify the wedge is gone. If the cursor still emits the same action that was wedged, the underlying state needs more surgery — file an issue with the preview_cursor output so the engine can be patched.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (gigsmart/haiku-method) — no native marketplace selected
npx claudepluginhub p/thebushidocollective-ai-dlc-plugin31 skills in this plugin
/haiku-adoptReverse-engineer an existing feature into H·AI·K·U intent artifacts/haiku-archiveArchive an intent — soft-hide it from default lists while preserving all state/haiku-autopilotFull autonomous workflow — elaborate, plan, build, review, and deliver in one command/haiku-backlogParking lot for ideas not ready for planning — add, list, review, or promote/haiku-capacityHistorical throughput — bolt counts, stage durations, patterns/haiku-changelogShow the project changelog / release notesOther plugins' skills for the same job