code-quorum
code-quorum
Las revisiones independientes se han convertido en una parte importante de cómo uso las herramientas de agente. Inspirado en trabajos similares, construí Code Quorum para mi propio uso y lo comparto por si a otros les resulta útil.
Code Quorum es un consejo multiagente de macOS para Claude Code y Codex. El anfitrión activo escribe su propia revisión, evaluación o plan mientras los asientos externos trabajan en paralelo. Una barrera estructural contra el sesgo mantiene cada perspectiva independiente hasta la síntesis final.
Puede usar las suscripciones existentes de Claude Code, ChatGPT/Codex y Gemini/Antigravity. El asiento de OpenCode usa OpenRouter, con DeepSeek V4 Flash como modelo predeterminado. Se admiten ambos hosts CLI, junto con Codex en la aplicación de escritorio de ChatGPT y la superficie de Code en la aplicación de escritorio de Claude.
Host | Consejo externo predeterminado |
Claude Code | Codex + Gemini + OpenCode |
Codex | Suscripción de Claude + Gemini + OpenCode |
El anfitrión nunca es también un asiento de subproceso. La división inicio/espera requiere que el anfitrión forme su propia respuesta antes de que q_await exponga la salida de los pares, y cada habilidad del consejo llama a la notificación de finalización bloqueante en el mismo turno que su inicio.
Los asientos externos son de solo lectura, pero solo lectura no significa datos locales. Revisa Seguridad y límites de datos antes de usar Code Quorum con material privado.
Cada inicio de consejo MCP que lee el repositorio requiere un cwd de proyecto absoluto explícito. Las herramientas MCP rechazan un valor omitido o vacío en lugar de recurrir al directorio de caché de complementos o de ejecución del servidor. Las habilidades del anfitrión proporcionan este valor durante el uso normal de /q-* y $code-quorum:q-*. Los archivos de plan y alcance también deben resolverse dentro de ese directorio; las rutas absolutas, el recorrido .. y los escapes de enlaces simbólicos se rechazan antes de leer su contenido.
Flujos de trabajo
El anfitrión puede seleccionar un flujo de trabajo a partir de una solicitud en lenguaje natural que coincida. Usa los siguientes formularios para seleccionar uno explícitamente:
Flujo de trabajo | Claude Code | Codex | Shell |
Plan |
|
|
|
Brainstorm |
|
|
|
Skystorm |
|
| habilidad solo del anfitrión |
Validate |
|
|
|
Review |
|
|
|
Research |
|
|
|
Help |
|
| habilidad solo del anfitrión |
uv run quorum --help enumera la superficie exacta del shell. Los modificadores principales son:
Opción | Efecto |
| Añade otra ronda de divergencia para la lluvia de ideas del anfitrión, o expande la validación/revisión a 4 rondas con una rotación de posturas. |
| Hace que las rondas posteriores de validación/revisión ataquen las posiciones de los pares en lugar de revisar hacia el acuerdo. |
| Declara áreas dentro de los límites, fuera de los límites y de riesgo aceptado para una revisión de todo el código. |
| Hace que la investigación del anfitrión busque analogías entre dominios en lugar de arte previo directo. |
| Ejecuta la lluvia de ideas o skystorm solo con los priores del modelo. |
Fuentes de investigación y credenciales
q-research consulta las seis fuentes de forma predeterminada. Repite --source <nombre> para restringir una ejecución.
Fuente | Objetivo | Política de credenciales |
arXiv ( | Artículos académicos y preimpresiones de la búsqueda de arXiv. | Ninguna. |
OpenAlex ( | Trabajos recientes y resúmenes; el modo exploratorio también produce un mapa de subcampos. | Se requiere |
Europe PMC ( | Preimpresiones de ciencias de la vida de bioRxiv, medRxiv, Research Square y fuentes similares; los registros de arXiv están excluidos. | Ninguna. |
Context7 ( | Coincidencias de bibliotecas de alta confianza y fragmentos de documentación. | Se recomienda |
GitHub ( | Repositorios públicos coincidentes por nombre, descripción y temas, luego clasificados por estrellas. | Se recomienda |
Hugging Face ( | IDs de modelos públicos y metadatos, clasificados por descargas. Los resultados de respaldo por término llevan | Se recomienda |
Code Quorum lee las credenciales del entorno del proceso y envía los tokens solo en los encabezados de autorización. El adaptador de Codex generado reenvía las variables nombradas pero no almacena sus valores en el artefacto del complemento. OpenAlex es la única fuente que requiere una clave para el uso normal; las demás mejoran la fiabilidad o los límites de tasa.
Verifica la búsqueda de Hugging Face desde un checkout con:
uv run quorum research "sentence embedding" --source huggingface --limit 5
uv run pytest tests/test_research_live.py -m live -k huggingface -qLa verificación de CLI debe devolver enlaces de modelos y un recuento de fuente HuggingFace distinto de cero. Las pruebas en vivo cubren la búsqueda directa, la autenticación con token configurado, la unión de términos distintivos y la ruta completa de research_topic. Sin un token, la prueba de autenticación se omite mientras las comprobaciones anónimas aún se ejecutan.
Related MCP server: Moderator MCP Server
Requisitos
Code Quorum actualmente admite macOS y requiere Python 3.13+, el gestor de paquetes uv y los binarios de los asientos que pretendas usar. Cada asiento depende de su propio inicio de sesión o clave; Code Quorum no escribe valores de credenciales en los artefactos de los complementos. Las CLI de los asientos conservan su propia autenticación y estado de ejecución como se describe en SECURITY.md.
Asiento | Binario | Autenticación | Costo |
codex | el inicio de sesión propio de la CLI ( | Suscripción de ChatGPT o clave API medida | |
gemini | OAuth de Google a través de | Suscripción de Google AI; | |
opencode |
| medido a través de OpenRouter | |
claude (solo host Codex) | el inicio de sesión propio de claude.ai de la CLI | solo suscripción de Claude; el enrutamiento por clave API se elimina |
El asiento de Gemini depende del sandbox Seatbelt de macOS; Claude usa una lista de permitidos de herramientas de lectura en su lugar. Un host de Codex también necesita un helper LaunchAgent de alcance limitado para sus asientos de Claude y Gemini. Codex y OpenCode no tienen dependencia de Seatbelt pero no están probados en otras plataformas.
Instalación
Clona el checkout estable y configura los asientos:
git clone https://github.com/sdewell/code-quorum.git
cd code-quorum
uv sync
agy # complete Google OAuth login, then exit
uv run quorum setup-agy # one-time Gemini seat config
uv run quorum setup-models --host claude # use --host codex for Codex
uv run quorum doctor --host claude # or codex / both
uv run quorum auth-check --seat gemini --host claudedoctor verifica binarios, forma de configuración y preparación del sandbox. No prueba credenciales en vivo. auth-check ejecuta agy models dentro del mismo sandbox usado por el asiento y requiere al menos una fila de modelo válida sin enviar un prompt de modelo. Un inicio de sesión faltante o revocado dirige al usuario de vuelta a agy interactivo; Code Quorum nunca cambia silenciosamente a una ruta de API medida.
En un host de Codex, instala y verifica el helper desde una terminal real antes de la verificación de autenticación de Codex:
uv run quorum install-seat-helper-launchagent # --allowed-root <dir> to widen
uv run quorum seat-helper-status
uv run quorum auth-check --seat gemini --host codexCada flujo de trabajo MCP permite cwd bajo ~/Code y ~/src de forma predeterminada; el helper de Codex aplica las mismas raíces antes de aceptar solicitudes de Claude o Gemini. Establece CODE_QUORUM_HELPER_ALLOWED_ROOTS o instala el helper con opciones repetidas --allowed-root para usar otras raíces de proyecto. Reinstálalo desde el checkout estable actualizado después de cada actualización de Code Quorum. Los protocolos de helper incompatibles fallan de forma segura, y se rechaza la instalación desde la caché de complementos reemplazable de Codex.
Límites de solo lectura
Cada asiento externo es de solo lectura y se niega a ejecutarse si no se puede aplicar su límite. La aplicación varía según el asiento: Codex usa su sandbox de solo lectura nativo, Claude expone solo herramientas de lectura, Gemini usa Seatbelt de macOS y OpenCode usa un HOME aislado con permisos restringidos.
El perfil Seatbelt de Gemini niega otras lecturas del directorio de inicio, con excepciones explícitas para la autenticación y el estado de ejecución de agy. No niega rutas legibles fuera de $HOME. Code Quorum no proporciona una valla de rutas universal para Claude, Codex u OpenCode. El material del consejo puede salir de la máquina bajo las cuentas de proveedor configuradas por el usuario. La tabla completa de límites, el mapa de salida de datos, la guía de aislamiento estricto y el manejo de credenciales están en SECURITY.md.
Datos y aprobaciones en Codex
Codex trata la aprobación de herramientas, el confinamiento del sistema de archivos y la autorización para enviar material fuera de la máquina como decisiones separadas. Un objetivo como main...HEAD limita el diff de revisión preparado; no restringe el acceso de solo lectura de un asiento externo al directorio de trabajo.
Cuando approvals_reviewer = "auto_review" está habilitado, un inicio de consejo puede necesitar autorización explícita que nombre la carga útil y los destinatarios. Los usuarios que quieran acceso desatendido pueden optar por herramienta, pero Code Quorum nunca escribe esas entradas de aprobación por sí mismo.
SECURITY.md contiene el ejemplo de autorización de una sola vez, los seis bloques de aprobación de Codex (incluida la herramienta compartida q_await), las directrices del AGENTS.md del proyecto, los límites de confinamiento de rutas y el procedimiento de actualización que preserva las aprobaciones. Revísalo antes de habilitar flujos de trabajo no supervisados.
Configuración
Cada asiento resuelve su modelo mediante una única escalera; el primer acierto gana: indicador por ejecución -> variable de entorno -> la elección registrada por quorum setup-models -> el pin incluido. Las elecciones registradas nunca cambian silenciosamente; un asiento que no puede cumplir una falla de forma ruidosa mientras el resto del consejo continúa.
uv run quorum setup-models --host claude
uv run quorum setup-models --seat codex --model gpt-5.6-terra --effort mediumVariable | Efecto |
| perfil de host predeterminado ( |
| modelo del asiento Gemini (un id de |
|
|
| modelo del asiento OpenCode |
|
|
| modelo y esfuerzo del asiento Claude |
| modelo y esfuerzo de razonamiento del asiento Codex |
Configuración de OpenCode
El asiento OpenCode requiere OPENROUTER_API_KEY y no carga tu configuración personal de OpenCode. Utiliza un HOME aislado y reconstruye esta configuración generada antes de cada ejecución. El modelo incluido es openrouter/deepseek/deepseek-v4-flash; su chunkTimeout de OpenRouter es de 90000 milisegundos.
Code Quorum establece OPENCODE_DISABLE_PROJECT_CONFIG=1 y OPENCODE_PURE=1. El agente del consejo generado solo permite Read, glob y list, deniega herramientas de shell y mutación, bloquea .env y .env.*, y permite .env.example. Las ejecuciones fallidas o vacías escriben capturas de stdout/stderr sin procesar en ~/.cache/code-quorum/opencode-debug a menos que se establezca CODE_QUORUM_OPENCODE_DEBUG=0. El directorio es 0700, los archivos de captura son 0600, el texto del prompt se omite de los metadatos de comandos y solo se conservan las 20 capturas más recientes. Los flujos sin procesar aún pueden contener material revisado. Consulta ARCHITECTURE.md y SECURITY.md para conocer el diseño completo de los límites.
Deshabilitar un asiento
Si una sonda en vivo falla porque un asiento está ausente o desconectado, quorum setup-models puede marcarlo como disabled en models.toml. Los asientos deshabilitados se omiten en la lista predeterminada y doctor los informa, pero una solicitud explícita de --agent <seat> aún los ejecuta.
Instalar como plugin
Claude Code:
/plugin marketplace add sdewell/code-quorum
/plugin install code-quorum@code-quorumPara la CLI de Claude Code, carga OPENROUTER_API_KEY y las claves de investigación opcionales antes de iniciar el host. Por ejemplo:
source ~/.zshrc.local
claudePara la aplicación de escritorio de Claude, haz que las claves estén disponibles en la sesión de inicio de sesión actual de macOS antes de abrirla:
source ~/.zshrc.local
launchctl setenv OPENROUTER_API_KEY "$OPENROUTER_API_KEY"El valor de launchctl lo hereda cada aplicación lanzada posteriormente hasta que se elimina, se cierra la sesión o se reinicia la máquina. Inicia Claude Code y luego elimina la copia de la sesión de inicio de sesión; la aplicación ya en ejecución conserva su copia para los subprocesos del plugin:
launchctl unsetenv OPENROUTER_API_KEYDespués de instalar o actualizar el plugin, o después de cambiar una clave, cierra Claude Code por completo e inicia una nueva sesión de Claude Code. Una recarga del plugin puede recoger cambios de código, pero no puede cambiar el entorno heredado por el host en ejecución.
El plugin de Claude inicia su servidor MCP con uv run --directory ${CLAUDE_PLUGIN_ROOT} quorum-mcp, por lo que uv y Python 3.13+ deben estar en PATH.
Codex:
Registra el marketplace público e instala el plugin:
codex plugin marketplace add sdewell/code-quorum --ref main
codex plugin add code-quorum@code-quorum
codex plugin listPara la aplicación de escritorio de ChatGPT, cierra y vuelve a abrir la aplicación por completo después de registrar el marketplace. Abre Plugins, elige Personal, selecciona Code Quorum y haz clic en Install.
Después de que cualquiera de las superficies de Codex instale el plugin, prepara el checkout estable desde una terminal real:
uv sync
uv run quorum install-seat-helper-launchagent
uv run quorum seat-helper-statusEl lanzador de Codex inicia directamente el .venv preparado de ese checkout. Por lo tanto, el inicio de MCP no depende de una caché de uv escribible, descargas de red ni un entorno dentro del directorio de plugin reemplazable. Para actualizaciones posteriores, un comando actualiza el checkout, el plugin, el entorno, las aprobaciones y el asistente:
uv run quorum update-codexReinicia Codex por completo e inicia un nuevo hilo después. Si un checkout anterior aún no tiene update-codex, usa la secuencia heredada de una sola vez en SECURITY.md.
En Codex CLI, abre /hooks para revisar y confiar en cada hook de comandos de code-quorum. Codex omite los hooks del plugin hasta que se confíe en cada hash de definición actual. Una definición modificada requiere una nueva revisión y confianza para esa definición modificada.
El lanzador generado recupera los directorios binarios estándar de usuario y Homebrew (~/.local/bin, ~/.opencode/bin, /opt/homebrew/bin y /usr/local/bin) para una aplicación de escritorio con un PATH mínimo.
Para Codex CLI, carga el entorno de claves antes de lanzar Codex. Para la aplicación de escritorio de ChatGPT, establece las claves en la sesión de inicio de sesión actual de macOS:
source ~/.zshrc.local
launchctl setenv OPENROUTER_API_KEY "$OPENROUTER_API_KEY"El valor es visible para cada aplicación lanzada posteriormente hasta que se elimina. Inicia Codex y luego elimina la copia de la sesión de inicio de sesión; la aplicación en ejecución conserva el valor que ya heredó:
launchctl unsetenv OPENROUTER_API_KEYDespués de una actualización del plugin o un cambio de clave, cierra y vuelve a abrir Codex por completo e inicia un hilo de Codex completamente nuevo. No reanudes un hilo creado antes del reinicio; su registro de herramientas puede seguir refiriéndose al proceso del plugin anterior.
Para actualizaciones que preservan las aprobaciones, nunca uses codex plugin remove como ruta normal. Sigue la secuencia verificada en SECURITY.md.
Diseño
ARCHITECTURE.md describe el eje compartido CLI/MCP, los adaptadores de asiento, el modelo de rondas, los mecanismos contra sesgos, el empaquetado y los límites de fallo. La versión corta: la ronda 1 no contiene salida de pares, las rondas posteriores anonimizan a los pares por postura, y el host no recibe la matriz del consejo hasta q_await.
Atribución
Estos proyectos inspiraron la forma del flujo de trabajo; no se copió código, prompts ni documentación:
SnakeO/claude-co-commands - trabajo de host independiente antes de la salida de pares.
agentic-box/owlex - arquitectura de consejo multiagente y roles cognitivos.
karpathy/llm-council - revisión por pares anonimizada por contenido en lugar de identidad de modelo.
Licencia
MIT.
Available Tools
6 toolsq_awaitA
Block until the background council run identified by job_id
completes, then return its rounds markdown. One-shot — a job_id
can only be awaited once.
This is the blocking completion notification for every council start. The orchestrating host must not end its turn with a live job outstanding; it calls q_await after its independent work and remains blocked until this tool returns a result or error.
Errors:
job_id not found (expired, already retrieved, or invalid) → ValueError with the reason.
job cancelled by TTL or server shutdown → ValueError.
underlying council error → propagated.
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations to rely on, the description carries the full burden and does so thoroughly. It discloses that the tool blocks until completion or error, that it is one-shot (a job_id can only be awaited once), and enumerates all error scenarios (job not found, TTL cancellation, server shutdown, underlying council errors). It also conveys the operational expectation that the host must not end its turn with an outstanding job. This goes far beyond a minimal disclosure.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is highly structured: the first sentence delivers the core purpose, the second paragraph provides usage context, and a bulleted list covers errors. Every sentence earns its place; there is no fluff. The information is front-loaded with the most critical fact (blocking behavior) stated immediately.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description fully covers what an agent needs to know to call this tool correctly: it explains the blocking nature, the one-shot constraint, the exact error outcomes, and the return value (rounds markdown). An output schema exists, so detailed return formatting is not required. There is no missing information that would prevent correct invocation or interpretation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The single parameter `job_id` has zero schema description, so the description must compensate. It does by explaining that the job_id identifies the background run, and the error section clarifies what happens if the id is invalid (expired, already retrieved, or invalid). It stops short of specifying a format (e.g., UUID), but since a valid id comes from a sibling start tool, this is sufficient for the agent to understand its role.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a specific verb ('Block'), a clear resource ('background council run identified by job_id'), and an outcome ('return its rounds markdown'). It distinguishes itself from the sibling start tools (q_plan_start, q_brainstorm_start, etc.) as the blocking completion counterpart, so an agent can immediately tell what this tool does and how it differs from its siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly states that this is 'the blocking completion notification for every council start' and gives a clear directive: 'The orchestrating host must not end its turn with a live job outstanding; it calls q_await after its independent work.' It also warns that it is one-shot, leaving no ambiguity about when and how to use it. No alternative tools are mentioned, but the context of siblings being all start tools makes the usage obvious.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
q_brainstorm_startA
Start a q-brainstorm run in the background. Returns {"job_id":
str} immediately. Each agent contributes 3-5 distinct ideas with
rationale, trade-offs, and the cheapest test that would give signal;
no synthesis. Retrieve results by calling q_await with the
returned job_id.
Between the start and the await, the caller is expected to list its own ideas — this is the structural anti-bias gate.
research, when supplied, seeds round 1 with a q_research digest as
EVIDENCE: agents are told to ground their ideas in it, recombine it, or
extend past it. Pass the raw digest markdown (verbatim from q_research) --
never your own summary of it, and never your own ideas; those stay behind
the anti-bias gate. Distinct from prior_ideas, whose do-not-repeat
framing marks content to diverge AWAY from.
prior_ideas, when supplied, seeds a divergence round: the agents are told
the listed ideas are already on the table and must not be repeated -- used
by the --extended flow to push past round 1. Composes with research
(evidence stays evidence; ideas stay do-not-repeat).
grounding, with prior_ideas, runs a validation-guide pass over the
listed ideas instead of diverging past them -- used by q-skystorm
Stage 2.
Optionally assign a cognitive stance per agent via roles, a list
of 'stance:agent' strings (stances: skeptic, architect, security,
maintainer, analyst, neutral, visionary, pioneer). Unassigned agents
use their default stance.
gemini_model, when supplied, runs the gemini seat on that agy model for
this invocation only (an id exactly as printed by agy models, e.g.
'claude-opus-4-6-thinking').
Expected wall-clock to completion: 30s-4min depending on the agents and topic complexity.
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | ||
| host | No | ||
| roles | No | ||
| topic | Yes | ||
| agents | No | ||
| skip_gh | No | ||
| verbose | No | ||
| research | No | ||
| grounding | No | ||
| no_context | No | ||
| prior_ideas | No | ||
| gemini_model | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden, and it delivers comprehensively. It discloses the async nature (runs in background, returns job_id immediately), the output format, the expected timing (30s-4min), and the behavioral constraints (agents contribute 3-5 ideas, no synthesis, anti-bias gate). It also explains the semantic difference between research and prior_ideas. No behavioral aspect is left opaque.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is long but well-organized into focused paragraphs. It front-loads the core behavior and return type, then explains each optional parameter and composition. Each paragraph earns its place, but the length is near the upper bound of acceptable. It is structured rather than rambling, so it scores a 4.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity (12 params, no schema coverage, no annotations, and an output schema), the description covers the essential workflow and the most impactful parameters. It explains the anti-bias gate, the difference between research and prior_ideas, and the grounding pass. Missing: descriptions of verbose, skip_gh, no_context, host, and a few error-handling details, but those are minor. It is nearly complete for a working understanding.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description must explain parameters. It does explain the significant ones: research, prior_ideas, grounding, roles, gemini_model. However, it omits explanations for agents, skip_gh, verbose, no_context, host, and even cwd/topic are only implicit. For a tool with 12 parameters, the description adds value but leaves several parameters undocumented, forcing the agent to infer from names alone.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb and resource ('Start a q-brainstorm run'), states the async behavior, and names the sibling tools it complements (q_await, q_research). It clearly distinguishes this from q_plan_start, q_validate_start, etc., and explains the composition with q_research and q_await. An agent can immediately understand what this tool does and how it fits.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit when-to-use guidance: 'Between the start and the await, the caller is expected to list its own ideas — this is the structural anti-bias gate.' It also names alternatives and conditions: 'Distinct from prior_ideas, whose do-not-repeat framing...' and mentions specific flows like '--extended' and 'q-skystorm Stage 2' that select the grounding mode. This is unambiguous.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
q_plan_startA
Start a q-plan run in the background. Returns {"job_id": str}
immediately. The current host's external seats run in parallel from a
structurally bias-free starting point. Retrieve results by
calling q_await with the returned job_id.
Between the start and the await, the caller is expected to form its own plan — this is the structural anti-bias gate.
Optionally assign a cognitive stance per agent via roles, a list
of 'stance:agent' strings (stances: skeptic, architect, security,
maintainer, analyst, neutral, visionary, pioneer). Unassigned agents
use their default stance.
gemini_model, when supplied, runs the gemini seat on that agy model for
this invocation only -- an id exactly as printed by agy models, e.g.
'claude-opus-4-6-thinking' to get a Claude answer from the same AI Pro
plan when Gemini quota is tight or a different perspective is wanted.
Expected wall-clock to completion: 30s-4min depending on the agents and codebase size.
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | ||
| host | No | ||
| task | Yes | ||
| roles | No | ||
| agents | No | ||
| skip_gh | No | ||
| verbose | No | ||
| no_context | No | ||
| gemini_model | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries full burden. It discloses background execution, immediate return, parallel seats, bias-free starting point, the anti-bias gate, optional role assignment, gemini_model substitution, and expected wall-clock time. It does not explicitly state side effects or permissions, but the behavior is largely transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a coherent paragraph with clear sections: execution model, the anti-bias gate, roles, gemini_model, and timing. It is somewhat verbose (e.g., 'structurally bias-free') but every sentence adds useful information and is appropriately front-loaded with the core behavior.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with 9 parameters, no annotations, and an output schema, the description covers the high-level workflow and two parameters but omits critical invocation details like the meaning of 'cwd', 'task', 'host', 'agents', 'skip_gh', and 'no_context'. An agent would struggle to invoke it correctly without further documentation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description explains 'roles' (format and defaults) and 'gemini_model' (format and purpose), but ignores the other 7 parameters including required ones like 'task' and 'cwd'. With 0% schema description coverage, the description must compensate, but it covers only about 22% of parameters, leaving most ambiguous.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool starts a q-plan run in the background, returns a job_id immediately, and explains the anti-bias gate. It is distinct from siblings like q_brainstorm_start or q_validate_start by its explicit focus on structural anti-bias and the background execution model.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It gives concrete workflow guidance: start the run, then call q_await with the job_id, and it emphasizes the anti-bias gate as a reason to use this tool. However, it does not explicitly say when not to use it or contrast with alternative start tools like q_brainstorm_start.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
q_researchA
Fetch prior art for a topic from arXiv + OpenAlex + Europe PMC (papers), Context7 (library docs), GitHub (repos), and HuggingFace (models), and return a markdown digest.
Europe PMC covers the life-sciences preprint tier arXiv does not carry -- bioRxiv, medRxiv, Research Square -- so it is the source that earns its slot on biology/medicine topics and returns 0 on pure-software ones. Its hits are labelled by preprint server ("bioRxiv") and are NOT peer-reviewed; weigh them accordingly.
Not subject to the council's anti-bias gate -- this is external prior art,
not peer output. Call it during the own-work window of a q_brainstorm
or q-skystorm run to ground the synthesis. sources defaults to all
six; pass a subset like ["arxiv", "openalex"] to restrict it.
Query shaping matters: pass a query that is SHORT and distinctive --
short is not the same as generic. Anchor it in 2+ domain-specific terms (the
field PLUS the specific method/concept), never a bare common word ('data',
'model', 'network') or a token that doubles as an author surname -- those
keyword-match unrelated work (author names, generic surveys, stray docs) and
return non-zero but OFF-TOPIC noise -- sanity-check that returned titles
belong to your domain, and if they are off-topic the query was too generic:
re-anchor with more domain context and call q_research again rather than
leaning on them. (This same-domain check assumes you want grounding in
your own field -- if you are deliberately hunting cross-domain structural
analogies instead, judge a hit by structural kinship to the problem, not
literal subject-matter overlap; an off-domain hit is then the find, not
noise.) Not a full paragraph either. Per source: arXiv parses
topic as a boolean field -- a long/diffuse query loose-matches to
famous-but-irrelevant papers, and boolean punctuation (parens, AND/OR,
quotes) triggers a 400; OpenAlex tolerates prose but length dilutes
relevance to generic surveys; Context7 wants a library/topic name and will
keyword-match off-topic repos; GitHub/HuggingFace are popularity-ranked
artifact searches that whiff on non-software/non-ML topics. The digest's
per-source count footer shows which sources whiffed -- rework and retry
those, unless the 0 is domain-legitimate (GitHub/HuggingFace on a
non-software topic, Europe PMC on a non-biology one, Context7 on a topic
with no matching library), which is a real answer, not a gap to close.
Treat every other digest result as provisional until it earns trust: a 0 that is NOT one of the domain-legitimate cases above is not automatically "no prior art" either (it may just be a bad query), and non-zero hits that read scattered or off-topic are not evidence -- both are a signal to reframe (sharper domain anchor, fewer/different terms) and retry, not something to build a conclusion on.
Failed sources are reported inline under 'Sources unavailable' rather than failing the call -- each with a retry hint, and the right move differs by error. An errored source is almost never a dead backend: an arXiv error (400) means YOUR query is too long or has boolean punctuation, so shorten it to a few keywords, strip operators, and call q_research again; a 401/403 or an OpenAlex 503 is a CONFIG case, not a flake -- the key was rejected, or OpenAlex is load-shedding anonymous search, so a bare retry just loops (set the source's key -- OPENALEX_API_KEY is free -- or lean on the other sources and say so); only a plain timeout/flake is transient and worth retrying as-is. Do NOT report a source unavailable, and do NOT fall back on your own knowledge, until a reworked retry has ALSO failed -- treating the first error as terminal is the failure to avoid. Bounded by per-request timeouts (~10-15s each); the GitHub and HuggingFace backends fan out one request per distinctive query term (up to 4), run sequentially, so those two sources' wall-clock can reach a few times that.
The digest OPENS with a deterministic Research status: line -- OK,
RETRY-RECOMMENDED (USUALLY with a server-suggested shorter query to resubmit
verbatim, shown as · try: "..."; when it is ABSENT the detail text says what
to do, and the two absent cases differ -- a backend/infrastructure failure
says RETRY THE SAME query, while an un-shortenable query says RE-ANCHOR with
different domain terms), CONFIG (a key/anonymous-access problem no retry
fixes), or (in exploratory mode) LOW-OVERLAP. Act on it before anything else:
on RETRY-RECOMMENDED, resubmit the suggested query if one is given, else
follow the detail (retry the same query on an infrastructure failure, or
re-anchor with different domain-specific terms if it cannot be shortened) --
before concluding "no prior art". Mechanically-fixable failures (arXiv 400, a
transient flake) are already retried inside the tool -- a repaired source
shows a ↻ note, so a first-attempt error you never see was handled, not
hidden.
mode is 'grounded' (default; brainstorm -- home-domain grounding, where a
low-overlap result is a defect the verdict flags RETRY-RECOMMENDED) or
'exploratory' (skystorm -- a deliberate cross-domain method pivot, where low
overlap is expected and reported as LOW-OVERLAP without forcing a retry).
Exploratory mode also adds a ### Field map section (the OpenAlex
subfield distribution for the query) showing which fields the method
actually spans -- the skystorm topology readout. Query discipline is
identical in both modes; only the low-overlap interpretation differs.
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | grounded | |
| limit | No | ||
| topic | Yes | ||
| sources | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden, and it excels. It discloses internal retries ('Mechanically-fixable failures ... are already retried inside the tool'), error handling ('Failed sources are reported inline under 'Sources unavailable' rather than failing the call'), response format (markdown digest with a 'Research status:' line), per-source behaviors, and the distinction between domain-legitimate zero results and gaps. This level of transparency exceeds typical tool descriptions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is very long but well-organized, front-loading the core purpose and then progressing into usage, error handling, and modes. Each paragraph serves a distinct function, yet some sections (e.g., the extended discussion of same-domain vs cross-domain checks) are arguably more detailed than necessary for an agent to invoke the tool. It is concise relative to its complexity but could be tightened without losing value.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers every aspect an agent needs: what it returns (markdown digest, status line), how to interpret results (RETRY-RECOMMENDED, CONFIG, LOW-OVERLAP), error handling with specific retry guidance, per-source whiffing logic, mode differences, and query-shaping best practices. Even with an output schema (not shown), this description is entirely self-sufficient given the tool's complexity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Despite 0% schema coverage, the description explains the `topic` (query shaping), `sources` (defaults, subset pass), and `mode` (grounded vs exploratory) parameters in depth. However, the `limit` parameter is never mentioned – its purpose and effect on output are not explained. Since the schema provides no help, this is a noticeable gap, though the description compensates well for the other three parameters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a precise verb and resource: 'Fetch prior art for a topic from arXiv + OpenAlex + Europe PMC (papers), Context7 (library docs), GitHub (repos), and HuggingFace (models), and return a markdown digest.' This clearly distinguishes the tool from its siblings (planning, brainstorming, validation, review, await) by focusing on external prior-art retrieval. No ambiguity about what the tool does.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives explicit when-to-use instructions: 'Call it during the own-work window of a `q_brainstorm` or `q-skystorm` run to ground the synthesis.' It also provides query-shaping rules, mode interpretation ('grounded' vs 'exploratory'), error-handling strategies, and when not to trust results. Since there are no sibling research tools, it doesn't contrast with alternatives, but it provides rich contextual guidance on exactly when and how to use the tool.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
q_review_startA
Start a q-review run in the background. Returns {"job_id": str}
immediately. Each agent independently reviews real code changes, then
converges across rounds. Round 1 is structurally bias-free; later rounds
embed each agent's own prior plus peers' priors so sustained agreement
becomes visible. Retrieve results by calling q_await with the returned
job_id.
Between the start and the await, the caller is expected to form its own code review of the diff — this is the structural anti-bias gate.
target selects what to review (default: branch vs main, committed +
uncommitted). 'working' = uncommitted tracked changes only; 'pr:N' or a
github PR URL = an open PR (title/body orient the review); 'A..B'/'A...B'
= an explicit range; 'all' = the whole codebase (agents read cwd — pair
with scope_path). An empty diff (other than 'all') short-circuits: the
job returns a 'nothing to review' message without running the council.
scope_path, when supplied, points at a scope doc declaring what is
in/out-of-scope and which risks are accepted; it is embedded verbatim so
the council does not converge on out-of-bounds findings.
extended runs 4 rounds with a stance rotation at round 3 (agents swap
stances and re-examine all priors); the default is 2 rounds with no
rotation. mode is 'revise' (agents soften/strengthen in light of peers)
or 'critique' (agents attack peer points).
verbose defaults to false: the council writes terse output (no padding,
path:line over pasted code, and later rounds collapse each still-held
finding to one HELD line while preserving the agreement count). Set true
only when you want the full unabridged deliberation — a much larger matrix.
Optionally assign stances per agent via roles, a list of 'stance:agent'
strings (stances: skeptic, architect, security, maintainer, analyst,
neutral, visionary, pioneer).
gemini_model, when supplied, runs the gemini seat on that agy model for
this invocation only (an id exactly as printed by agy models, e.g.
'claude-opus-4-6-thinking').
Expected wall-clock to completion: 1-8min default; 4-15min when extended=true. Pick extended deliberately.
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | ||
| host | No | ||
| mode | No | revise | |
| roles | No | ||
| agents | No | ||
| target | No | ||
| skip_gh | No | ||
| verbose | No | ||
| extended | No | ||
| no_context | No | ||
| scope_path | No | ||
| gemini_model | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden and it delivers richly. It discloses that the call returns immediately instead of blocking (async job), gives expected wall-clock timing (1-8min default, 4-15min extended), spells out the empty-diff short-circuit that returns a 'nothing to review' message without running the council, details verbose output behavior (HELD lines, agreement counts), and explains the stance rotation at round 3 for extended mode. This far exceeds baseline behavioral disclosure.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is long, but every paragraph earns its place for a 12-parameter async background tool. It is front-loaded with purpose and the return contract, then flows logically through the anti-bias gate, target values, scope, execution modes, output verbosity, and timing. The final timing note is a genuine value-add. It could be tightened slightly, but the length is justified by complexity rather than padding.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool of this complexity — 12 params, async behavior, background execution, no annotations, 0% schema coverage — the description is remarkably complete, covering the workflow, the caller's required participation (anti-bias gate), short-circuit behavior, per-parameter semantics, and timing expectations. The output schema exists so return values need no further explanation, and job_id is already surfaced. The only completeness gap is the five undocumented parameters (agents, skip_gh, no_context, host, cwd) that the description leaves to the schema, which is empty.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate — and it does for the majority. target gets a detailed breakdown of every value ('working', 'pr:N'/URL, 'A..B'/'A...B', 'all', default branch-vs-main), and scope_path, extended, mode, verbose, roles, and gemini_model are each explained. However, five of the twelve parameters (cwd, host, agents, skip_gh, no_context) are not touched in the description and, with zero schema descriptions, remain entirely undocumented — a real gap for a tool where agents and skip_gh likely matter.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The opening line states a specific verb and resource — "Start a q-review run in the background. Returns {"job_id": str} immediately" — and explains the mechanism (independent agent review then convergence across rounds). This clearly distinguishes a review tool from its siblings q_plan_start, q_brainstorm_start, and q_validate_start, which by naming convention cover different activities. No ambiguity about what this tool does.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives strong usage context: it is for reviewing real code changes, and it explicitly routes retrieval to a sibling — "Retrieve results by calling `q_await` with the returned job_id" — which orients the agent within the family of q_* tools. It also defines the structural anti-bias gate the caller must pass between start and await. However, it never explicitly states when NOT to use this tool versus q_validate_start or the other review siblings; exclusions are implied rather than stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
q_validate_startA
Start a q-validate run in the background. Returns {"job_id":
str} immediately. Each agent independently reviews the plan file,
then deliberates across rounds. Round 1 is structurally bias-free;
later rounds embed each agent's own prior plus peers' priors.
Retrieve results by calling q_await with the returned job_id.
Between the start and the await, the caller is expected to form its own review — this is the structural anti-bias gate.
extended runs 4 rounds with a stance rotation at round 3 (agents
swap stances and re-examine all priors); the default is 2 rounds
with no rotation. mode is 'revise' (agents soften/strengthen in
light of peers) or 'critique' (agents attack peer points).
verbose defaults to false: the council writes terse output (no padding,
path:line over pasted code, later rounds omit restating unchanged points).
Set true only for the full unabridged deliberation — a much larger matrix.
Optionally assign stances per agent via roles, a list of
'stance:agent' strings (stances: skeptic, architect, security,
maintainer, analyst, neutral, visionary, pioneer).
gemini_model, when supplied, runs the gemini seat on that agy model for
this invocation only (an id exactly as printed by agy models, e.g.
'claude-opus-4-6-thinking').
Expected wall-clock to completion: 1-8min default; 4-15min when extended=true. Pick extended deliberately.
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | ||
| host | No | ||
| mode | No | revise | |
| roles | No | ||
| agents | No | ||
| skip_gh | No | ||
| verbose | No | ||
| extended | No | ||
| plan_path | Yes | ||
| no_context | No | ||
| gemini_model | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It comprehensively explains the background execution, immediate return of job_id, the bias-free first round and later rounds embedding priors, the extended mode's 4 rounds and stance rotation, the verbose output toggle, and the gemini_model override for this invocation. It also discloses expected wall-clock times and the anti-bias gate expectation, making the tool's behavior highly transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is detailed but well-structured, front-loading the core behavior and return value before diving into options. It uses clear paragraphs and imperative sentences that earn their place. While somewhat long, the length is justified by the tool's complexity, and it could be slightly more concise without losing essential information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (11 parameters, no schema descriptions), the description covers the main workflow and several key parameters, and provides expected wall-clock times. However, it omits explanations for critical parameters like plan_path and cwd, and does not clarify the exact output format beyond job_id (though q_await likely handles results). The description is strong on purpose and behavior but incomplete in parameter coverage, so it is not fully complete for an agent to confidently invoke the tool correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate for parameter documentation. It explains extended, mode, verbose, roles, and gemini_model in detail, but leaves essential parameters like plan_path, cwd, host, agents, skip_gh, and no_context unexplained. The required plan_path is only referred to generically as 'plan file', which is insufficient for an agent to know exactly what to provide. The description only partially covers the 11 parameters, making parameter semantics incomplete.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it starts a q-validate run in the background and returns a job_id immediately. It describes the process of agents reviewing the plan file and deliberating, which distinguishes it from sibling tools like q_plan_start, q_brainstorm_start, and q_review_start. The tool's purpose is unambiguous and specific.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit guidance on retrieving results via q_await with the returned job_id and explains the structural anti-bias gate that the caller should form its own review between start and await. It also advises when to use extended mode ('Pick extended deliberately') and explains the default vs extended rounds. However, it does not explicitly contrast this tool with sibling start tools, relying on tool names for differentiation.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
6 tool updates
v0.0.63- First observed
q_await - First observed
q_brainstorm_start - First observed
q_plan_start - First observed
q_research - First observed
q_review_start - First observed
q_validate_start
TDQS
Scored across 6 tools
Each tool has a clearly distinct function: planning, brainstorming, validation, code review, research, and result retrieval. There is no overlap in purpose; descriptions reinforce the boundaries.
All tools follow a uniform 'q_' prefix with an action verb (plan_start, brainstorm_start, validate_start, review_start, research, await). The two non-start tools still share the prefix and verb style, making the pattern predictable.
Six tools is well-scoped for a code-quality council suite: four distinct run types plus research and a blocking retrieval. Each tool earns its place without redundancy or bloat.
The core lifecycle (start runs, retrieve results) is fully covered, and research supports the workflow. Minor gaps exist—no job-listing or cancellation tool—but agents can work around them by awaiting each job, so the surface remains practical.
Maintenance
Related MCP Connectors
- ParleyOAuthdev.weldra
Coordination hub for AI coding agents: message teammates, ask humans, audit every event.
Multi-LLM council: 25+ frontier models in parallel, consensus scoring, verdict-first code review.
Shared control plane for AI coding agents — tasks, memory, decisions, file locks. 12 tools.
AI work orchestration for plans, tasks, teams, and coding-agent dispatch.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to read each other's conversation history read-only and sanitized, so you can continue work across different tools without re-explaining context.MIT
- FlicenseNot gradedqualityDmaintenanceAllows users to manage multiple remote AI coding agents from a single Claude Code session, with a controlled execution model where operations require moderator approval.-
- AlicenseNot gradedqualityAmaintenanceEnables multi-model LLM council reviews and parallel sidecar conversations within Claude, allowing Claude to orchestrate structured reviews from various AI models and fold their responses back into the session.449 npm2MIT
- FlicenseAqualityAmaintenanceEnables coding agents to perform workspace-confined file operations, read-only Git inspection, and structured shell commands, while requiring out-of-band human approval for mutations and external executions and maintaining an audit trail.143-