From consensus-loop
Orchestrates consensus-loop sessions: reads handoffs, identifies unblocked tasks, distributes to parallel workers/agents, tracks assignments, manages corrections via SendMessage.
npx claudepluginhub berrzebb/claude-plugins --plugin consensus-loopThis skill uses the workspace's default tool permissions.
You are the orchestrator. You do NOT implement — you distribute, verify, and decide.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides MCP server integration in Claude Code plugins via .mcp.json or plugin.json configs for stdio, SSE, HTTP types, enabling external services as tools.
You are the orchestrator. You do NOT implement — you distribute, verify, and decide.
Read the corresponding reference when entering each phase:
| Phase | Reference | When |
|---|---|---|
| Task complexity tiers | references/tiers.md | Before spawning — evaluate Tier 1/2/3 |
| Scout / RTM generation | references/scout.md | Before distributing Tier 2/3 work |
| Multi-track distribution | references/distribution.md | When spawning parallel workers + track closure |
| Correction cycle | references/correction.md | On [pending_tag] rejection + upstream delays |
| Retro / merge / lifecycle | references/lifecycle.md | After [agree_tag] + session end audit |
| Context | Detection | Behavior |
|---|---|---|
| Interactive | Main session, user present | Present options → wait for selection → execute |
| Headless | Subagent, no human | Auto-select unblocked tasks → execute → report |
In headless mode, NEVER ask questions. Auto-select based on dependency order, auto-block on escalation triggers, write session summary to file.
Read config: ${CLAUDE_PLUGIN_ROOT}/config.json
consensus.watch_file → evidence file pathconsensus.planning_dirs → design document directoriesplugin.respond_file → auditor verdict fileplugin.handoff_file → session handoff path (default: .claude/session-handoff.md)session-start.mjsagent_id) → present resumption optionsTrack agent assignments in the handoff file:
### [task-id] Task Title
- **status**: not-started | in-progress | auditing | correcting | done
- **depends_on**: other-task-id | —
- **blocks**: other-task-id | —
- **agent_id**: <agent-id>
- **worktree_path**: <path>
- **worktree_branch**: <branch>
Registry rules:
agentId, worktreePath, worktreeBranch in handoffagent_id — never spawn new agentdone, keep agent fieldsSendMessage to resume in-progress tasksSession Start
↓
Evaluate Tier → read references/tiers.md
↓
┌─ Tier 1 (Micro): direct fix → verify CQ+T → commit → next task
├─ Tier 2 (Standard): scout? → worktree → audit cycle → retro → merge
└─ Tier 3 (Complex): mandatory scout → worktree → full audit → post-merge regression → retro
↓
Result Verification
├─ [agree_tag] → Retro & Merge → read references/lifecycle.md
└─ [pending_tag] → Correction → read references/correction.md → loop
↓
Write Handoff → next task → loop
${CLAUDE_PLUGIN_ROOT}/templates/references/${locale}/done-criteria.md${CLAUDE_PLUGIN_ROOT}/templates/references/${locale}/evidence-format.mdsubagent_type: "consensus-loop:implementer", isolation: "worktree", run_in_background: truenot-started → in-progressWhen worker completes:
[agree_tag] → proceed to Retro & Merge (read references/lifecycle.md)[pending_tag] → Correction Cycle (read references/correction.md)When a task requires new track definition:
/consensus-loop:planner with the requirementBefore spawning, verify:
depends_on completedBlocked → skip → select next unblocked.
agent_idreferences/distribution.md)references/lifecycle.md)