/kanso:kanso-council [scope: diff|branch|module-path|all] [--fresh] [--<engine>-model=...]from kanso
Runs a multi-model code audit by dispatching the same scope to codex, cursor-agent, claude, and gemini in parallel, then merging findings into a consensus-weighted report. Use for cross-checked reviews or second opinions on diffs.
Ships in kanso. 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.
A stronger audit. Every capable agent CLI on the machine reviews the same scope under kanso-audit's framework, independently and in parallel, and the reports merge into one consensus-weighted findings list. Agreement between independent models is strong signal; a finding three engines converge on is rarely noise.
The council changes who reviews, never what happens next. Findings land in kanso-audit's report format, end at kanso-audit's approval gate, and route through its Phases B, C, and D unchanged. This skill owns Phase A only.
Four engines are known. The host CLI (the one this session runs in) always sits on the council and audits inline; the others are detected with command -v and run headless in their own worktrees. An absent engine is skipped with a one-liner, never an error.
Model policy: family aliases and CLI defaults only. A dated model ID in this file is a bug. Aliases and defaults track each vendor's current flagship, so a new model generation needs zero edits here.
| Engine | Headless invocation | Model | Effort |
|---|---|---|---|
| codex | codex exec "<prompt>" | CLI default (current flagship) | -c model_reasoning_effort="low" |
| cursor-agent | cursor-agent -p --output-format text "<prompt>" | --model grok (family alias) | none available |
| claude | claude -p "<prompt>" | --model opus (family alias) | CLI default (medium) |
| gemini | gemini -p "<prompt>" | CLI default | none |
If an alias errors because the vendor renamed it, drop the model flag, rerun on the CLI default, and note the substitution in the roster line. Per-run overrides win over the table: --codex-model=x maps to that engine's model flag verbatim.
Open the report with the roster:
Council: host (claude) + codex + grok · gemini not found, skipped
Same grammar as kanso-audit: diff (default), branch, a module path, or all. Resolve it once, before dispatch, and capture the concrete input (the diff text, or the file list for path and all scopes) so every engine reviews identical material. A council where each member reads a different tree is theatre.
--fresh applies to the host's own leg only, exactly as kanso-audit defines it. External engines are already fresh context by construction.
Read ../kanso-audit/SKILL.md and extract the sections from "The review framework" through "The report format", including the adversarial lens and the anti-dilution pattern list. Do not paraphrase them; the framework lives in one file and the council quotes it. Wrap the extract with:
diff and branch scopes, or the file list plus "read these files" for path scopes.Every external engine receives the same prompt. Difference in verdicts should come from the models, never from the briefing.
External engines get full tool access in headless mode (cursor-agent in particular has write and bash), so none of them runs in the user's working tree. Each engine audits a throwaway checkout:
WT=$(mktemp -d)/council-<engine>
cleanup() { [ -n "${CHILD:-}" ] && kill "$CHILD" 2>/dev/null
git worktree remove --force "$WT" 2>/dev/null; git worktree prune; }
trap cleanup EXIT INT TERM
git worktree add --detach -q "$WT" HEAD
# diff scope: apply the captured uncommitted diff inside $WT first
( cd "$WT" && <engine invocation> ) > <engine>.report 2> <engine>.log & CHILD=$!
wait "$CHILD"
The engine runs as a background child with wait, never as a foreground command. Bash defers signal traps until a foreground command finishes, so a foreground engine would hold its worktree for the rest of its run after an interrupt; wait is interruptible and lets cleanup fire immediately on success, failure, timeout, or kill alike. Run one wrapper per engine, all in parallel, while the host performs its own kanso-audit Phase A inline.
Rules:
git worktree list before dispatch; after all jobs finish, run it again and remove anything the council added that survived. The tree the user owns is untouched either way, and the run ends only when the two listings match.Normalise each report's findings to path:line, tier, category, pattern name, one-line description. Then:
(3/3).(1/3) so the user can weigh it.## Disputed with each side's one-line position. The user judges.The signal rule from kanso-audit still governs the merged list: Tier 1 plus Tier 2 below 60% of total means cut Tier 3 until it holds.
kanso-audit's format, two additions: the roster line under the header, and a backer count on each finding.
# Council audit: <short scope description>
Council: host (claude) + codex + grok · gemini not found, skipped
**Files:** <n> · **Findings:** <t1> blocker, <t2> important, <t3> polish
<Two lines max, as kanso-audit defines.>
## Findings
[1] `src/auth.ts:88` — defensive theatre swallows token-refresh errors (blocker, behaviour-change) (3/3)
[2] `src/auth.ts:141` — off-by-one in retry window (important, behaviour-change) (1/3)
## Disputed
[3] `src/cache.ts:52` — codex: unbounded map is a leak (important) · grok: bounded by session lifetime, fine
Then kanso-audit's approval gate, verbatim, and its Phases B, C, and D by reference. Behaviour changes still need explicit opt-in; refactors still route to /kanso-refactor; verification still pastes the exit code.
/kanso-audit instead.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub blakecyze/kanso --plugin kanso2 plugins ship this exact skill · first indexed Sep 4, 2026
12 skills in this plugin
/kanso-auditUse when the user asks for a code review, audit, pre-PR check, quality sweep, or pattern analysis of a diff, branch, module, or codebase. Also use when the user asks to "check" or "look over" their code for issues./kanso-commitUse when the user asks to commit changes, stage their work, write commit messages, or split the working tree into logical commits./kanso-contextUse when the user asks to update, prune, audit, or create AGENTS.md, CLAUDE.md, or other agent context files. Also use when the user says their AI agents keep making the same mistakes and they want to fix it at the context level.