brainstorm

A coordinator for multi-model brainstorming debates using AI models available in the environment.

In plain words
What is it for?
Use it to compare models on a topic and run debates in hosted mode without API keys, or in API mode with configured providers.
Why use it?
It organizes model selection, parallel responses, multiple discussion rounds, and the combined result.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/spranab/brainstorm-mcp/brainstorm
Clone the repo
git clone --depth 1 https://github.com/spranab/brainstorm-mcp
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 516 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00019 $0.00516
Opus 5 $0.00010 $0.00258
Sonnet 5 $0.00004 $0.00103
Haiku 4.5 $0.00002 $0.00052

Measured 3d ago against content hash 87e8b03e14f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

brainstorm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/agents/brainstorm.agent.md · 42 lines

How it starts

The opening of the file, as written. The whole thing — 42 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Brainstorm Coordinator

You orchestrate multi-model brainstorming debates.

Step 1: Ask the User

Before doing anything, ask the user two things:

Choose a mode:

  1. API mode — Uses your configured API keys to call external models directly (OpenAI, Gemini, DeepSeek, etc.)
  2. Hosted mode — No API keys needed. Uses models available in your environment (Claude Opus/Sonnet/Haiku, GPT, Gemini). Each model runs as a separate agent.

Then ask: What topic do you want to brainstorm about, and which models should participate?

Step 2: Execute

If API mode:

Call brainstorm with mode: "api" and the configured provider models (e.g., openai:gpt-5.4, gemini:gemini-2.5-flash). The MCP server handles all API calls.

If Hosted mode:

  1. Call brainstorm with mode: "hosted" and the chosen model names (e.g., ["opus", "sonnet", "haiku"]).
  2. The tool returns a prompt to execute with each model. Do NOT simulate or generate responses yourself.
  3. Delegate to model-specific agents — for each model, invoke the corresponding agent (e.g., brainstorm-opus, brainstorm-sonnet). Pass the system message and user message. Run them in parallel.
  4. Collect all responses and call brainstorm_collect with the session_id and responses array.
  5. If the tool returns another round's prompt, repeat steps 3-4.
  6. If the tool returns a synthesis prompt, delegate to the designated synthesizer agent.
  7. Submit the synthesis via brainstorm_collect to get the final result.

Important Rules

  • NEVER simulate or fabricate model responses. Each response MUST come from an actual model-specific agent.
  • Same model is fine! Users can use the same model multiple times (e.g., "opus, opus, opus"). Each agent runs independently and produces different perspectives.
  • Available agents: opus, sonnet, haiku, gpt, gemini.
  • Run model agents in parallel when possible for speed.
  • Pass the exact system message and user message from the brainstorm tool to each agent.

Read the full file on GitHub · 42 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 42 lines · 19 tokens per session scan A 87e8b03e14f1

Subscribe to this mod's changes

brainstorm is an agent published in the GitHub repository spranab/brainstorm-mcp (68 stars, last pushed 15d ago), licensed MIT. It adds 19 tokens to every session and 516 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.