About Deliberation
Deliberation is an MCP server published by antonbabenko in the Agents category: ask Codex, Gemini, Grok, and 400+ OpenRouter models (Qwen, Kimi, DeepSeek) for second opinions or arbiter-mediated consensus. One MCP server for Claude Code, Codex, Cursor, Kiro, OpenCode. Measures the models' usefulness, too. Conduid read 18 tools from its source: analyze, ask-all, ask-one, codex-login, consensus, consensus-step and 12 more. No package is published for it, so it installs from a source checkout.
The repository has 191 stars and 13 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is v4.6.1 (18 Nov 2026): Bug Fixes mcp: refuse calls to a provider disabled in config (#295) (c8cf5f9). It follows v4.6.0 (18 Nov 2026), and the 5 most recent releases go back to v4.3.0 (18 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include ai-coding, claude-code-plugin, code-review, consensus, devtools and grok.
Install
git clone https://github.com/antonbabenko/deliberationTools (18)
analyzeAnalyze recent runs from the opt-in debug log (latency/tokens/reasoning-effort per model) plus the session store (verdict agreement rate), and return advisory tuning suggestions (disable a slow/redundant model in ask-all, lower an OpenRouter model's reasoning, adjust maxFanout). Two lenses reported side by side - timing and agreement are NOT joined (no shared run id). Requires `debug.enabled` for the timing lens. Local and read-only (no provider calls, writes nothing); returns a text-wrapped JSON envelope with the two lenses + suggestions. The `/deliberation:analyze` slash command renders this for humans.ask-allFan out one question to GPT, Gemini, Grok, and any configured OpenRouter models in parallel for independent second opinions, then return all results (advisory, no cross-contamination). Pass `expert` to apply a persona to every delegate. Calls external LLM providers (each needs its key/CLI; provider rate limits apply); returns a text-wrapped JSON envelope { results[], omitted[] } and persists a session record only when sessions.persist is enabled (default off).ask-oneSecond opinion from ONE named provider in the active panel (e.g. `codex`, `gemini`, `grok`, `openrouter:<alias>` - get the names from `panel`). Issue N in parallel (one per panel name) so each renders independently as it lands. For `codex` with no login, the call itself starts a device login and returns its link + code (errorKind auth): never skip it for that reason. Better: when `panel` lists codex in `needsLogin`, run `codex-login` first so GPT answers from this call. Calls one external LLM provider (needs its key/CLI; rate limits apply); returns a text-wrapped JSON envelope { result }, or { error, panel } when the name is not in the panel. Advisory, single-shot.codex-loginStart (or join) the ChatGPT device login for GPT (Codex) and return its link + one-time code WITHOUT asking GPT anything. Use it when GPT has no login on this machine (e.g. Claude Code on the web): show the returned `message` to the user as-is; GPT answers once they approve in the browser. A host with MCP elicitation also gets a dialog. At most one `codex login --device-auth` runs per server; credentials are never read or copied. Returns a text-wrapped JSON envelope { status: authenticated|pending|starting|declined|failed|unavailable, message, url?, code?, expiresAt? }.consensusRun the FULL multi-round consensus convergence loop server-side with a provider arbiter (blind pass + peer fan-out -> adjudicate -> revise) and return the converged verdict. Default depth is `consensus.maxRounds` (config, default 5); pass `maxRounds` to override. Pass `synthesizeAlways:true` for a SINGLE arbiter synthesis pass instead of the loop (best for open questions, not plan convergence): it returns a free-text `synthesis` and `maxRounds` is ignored. Configure the arbiter via `consensus.arbiter` - a concrete provider/openrouter alias runs server-side; `host` mode returns the opinions for YOU to synthesize. Advisory; pass `expert` to apply a persona. Calls external providers (keys/CLI; rate limits apply); returns a text-wrapped JSON envelope (split verdict/synthesis, loop fields nullable) and persists a session record only when sessions.persist is enabled (default off). NOTE (Claude Code): use the `/consensus` slash command for the transcript-visible host-arbiter loop (it drives `consensus-step`); this tool is the provider-arbiter path for any host.consensus-stepClient-driven consensus loop where YOU (the host model) are the arbiter, one action per call: init (returns sessionId + blind prompt) -> record_blind (your pre-commit verdict) -> dispatch_peers (server fans out to the providers) -> submit_adjudication (your verdict + per-issue accept/dismiss/defer) -> submit_revision (your revised plan), looping until converged or consensus.maxRounds rounds (default 5). Only the dispatch_peers action calls external providers; the others are local transitions on the ephemeral per-session loop store (keyed by sessionId, lost on server restart). Each call returns a text-wrapped JSON envelope with the next status/round (plus blindPrompt, opinions[], or finalReport by action). Advisory to the outside world, but mutates server loop state on every call.doctorHealth check for this deliberation install: config validity (config/config.schema.json), provider CLIs and keys (codex, agy, XAI_API_KEY, OpenRouter key, local providers), sessions/debug flags, the host tool-call cap, the session store dir and, when `shellSessionsDir` is passed, path drift between your shell and this server. Local and read-only: stat/env probes plus `codex --version`, no provider API calls, no login, writes nothing. Returns a text-wrapped JSON envelope { findings[] (check, status ok|warn|fail|info, message, fix?), summary, paths }. The `/deliberation:doctor` slash command renders this for humans.geminiStart a new Gemini expert session| Parameter | Type | Description |
|---|---|---|
| cwd | string | Current working directory |
| developer-instructions | string | Expert system instructions |
| include-directories | array | Additional workspace dirs; maps to repeated --add-dir on the Antigravity CLI (agy). |
| model | string | agy path only (the API key path ignores it and uses providers.gemini.apiModel). An agy model id fusing family + effort, e.g. "gemini-3.6-flash-high" (see `agy models`), passed as --model; defaults to providers.gemini.model, then GEMINI_DEFAULT_MODEL, then the "auto-gemini-3" router alias. |
| prompt * | string | The delegation prompt |
| recovery-grace | number | Extra ms to keep agy alive after the soft timeout to drain a late answer from streamed stdout. 0..600000. Default 120000. 0 disables drain. |
| sandbox | string | |
| timeout | number | Soft timeout in ms. 1..600000. Default 300000. On expiry the bridge drains the streamed stdout and recovers a late answer instead of failing. |
gemini-replyContinue an existing Gemini session| Parameter | Type | Description |
|---|---|---|
| cwd | string | |
| include-directories | array | Additional workspace dirs; maps to repeated --add-dir on the Antigravity CLI (agy). |
| prompt * | string | Follow-up prompt |
| recovery-grace | number | Extra ms to keep agy alive after the soft timeout to drain a late answer from streamed stdout. 0..600000. Default 120000. 0 disables drain. |
| sandbox | string | |
| threadId * | string | Conversation ID returned by a previous gemini call |
| timeout | number | Soft timeout in ms. 1..600000. Default 300000. On expiry the bridge drains the streamed stdout and recovers a late answer instead of failing. |
grokStart a new Grok (xAI) expert session. Advisory only (no filesystem editing). Supports attaching files.grok-replyContinue an existing Grok session (in-memory; lost if the MCP server restarts).| Parameter | Type | Description |
|---|---|---|
| cwd | string | Base directory for relative file path uploads |
| files | any | |
| model | string | |
| prompt * | string | Follow-up prompt |
| reasoning_effort | string | Reasoning effort; defaults to GROK_REASONING_EFFORT or high. Use 'none' to omit. |
| roots | array | Optional absolute directory roots for resolving files[].path and files[].dir. |
| threadId * | string | Session ID returned by a previous grok call |
| timeout | number |
openrouterStart an OpenRouter expert session (advisory only). Pick a configured `alias`.openrouter-listList configured OpenRouter delegates and settings. Pass mode ('ask-all'|'consensus') + optional expert to also get the resolved `selected` delegate set (selection applied server-side from the live config).| Parameter | Type | Description |
|---|---|---|
| expert | string | |
| mode | string |
openrouter-replyContinue an OpenRouter session by threadId (in-memory; lost on restart).| Parameter | Type | Description |
|---|---|---|
| alias | any | |
| cwd | any | |
| files | any | |
| model | any | |
| preset | any | |
| prompt * | string | |
| reasoning_effort | any | |
| roots | any | |
| temperature | any | |
| threadId * | string | |
| timeout | any |
panelReturn the names of the providers `ask-all` WOULD dispatch for the current config + expert (enabled built-ins + eligible OpenRouter aliases, fanout cap applied), WITHOUT calling them. Use this to discover the panel, then issue one `ask-one` call per provider in parallel for visible per-provider progress. Pass `for: "consensus"` for the /consensus panel instead. `needsLogin` lists panel members with no login yet (codex on a fresh machine): run `codex-login` and let the user approve BEFORE dispatching, so they answer from the first call. No provider calls and never starts a login; when the dashboard journal is enabled (`dashboard.enabled`) it writes one local journal line opening a fan-out run and returns its `runId` - pass that to every `ask-one`. Returns a text-wrapped JSON envelope { providers[], omitted[], unavailable[], needsLogin[], runId? }.session-annotateAppend a freeform note to a persisted session's audit trail - an additive local write, no provider calls. Requires sessions.persist. Returns a text-wrapped JSON envelope { session } (the updated record), or { error } when persistence is off or the id is unknown.session-getFetch a persisted consensus/ask-all session record by id (opinions, verdict, arbiter, annotations). Requires sessions.persist; local and read-only (no provider calls). Returns a text-wrapped JSON envelope { session }, or { error } when persistence is off or the id is unknown.session-revisitRe-run a persisted session's ORIGINAL question with the CURRENT providers/config, linking the new run to its source by parentId. Requires sessions.persist; re-runs through the original tool path (which dispatches external providers) and persists a linked child record on success. Returns a text-wrapped JSON envelope (the re-run payload + parentId), or { error } when persistence is off or the id is unknown.Security checks
- ✓README presentThe repository's README runs to about 5.9K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !No dynamic code executionScanned 88 source files and found 2 calls to eval or shell execution, in server/dashboard/stop.js and server/gemini/index.js. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
README
The repository's README runs to about 5.9K words, fetched 13 days ago. The original in the repository is authoritative.
Read full README