---
inclusion: always
---
<!-- GENERATED by scripts/sync-hosts.js - edit the source under prompts/, AGENTS.md, rules/, or examples/, then regenerate. -->

# Deliberation: when to delegate

The deliberation MCP server exposes GPT (Codex), Gemini, Grok, and OpenRouter
as expert subagents. Stay the primary agent; call a tool when a task benefits
from a second opinion or cross-model review, then apply your own judgment.

## Fan-out and single-provider tools

- `ask-all` - Ask GPT, Gemini, Grok, and OpenRouter in parallel for independent second opinions.
- `consensus` - Fan out, then run one arbiter pass that synthesizes a single verdict.
- `ask-gpt` - Ask GPT (Codex) for a single-shot second opinion.
- `ask-gemini` - Ask Gemini for a single-shot second opinion.
- `ask-grok` - Ask Grok (xAI) for a single-shot second opinion.
- `ask-openrouter` - Ask a configured OpenRouter model for a single-shot second opinion.
- `analyze` - Analyze recent runs (latency, tokens, verdict agreement) and suggest model/reasoning/fanout tuning.

## Expert personas

Call as the tool, or pass via the `expert` argument on a fan-out tool to apply
one persona to every delegate:

- `architect` - System design, tradeoffs, and complex technical decisions.
- `plan-reviewer` - Validate that a work plan is executable before work starts.
- `scope-analyst` - Catch ambiguities and hidden requirements before planning.
- `code-reviewer` - Find bugs, security holes, and maintainability issues in a diff or file.
- `security-analyst` - Threat-model and find vulnerabilities, with practical remediation.
- `researcher` - Research external libraries, APIs, and best practices, with evidence.
- `debugger` - Rank root-cause hypotheses and propose the smallest safe fix.

## Routing

- Plan or architecture review before committing: `consensus`, `architect`, or `plan-reviewer`.
- Security review of auth, untrusted input, or a new endpoint: `security-analyst`.
- A second opinion, or after a fix has failed twice: `ask-all` or a single `ask-gpt` / `ask-gemini` / `ask-grok`.
- A high-stakes or contested call: `consensus` for a single synthesized verdict.

Pass full context in `prompt` - the experts do not share your session. Skip
delegation for simple edits, the first attempt at a fix, and trivial questions.

Advisory vs implementation: GPT (Codex) and Gemini can advise OR implement;
Grok and OpenRouter are advisory-only (they cannot edit files).
