$npx -y skills add yogirk/agent-council --skill claude-codeConvene a panel of CLI-based AI agents (Codex, Gemini) to deliberate on a question. Each agent answers independently, then you synthesize the council's verdict as chairman. Use for architecture decisions, code review, debugging hypotheses, or any question where diverse perspectiv
| 1 | # Agent Council |
| 2 | |
| 3 | Convene a multi-agent council to deliberate on a question. You (Claude) are the |
| 4 | chairman. Other CLI agents (Codex, Gemini) provide independent opinions. You |
| 5 | synthesize the final verdict. |
| 6 | |
| 7 | ## Usage |
| 8 | |
| 9 | The user invokes `/council "their question"` or `/council --with-review "their question"`. |
| 10 | |
| 11 | ## Step 1: Dispatch the council |
| 12 | |
| 13 | Run this bash block. Replace `{QUESTION}` with the user's actual question text. |
| 14 | |
| 15 | ```bash |
| 16 | COUNCIL_BIN=""; for _d in "$HOME/.claude/skills/agent-council" "$HOME/.agents/skills/agent-council" "$HOME/.gemini/skills/agent-council" "$(git rev-parse --show-toplevel 2>/dev/null)"; do [ -x "$_d/bin/council" ] && COUNCIL_BIN="$_d/bin/council" && break; [ -x "$_d/council" ] && COUNCIL_BIN="$_d/council" && break; done; [ -z "$COUNCIL_BIN" ] && COUNCIL_BIN="$(which council 2>/dev/null || echo "bin/council")" |
| 17 | QUESTION_FILE=$(mktemp /tmp/council-q-XXXXXX) |
| 18 | cat <<'COUNCIL_EOF' > "$QUESTION_FILE" |
| 19 | {QUESTION} |
| 20 | COUNCIL_EOF |
| 21 | SLUG=$(basename "$(git rev-parse --show-toplevel 2>/dev/null || pwd)") |
| 22 | SESSION_DIR=$($COUNCIL_BIN --question-file "$QUESTION_FILE" --project "$SLUG") |
| 23 | rm -f "$QUESTION_FILE" |
| 24 | echo "SESSION_DIR=$SESSION_DIR" |
| 25 | ``` |
| 26 | |
| 27 | If the user passed `--with-review`, add that flag to the council command. |
| 28 | If the user passed `--quick`, add that flag instead. |
| 29 | |
| 30 | ## Step 2: Read the council opinions |
| 31 | |
| 32 | After the bash block completes, read the opinion files from the session directory: |
| 33 | |
| 34 | 1. Read `$SESSION_DIR/meta.json` to understand the session structure |
| 35 | 2. Read each file in `$SESSION_DIR/stage1/` (opinion_codex.json, opinion_gemini.json, etc.) |
| 36 | 3. If `--with-review` was used, also read files in `$SESSION_DIR/stage2/` |
| 37 | |
| 38 | ## Step 3: Synthesize as chairman |
| 39 | |
| 40 | You are the chairman. You have the full conversation context with the user PLUS the |
| 41 | council opinions. Produce the synthesis: |
| 42 | |
| 43 | - **Consensus:** Where all agents agree |
| 44 | - **Divergence:** Where agents disagree. State each position fairly with agent name. |
| 45 | - **Recommendation:** Your synthesized answer drawing from the strongest elements. |
| 46 | - **Confidence:** |
| 47 | - If all agree: **HIGH** — Strong consensus across models. |
| 48 | - If majority agrees: **MEDIUM** — Majority view with notable dissent. |
| 49 | - If fundamental disagreement: **LOW — Agents fundamentally disagree.** |
| 50 | For each agent, state: Agent name (their confidence): their position. |
| 51 | End with: "This is a decision you should make yourself, not delegate to the council." |
| 52 | |
| 53 | ## Step 4: Save synthesis |
| 54 | |
| 55 | Write your synthesis to `$SESSION_DIR/synthesis.json`: |
| 56 | |
| 57 | ```json |
| 58 | { |
| 59 | "chairman": "claude", |
| 60 | "consensus": "...", |
| 61 | "divergence": "...", |
| 62 | "recommendation": "...", |
| 63 | "confidence": "high|medium|low", |
| 64 | "timestamp": "ISO 8601" |
| 65 | } |
| 66 | ``` |
| 67 | |
| 68 | ## Step 5: Regenerate the viewer |
| 69 | |
| 70 | After writing synthesis.json, regenerate the viewer so it includes your verdict: |
| 71 | |
| 72 | ```bash |
| 73 | $COUNCIL_BIN regenerate-viewer "$(basename "$SESSION_DIR")" --project "$SLUG" |
| 74 | ``` |
| 75 | |
| 76 | ## Step 6: Offer the viewer and next steps |
| 77 | |
| 78 | Tell the user: |
| 79 | |
| 80 | > Council viewer saved to: $SESSION_DIR/viewer.html — open in browser to explore the full deliberation. |
| 81 | > |
| 82 | > **Next steps:** |
| 83 | > - Re-evaluate later with current context: `/council-revisit {SESSION_ID}` |
| 84 | > - Record how this decision played out: `/council-outcome {SESSION_ID} "what happened"` |
| 85 | > - Browse past sessions: `/council-list` |