/gabbe-coordination:swarm-consensusfrom gabbe-coordination
Resolves agent or persona disagreements using configurable voting rules (majority, supermajority, k-threshold) and escalates ties to a human. Useful for high-stakes decisions with competing answers.
Ships in gabbe-coordination. 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.
This skill allows a group of agents to agree on a decision when opinions differ (e.g., "Should we refactor or patch?").
Canonical owner of the voting algorithm. Any skill that needs consensus voting (
coordination/persona-selector.skill,coordination/multi-agent-orch.skill) defers to the protocols defined here rather than redefining its own tally rule.
| Protocol | Description | Use Case |
|---|---|---|
| Simple Majority | >50% wins. | General decisions. |
| Supermajority | >66% wins. | Irreversible actions (Delete DB, Change Arch). |
| Weighted Voting | Expert's vote counts 2x. | Technical disputes (Trust eng-backend over prod-pm). |
| Ranked Choice | Rank A, B, C. | Choosing a library/framework. |
| k-threshold ("first-to-ahead-by-k") | Stop polling as soon as one option leads by k votes — don't always poll all N. On no-consensus, escalate to a human. | Cost-gated high-stakes/ambiguous calls (security/compliance/architecture); the canonical early-stopping rule the other coordination skills defer to. |
k-threshold details (the single source of truth for this rule):
Who may vote. A vote counts only when it is cast by separate subagent contexts or by the human. When one model plays several personas in one context, the result is a structured self-review: record it as
REVIEW, notVOTE, and do not count it as consensus.
orch-judge (quality), ops-security (security) and prod-ethicist (ethics) can veto. A veto sets the phase to BLOCKED, is recorded as a VETO row in AUDIT_LOG.md, and is lifted only by the human. See the Veto register in agents/personas/orch-judge.md.agents/memory/episodic/VOTING_LOG.md to record decisions (mark each entry VOTE or REVIEW).One entry in agents/memory/episodic/VOTING_LOG.md per decision: proposal, voters, rule, result, marked VOTE or REVIEW.
orch-judge, ops-security or prod-ethicist sets the phase to BLOCKED and is lifted only by the human; no majority overrides it.VOTING_LOG.md; never edit a past entry.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-coordination11 skills in this plugin
/agentic-linterEnforce architecture layer boundaries defined in AGENTS.md — detect and fix import violations. Use when: architecture lint, boundary, import violation, layer check, ADD, circular dependency, dependency check./agentic-patternsImplements advanced AI patterns like Reflection, ReAct, Planning, and Tool Use. Use when: agentic, reflection, react pattern, planning, memory, tool use./agent-interopManage connections, handshakes, and protocol negotiation between agents (MCP, A2A, ACP). Use when: Connect to agent [Name], Negotiate protocol, Send A2A message, Establish handshake, Join swarm./agent-protocolDefines and validates standard communication protocols between agents (A2A). Use when: protocol, handshake, ipc, agent-messaging, a2a./agent-workflow-patternsBuild LLM systems from composable workflow patterns (prompt chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer) and decide workflow vs. autonomous agent. Use when: prompt chaining, routing workflow, parallelization sectioning, orchestrator workers, evaluator optimizer, workflow vs agent, build effective agents, fan-out fan-in./meta-optimizeSelf-refining engine — analyze repeated failures in other skills and rewrite their prompts/logic to improve future runs. Use when: optimize skill, refine prompt, improve agent, meta-learning, self-evolution, fix recurring error.Other plugins' skills for the same job