How hex/claude-council works
claude-council is a Claude Code plugin for asking multiple AI agents the same coding question and comparing their answers. The main path is a user command or confirmed model-tool request, through council execution and configured provider adapters, to per-provider responses and a synthesis; results can also stream into a tmux pane or be fetched as background jobs. The README documents roles, debate, deep analysis, advice, stop-gate review, and specialist coding tasks as additional capabilities. Pane links reflect sampled code; other relationships are documented in the README, and unsampled internals are not inferred.
Main entry points: run-council.sh Council runner · pane.tsx Streaming pane · snapshot.ts Run snapshot · ask.md Ask command
Components 21
User entrypoints
- Ask command
commands/ask.md - Result command
commands/result.md - Status command
commands/status.md - Advice command
commands/advise.md - Council tool
mods/council-pane/hooks/tool.ts
Council execution
- Council runner
scripts/run-council.sh - Provider adapters
scripts/providers - Role configuration
config/roles.json - Answer synthesis
prompts/synthesis.md - Background jobs
scripts/lib/jobs.sh
Results and pane
- Streaming pane
mods/council-pane/hooks/pane.tsx - Run snapshot
mods/council-pane/hooks/snapshot.ts - Provider status
mods/council-pane/hooks/status.ts - Pane view model
mods/council-pane/hooks/view.ts - Table formatting
mods/council-pane/hooks/tables.ts
Reviews and specialists
- Stop review gate
scripts/stop-review-gate.sh - Specialist tasks
scripts/specialist.sh - Specialist pane
mods/council-pane/hooks/specialist.ts - Proactive advisor
agents/council-advisor.md
Other components
- Claude Code user
- AI providers
Connections 23
- Claude Code user → Ask command: asks via
README.md - Claude Code user → Result command: fetches jobs
README.md - Claude Code user → Status command: checks status
README.md - Claude Code user → Advice command: requests advice
README.md - Ask command → Council runner: starts query
README.md - Council tool → Council runner: runs confirmed query
README.md - Council runner → Provider adapters: dispatches seats
README.md - Provider adapters → AI providers: queries models
README.md - Council runner → Role configuration: uses roles
README.md - Council runner → Answer synthesis: synthesizes answers
README.md - Council runner → Background jobs: queues async work
README.md - Council runner → Streaming pane: streams run results
README.md - Result command → Background jobs: fetches job
README.md - Streaming pane → Run snapshot: reads run view
mods/council-pane/hooks/pane.tsx - Run snapshot → Provider status: parses status
mods/council-pane/hooks/snapshot.ts - Run snapshot → Pane view model: parses colors
mods/council-pane/hooks/snapshot.ts - Streaming pane → Pane view model: renders sections
mods/council-pane/hooks/pane.tsx - Streaming pane → Table formatting: formats tables
mods/council-pane/hooks/pane.tsx - Claude Code user → Stop review gate: opts into review
README.md - Stop review gate → AI providers: requests review
README.md - Claude Code user → Specialist tasks: assigns task
README.md - Specialist tasks → Specialist pane: shows task progress
- Claude Code user → Proactive advisor: gets suggestions
README.md