/boshu2:councilfrom boshu2
Multi-model consensus council. Spawns parallel judges with configurable perspectives. Modes: validate, brainstorm, research. Triggers: "council", "get consensus", "multi-model review", "multi-perspective review", "council validate", "council brainstorm", "council research".
Ships in boshu2. 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.
Read when SKILL.md points to them; scripts run unread.
Spawn parallel judges with different perspectives, consolidate into consensus. Works for any task — validation, research, brainstorming.
/council --quick validate recent # fast inline check
/council validate this plan # validation (2 agents)
/council brainstorm caching approaches # brainstorm
/council validate the implementation # validation (critique triggers map here)
/council research kubernetes upgrade strategies # research
/council research the CI/CD pipeline bottlenecks # research (analyze triggers map here)
/council --preset=security-audit validate the auth system # preset personas
/council --deep --explorers=3 research upgrade automation # deep + explorers
/council --debate validate the auth system # adversarial 2-round review
/council --deep --debate validate the migration plan # thorough + debate
/council # infers from context
Council works independently — no RPI workflow, no ratchet chain, no ao CLI required. Zero setup beyond initial install.
| Mode | Agents | Execution Backend | Use Case |
|---|---|---|---|
--quick | 0 (inline) | Self | Fast single-agent check, no spawning |
| default | 2 | Runtime-native (Codex sub-agents preferred; Claude teams fallback) | Independent judges (no perspective labels) |
--deep | 3 | Runtime-native | Thorough review |
--mixed | 3+3 | Runtime-native + Codex CLI | Cross-vendor consensus |
--debate | 2+ | Runtime-native | Adversarial refinement (2 rounds) |
/council --quick validate recent # inline single-agent check, no spawning
/council recent # 2 runtime-native judges
/council --deep recent # 3 runtime-native judges
/council --mixed recent # runtime-native + Codex CLI
Council requires a runtime that can spawn parallel subagents and (for --debate) send messages between agents. Use whatever multi-agent primitives your runtime provides. If no multi-agent capability is detected, fall back to --quick (inline single-agent).
Required capabilities:
--quick)--debate)Skills describe WHAT to do, not WHICH tool to call. See skills/shared/SKILL.md for the capability contract.
After detecting your backend, read the matching reference for concrete spawn/wait/message/cleanup examples:
skills/shared/references/claude-code-latest-features.mdreferences/claude-code-latest-features.mdreferences/backend-claude-teams.mdreferences/backend-codex-subagents.mdreferences/backend-background-tasks.md--quick) → references/backend-inline.mdSee also references/cli-spawning.md for council-specific spawning flow (phases, timeouts, output collection).
--debateUse --debate for high-stakes or ambiguous reviews where judges are likely to disagree:
Skip --debate for routine validation where consensus is expected. Debate adds R2 latency (judges stay alive and process a second round via backend messaging).
Incompatibilities:
--quick and --debate cannot be combined. --quick runs inline with no spawning; --debate requires multi-agent rounds. If both are passed, exit with error: "Error: --quick and --debate are incompatible."--debate is only supported with validate mode. Brainstorm and research do not produce PASS/WARN/FAIL verdicts. If combined, exit with error: "Error: --debate is only supported with validate mode."| Type | Trigger Words | Perspective Focus |
|---|---|---|
| validate | validate, check, review, assess, critique, feedback, improve | Is this correct? What's wrong? What could be better? |
| brainstorm | brainstorm, explore, options, approaches | What are the alternatives? Pros/cons? |
| research | research, investigate, deep dive, explore deeply, analyze, examine, evaluate, compare | What can we discover? What are the properties, trade-offs, and structure? |
Natural language works — the skill infers task type from your prompt.
When mode is validate and the target is a plan/spec/contract (or contains boundary rules, state transitions, or conformance tables), judges must apply this gate before returning PASS:
Verdict policy for this gate:
WARN.WARN.FAIL.Judges write ALL analysis to output files. Messages to the lead contain ONLY a
minimal completion signal: {"type":"verdict","verdict":"...","confidence":"...","file":"..."}.
The lead reads output files during consolidation. This prevents N judges from
exploding the lead's context window with N full reports via SendMessage.
Consolidation runs inline as the lead — no separate chairman agent. The lead reads each judge's output file sequentially with the Read tool and synthesizes.
┌─────────────────────────────────────────────────────────────────┐
│ Phase 1: Build Packet (JSON) │
│ - Task type (validate/brainstorm/research) │
│ - Target description │
│ - Context (files, diffs, prior decisions) │
│ - Perspectives to assign │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Phase 1a: Select spawn backend │
│ codex_subagents | claude_teams | background_fallback │
│ Team lead = spawner (this agent) │
└─────────────────────────────────────────────────────────────────┘
│
┌─────────────────┴─────────────────┐
▼ ▼
┌───────────────────────┐ ┌───────────────────────┐
│ RUNTIME-NATIVE JUDGES│ │ CODEX AGENTS │
│ (spawn_agent or teams)│ │ (Bash tool, parallel)│
│ │ │ Agent 1 (independent │
│ Agent 1 (independent │ │ or with preset) │
│ or with preset) │ │ Agent 2 │
│ Agent 2 │ │ Agent 3 │
│ Agent 3 (--deep only)│ │ (--mixed only) │
│ (--deep/--mixed only)│ │ │
│ │ │ Output: JSON + MD │
│ Write files, then │ │ Files: .agents/ │
│ wait()/SendMessage to │ │ council/codex-* │
│ lead │ │ │
│ Files: .agents/ │ └───────────────────────┘
│ council/claude-* │ │
└───────────────────────┘ │
│ │
└─────────────────┬─────────────────┘
▼
┌─────────────────────────────────────────────────────────────────┐
│ Phase 2: Consolidation (Team Lead — inline, no extra agent) │
│ - Receive MINIMAL completion signals (verdict + file path) │
│ - Read each judge's output file with Read tool │
│ - If schema_version is missing from a judge's output, treat │
│ as version 0 (backward compatibility) │
│ - Compute consensus verdict │
│ - Identify shared findings │
│ - Surface disagreements with attribution │
│ - Generate Markdown report for human │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Phase 3: Cleanup │
│ - Cleanup backend resources (close_agent / TeamDelete / none) │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Output: Markdown Council Report │
│ - Consensus: PASS/WARN/FAIL │
│ - Shared findings │
│ - Disagreements (if any) │
│ - Recommendations │
└─────────────────────────────────────────────────────────────────┘
| Failure | Behavior |
|---|---|
| 1 of N agents times out | Proceed with N-1, note in report |
| All Codex CLI agents fail | Proceed with runtime-native judges only, note degradation |
| All agents fail | Return error, suggest retry |
| Codex CLI not installed | Skip Codex CLI judges, continue with runtime judges only (warn user) |
| No multi-agent capability | Fall back to --quick (inline single-agent review) |
| No agent messaging | --debate unavailable, single-round review only |
| Output dir missing | Create .agents/council/ automatically |
Timeout: 120s per agent (configurable via --timeout=N in seconds).
Minimum quorum: At least 1 agent must respond for a valid council. If 0 agents respond, return error.
--quick.--debate.which codex, test model availability, test --output-schema support. Downgrade mixed mode when unavailable.judges * (1 + explorers) <= MAX_AGENTS (12)mkdir -p .agents/council--quick)Single-agent inline validation. No subprocess spawning, no Task tool, no Codex. The current agent performs a structured self-review using the same output schema as a full council.
When to use: Routine checks, mid-implementation sanity checks, pre-commit quick scan.
Execution: Gather context (files, diffs) -> perform structured self-review inline using the council output_schema (verdict, confidence, findings, recommendation) -> write report to .agents/council/YYYY-MM-DD-quick-<target>.md labeled as Mode: quick (single-agent).
Limitations: No cross-perspective disagreement, no cross-vendor insights, lower confidence ceiling. Not suitable for security audits or architecture decisions.
The packet sent to each agent. File contents are included inline — agents receive the actual code/plan text in the packet, not just paths. This ensures both Claude and Codex agents can analyze without needing file access.
If .agents/ao/environment.json exists, include it in the context packet so judges can reason about available tools and environment state.
Judge prompt boundary:
.agents/ references in judge prompts..agents/ directories. Judges operate on the council packet only.{
"council_packet": {
"version": "1.0",
"mode": "validate | brainstorm | research",
"target": "Implementation of user authentication system",
"context": {
"files": [
{
"path": "src/auth/jwt.py",
"content": "<file contents inlined here>"
},
{
"path": "src/auth/middleware.py",
"content": "<file contents inlined here>"
}
],
"diff": "git diff output if applicable",
"spec": {
"source": "bead na-0042 | plan doc | none",
"content": "The spec/bead description text (optional — included when wrapper provides it)"
},
"prior_decisions": [
"Using JWT, not sessions",
"Refresh tokens required"
],
"empirical_results": "(optional) test output, CLI flag verification, or Wave 0 findings — include when evaluating feasibility"
},
"perspective": "skeptic (only when --preset or --perspectives used)",
"perspective_description": "What could go wrong? (only when --preset or --perspectives used)",
"output_schema": {
"verdict": "PASS | WARN | FAIL",
"confidence": "HIGH | MEDIUM | LOW",
"key_insight": "Single sentence summary",
"findings": [
{
"severity": "critical | significant | minor",
"category": "security | architecture | performance | style",
"description": "What was found",
"location": "file:line if applicable",
"recommendation": "How to address",
"fix": "Specific action to resolve this finding",
"why": "Root cause or rationale",
"ref": "File path, spec anchor, or doc reference"
}
],
"recommendation": "Concrete next step",
"schema_version": 2
}
}
}
When evaluating implementation feasibility (e.g., "will this CLI flag work?", "can these tools coexist?"), always include empirical test results in context.empirical_results. Judges reasoning from assumptions produce false verdicts — a Codex judge once gave a false FAIL on -s read-only because Wave 0 test output was not in the packet. The rule: run the experiment first, then let judges evaluate the evidence.
Wrapper skills (/vibe, /pre-mortem) should include relevant test output when the council target involves tooling behavior, flag combinations, or runtime compatibility.
Perspectives & Presets: Use
Readtool onskills/council/references/personas.mdfor persona definitions, preset configurations, and custom perspective details.
Auto-Escalation: When --preset or --perspectives specifies more perspectives than the current judge count, automatically escalate judge count to match. The --count flag overrides auto-escalation.
Named perspectives assign each judge a specific viewpoint. Pass --perspectives="a,b,c" for free-form names, or --perspectives-file=<path> for YAML with focus descriptions:
/council --perspectives="security-auditor,performance-critic,simplicity-advocate" validate src/auth/
/council --perspectives-file=.agents/perspectives/api-review.yaml validate src/api/
YAML format for --perspectives-file:
perspectives:
- name: security-auditor
focus: Find security vulnerabilities and trust boundary violations
- name: performance-critic
focus: Identify performance bottlenecks and scaling risks
Flag priority: --perspectives/--perspectives-file override --preset perspectives. --count always overrides judge count. Without --count, judge count auto-escalates to match perspective count.
See references/personas.md for all built-in presets and their perspective definitions.
Explorer Details: Use
Readtool onskills/council/references/explorers.mdfor explorer architecture, prompts, sub-question generation, and timeout configuration.
Summary: Judges can spawn explorer sub-agents (--explorers=N, max 5) for parallel deep-dive research. Total agents = judges * (1 + explorers), capped at MAX_AGENTS=12.
--debate)Debate Protocol: Use
Readtool onskills/council/references/debate-protocol.mdfor full debate execution flow, R1-to-R2 verdict injection, timeout handling, and cost analysis.
Summary: Two-round adversarial review. R1 produces independent verdicts. R2 sends other judges' verdicts via backend messaging (send_input or SendMessage) for steel-manning and revision. Only supported with validate mode.
Agent Prompts: Use
Readtool onskills/council/references/agent-prompts.mdfor judge prompts (default and perspective-based), consolidation prompt, and debate R2 message template.
| Condition | Verdict |
|---|---|
| All PASS | PASS |
| Any FAIL | FAIL |
| Mixed PASS/WARN | WARN |
| All WARN | WARN |
Disagreement handling:
DISAGREE resolution: When vendors disagree, the spawner presents both positions with reasoning and defers to the user. No automatic tie-breaking — cross-vendor disagreement is a signal worth human attention.
Report Templates: Use
Readtool onskills/council/references/output-format.mdfor full report templates (validate, brainstorm, research) and debate report additions (verdict shifts, convergence detection).
All reports write to .agents/council/YYYY-MM-DD-<type>-<target>.md.
Minimum quorum: 1 agent. Recommended: 80% of judges. On timeout, proceed with remaining judges and note in report. On user cancellation, shutdown all judges and generate partial report with INCOMPLETE marker.
| Variable | Default | Description |
|---|---|---|
COUNCIL_TIMEOUT | 120 | Agent timeout in seconds |
COUNCIL_CODEX_MODEL | gpt-5.3-codex | Override Codex model for --mixed. Set explicitly to pin Codex judge behavior; omit to use user's configured default. |
COUNCIL_CLAUDE_MODEL | sonnet | Claude model for judges (sonnet default — use opus for high-stakes via --profile=thorough) |
COUNCIL_EXPLORER_MODEL | sonnet | Model for explorer sub-agents |
COUNCIL_EXPLORER_TIMEOUT | 60 | Explorer timeout in seconds |
COUNCIL_R2_TIMEOUT | 90 | Maximum wait time for R2 debate completion after sending debate messages. Shorter than R1 since judges already have context. |
| Flag | Description |
|---|---|
--deep | 3 Claude agents instead of 2 |
--mixed | Add 3 Codex agents |
--debate | Enable adversarial debate round (2 rounds via backend messaging, same agents). Incompatible with --quick. |
--timeout=N | Override timeout in seconds (default: 120) |
--perspectives="a,b,c" | Custom perspective names (each name sets the judge's system prompt to adopt that viewpoint) |
--perspectives-file=<path> | Load named perspectives from a YAML file (see Named Perspectives below) |
--preset=<name> | Built-in persona preset (security-audit, architecture, research, ops, code-review, plan-review, doc-review, retrospective, product, developer-experience) |
--count=N | Override agent count per vendor (e.g., --count=4 = 4 Claude, or 4+4 with --mixed). Subject to MAX_AGENTS=12 cap. |
--explorers=N | Explorer sub-agents per judge (default: 0, max: 5). Max effective value depends on judge count. Total agents capped at 12. |
--explorer-model=M | Override explorer model (default: sonnet) |
--technique=<name> | Brainstorm technique (scamper, six-hats, reverse). Case-insensitive. Only applicable to brainstorm mode — error if combined with validate/research. If omitted, unstructured brainstorm (current behavior). See references/brainstorm-techniques.md. |
--profile=<name> | Model quality profile (thorough, balanced, fast). Error if unrecognized name. Overridden by COUNCIL_CLAUDE_MODEL env var (highest priority), then by explicit --count/--deep/--mixed. See references/model-profiles.md. |
CLI Spawning: Use
Readtool onskills/council/references/cli-spawning.mdfor team setup, Claude/Codex agent spawning, parallel execution, debate R2 commands, cleanup, and model selection.
/council validate recent # 2 judges, recent commits
/council --deep --preset=architecture research the auth system # 3 judges with architecture personas
/council --mixed validate this plan # 3 Claude + 3 Codex
/council --deep --explorers=3 research upgrade patterns # 12 agents (3 judges x 4)
/council --preset=security-audit --deep validate the API # attacker, defender, compliance, web-security
/council --preset=doc-review validate README.md # 4 doc judges with named perspectives
/council brainstorm caching strategies for the API # 2 judges explore options
/council --technique=scamper brainstorm API improvements # structured SCAMPER brainstorm
/council --technique=six-hats brainstorm migration strategy # parallel perspectives brainstorm
/council --profile=thorough validate the security architecture # opus, 3 judges, 120s timeout
/council --profile=fast validate recent # haiku, 2 judges, 60s timeout
/council research Redis vs Memcached for session storage # 2 judges assess trade-offs
/council validate the implementation plan in PLAN.md # structured plan feedback
/council --preset=doc-review validate docs/ARCHITECTURE.md # 4 doc review judges
/council --perspectives="security-auditor,perf-critic" validate src/ # named perspectives
/council --perspectives-file=.agents/perspectives/custom.yaml validate # perspectives from file
User says: /council --quick validate recent
What happens:
.agents/council/YYYY-MM-DD-quick-<target>.md labeled Mode: quick (single-agent)Result: Fast sanity check for routine validation (no cross-perspective insights or debate).
User says: /council --debate validate the auth system
What happens:
.agents/council/Result: Two-round review with steel-manning and revision, useful for high-stakes decisions.
User says: /council --mixed --explorers=2 research Kubernetes upgrade strategies
What happens:
Result: Cross-vendor research with deep exploration, capped at 12 total agents.
| Problem | Cause | Solution |
|---|---|---|
| "Error: --quick and --debate are incompatible" | Both flags passed together | Use --quick for fast inline check OR --debate for multi-round review, not both |
| "Error: --debate is only supported with validate mode" | Debate flag used with brainstorm/research | Remove --debate or switch to validate mode — brainstorming/research have no PASS/FAIL verdicts |
| Council spawns fewer agents than expected | --explorers=N exceeds MAX_AGENTS (12) | Agent auto-scales judge count. Check report header for actual judge count. Reduce --explorers or use --count to manually set judges |
| Codex judges skipped in --mixed mode | Codex CLI not on PATH | Install Codex CLI (brew install codex). Model uses user's configured default — no specific model required. |
No output files in .agents/council/ | Permission error or disk full | Check directory permissions with ls -ld .agents/council/. Council auto-creates missing dirs. |
| Agent timeout after 120s | Slow file reads or network issues | Increase timeout with --timeout=300 or check COUNCIL_TIMEOUT env var. Default: 120s. |
/council replaces the old judge skill. Migration:
| Old | New |
|---|---|
| judge recent | /council validate recent |
| judge 2 opus | /council recent (default) |
| judge 3 opus | /council --deep recent |
The judge skill is deprecated. Use /council.
Council uses whatever multi-agent primitives your runtime provides. Each judge is a parallel subagent that writes output to a file and sends a minimal completion signal to the lead.
The --debate flag implements the deliberation protocol pattern:
Independent assessment → evidence exchange → position revision → convergence analysis
Council maintains fresh-context isolation (Ralph Wiggum pattern) with one documented exception:
--debate reuses judge context across R1 and R2. This is intentional. Judges persist within a single atomic council invocation — they do NOT persist across separate council calls. The rationale:
Without --debate, council is fully Ralph-compliant: each judge is a fresh spawn, executes once, writes output, and terminates.
If no multi-agent capability is detected, council falls back to --quick (inline single-agent review). If agent messaging is unavailable, --debate degrades to single-round review with a note in the report.
Convention: council-YYYYMMDD-<target> (e.g., council-20260206-auth-system).
Judge names: judge-{N} for independent judges (e.g., judge-1, judge-2), or judge-{perspective} when using presets/perspectives (e.g., judge-error-paths, judge-feasibility). Use the same logical names across both Codex and Claude backends.
skills/vibe/SKILL.md — Complexity + council for code validation (uses --preset=code-review when spec found)skills/pre-mortem/SKILL.md — Plan validation (uses --preset=plan-review, always 3 judges)skills/post-mortem/SKILL.md — Work wrap-up (uses --preset=retrospective, always 3 judges + retro)skills/swarm/SKILL.md — Multi-agent orchestrationskills/standards/SKILL.md — Language-specific coding standardsskills/research/SKILL.md — Codebase exploration (complementary to council research mode)references/agent-prompts.md (opens in a new tab)references/backend-background-tasks.md (opens in a new tab)references/backend-claude-teams.md (opens in a new tab)references/backend-codex-subagents.md (opens in a new tab)references/backend-inline.md (opens in a new tab)references/brainstorm-techniques.md (opens in a new tab)references/claude-code-latest-features.md (opens in a new tab)references/cli-spawning.md (opens in a new tab)references/debate-protocol.md (opens in a new tab)references/explorers.md (opens in a new tab)references/model-profiles.md (opens in a new tab)references/output-format.md (opens in a new tab)references/personas.md (opens in a new tab)references/presets.md (opens in a new tab)references/quick-mode.md (opens in a new tab)references/ralph-loop-contract.md (opens in a new tab)schemas/verdict.json (opens in a new tab)scripts/validate-council.sh (opens in a new tab)scripts/validate.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ulpi-io/plugin-marketplace --plugin boshu250 skills in this plugin
/beadsGit-backed issue tracker for multi-session work with dependencies and persistent memory across conversation compaction. Use when work spans sessions, has blockers, or needs context recovery after compaction.
/brainstormCollaborative discovery and design framing for ambiguous or high-risk work. Use when requirements are unclear, multiple approaches are possible, or you need to turn an idea into a validated design brief before planning or coding./bug-huntInvestigate suspected bugs or run proactive code audits. Triggers: "bug", "broken", "doesn't work", "failing", "investigate bug", "debug", "find the bug", "troubleshoot", "audit code", "find bugs in", "code audit", "hunt bugs"./codex-teamUse when you have 2+ tasks that Codex agents should execute. Runtime-native: Codex sub-agents when available, Codex CLI fallback otherwise. Handles file conflicts via merge/wave strategies. Triggers: "codex team", "spawn codex", "codex agents", "use codex for", "codex fix"./complexityAnalyze code complexity and find refactor targets using radon/gocyclo. Triggers: "complexity", "analyze complexity", "find complex code", "refactor targets", "cyclomatic complexity", "code metrics"./converterCross-platform skill converter. Parse AgentOps skills into a universal bundle format, then convert to target platforms (Codex, Cursor). Triggers: convert, converter, convert skill, export skill, cross-platform.Other plugins' skills for the same job