Skip to main content
Glama
MasterMind Lite

MasterMind Lite

by kukumaka

MasterMind Lite

Ask Claude, Gemini, and Grok from a ChatGPT conversation through the provider CLIs you already use.

                    Claude
                   /
ChatGPT -> MasterMind Lite -> Gemini
                   \
                    Grok
                     |
                     v
             ChatGPT synthesis

ChatGPT remains the coordinator. MasterMind Lite sends one payload to independent advisers in parallel and returns their answers separately. It does not vote, rank models, run an internal debate, or act as an autonomous agent.

Why I built it

Different models often catch different flaws, edge cases, and approaches. Comparing them improved my planning and reviews, but repeatedly opening three sites, rebuilding context, copying prompts, and pasting every answer back into ChatGPT became tedious. MasterMind Lite makes that small workflow one local tool call while leaving the final judgment with ChatGPT and the user.

Related MCP server: polydev-ai

What it does

  • ChatGPT calls one local MCP consultation tool.

  • MasterMind Lite asks selected providers concurrently with the same payload.

  • Claude uses Claude Code, Gemini uses Google's Antigravity CLI (agy), and Grok uses Grok CLI.

  • Full provider results return independently, including partial success when one provider fails.

  • Stable thread keys continue the corresponding native provider conversations.

  • Model changes safely restart only the affected provider conversation.

  • No API keys, prompt bodies, response bodies, or telemetry are stored by MasterMind Lite.

Two modes

Exact mode

Say: “Send this exact prompt to MasterMind.”

mastermind_exact forwards the supplied text unchanged. Provider selection and model overrides are metadata: they are never appended or prepended to the prompt. MasterMind Lite verifies the outgoing UTF-8 payload with SHA-256 for every provider.

Feedback mode

Say: “Initiate MasterMind and get feedback on this.”

ChatGPT—not MasterMind Lite—constructs a concise, self-contained briefing from the relevant chat context. mastermind_feedback then sends that briefing unchanged to the independent advisers.

Friendly defaults

Ordinary consultations use these product presets automatically:

Adviser

Friendly preset

Current CLI resolution

Claude

Opus 5 / Medium

--model opus --effort medium (currently claude-opus-5)

Gemini

3.8 Flash / Extended

--model gemini-3.8-flash-high --effort high

Grok

Expert

--model grok-4.6 --reasoning-effort high

“Extended” and “Expert” are stable MasterMind Lite product names. The preset layer isolates users from provider-specific identifiers. mmlite doctor and mmlite config show display both the friendly preset and current resolved CLI settings.

When a user explicitly asks for another setting, ChatGPT passes a per-call override. Examples:

  • “Call MasterMind, but use Claude Opus 5 High.” uses Claude's Opus 5 / High preset only.

  • “Use Grok Simple this time.” uses Grok's Simple preset only.

  • A custom override can supply an explicit CLI model and/or effort.

The additional built-in mappings are Opus 5 / High → opus with high, and Grok Simple → grok-4.6 with low reasoning effort.

No model choice is required for normal calls. If an override changes a provider's resolved model or effort on a persistent thread, MasterMind Lite starts a fresh native session for that provider, returns thread_state: "restarted", and leaves the other provider sessions untouched. Returning to the default later may therefore restart that provider again.

Requirements

  • Windows with Python 3.11 or newer (v0.1 is built and live-tested on Windows).

  • Claude Code CLI, authenticated with a supported Claude account.

  • Google Antigravity CLI (agy), authenticated with a supported Google account.

  • Grok CLI, authenticated with a supported xAI account.

  • ChatGPT/Codex Desktop with local STDIO MCP support for the conversational workflow.

Provider access varies by product, subscription, region, and CLI release. MasterMind Lite does not guarantee that every consumer plan includes every model.

Install

git clone https://github.com/kukumaka/mastermind-lite.git
cd mastermind-lite
py -3.11 -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install .

Authenticate the provider CLIs using their supported flows:

claude auth login
agy models
grok login

agy models also verifies that the authenticated Antigravity model catalog is reachable. Then run:

mmlite doctor
mmlite config show

Configuration

The first command creates %USERPROFILE%\.aimastermind-lite\config.json. The simple schema-v3 defaults look like this:

{
  "schema_version": 3,
  "providers": {
    "claude": {
      "preset": "Opus 5 / Medium",
      "timeout_seconds": 150,
      "max_response_chars": 24000
    },
    "gemini": {
      "preset": "3.8 Flash / Extended",
      "timeout_seconds": 150,
      "max_response_chars": 24000
    },
    "grok": {
      "preset": "Expert",
      "timeout_seconds": 150,
      "max_response_chars": 24000
    }
  }
}

Advanced users can replace one preset with explicit settings:

{
  "preset": "Custom",
  "model": "provider-model-id",
  "effort": "high",
  "timeout_seconds": 150,
  "max_response_chars": 24000
}

Invalid fields, presets, or effort values fail before any provider call. Configuration is reloaded for every consultation. External CLI releases can rename models or flags; use doctor and the provider model-list commands after upgrading a CLI.

Local CLI

mmlite consult --thread project-review --prompt "What should I reconsider?"
mmlite consult --thread project-review --prompt-file C:\path\to\prompt.txt
mmlite consult --thread project-review --provider grok --prompt "Retry the question."
mmlite thread --thread project-review
mmlite reset --thread project-review

Repeat --provider to select more than one adviser. Provider selection supports targeted retries; MasterMind Lite never automatically repeats an entire consultation.

Connect to ChatGPT/Codex Desktop

Run the local STDIO server with:

mmlite-mcp

Or register the installed executable directly using a generic path such as:

<repo>\.venv\Scripts\mmlite-mcp.exe

In the desktop MCP server configuration, ensure the outer tool timeout exceeds the provider timeout. The recommended values are 150 seconds per provider and 180 seconds for the MCP tool:

[mcp_servers.mastermind_lite]
command = 'C:\path\to\mastermind-lite\.venv\Scripts\mmlite-mcp.exe'
tool_timeout_sec = 180

After adding the STDIO server, restart the desktop app and use /mcp to confirm these three tools:

  • mastermind_exact

  • mastermind_feedback

  • mastermind_reset_thread

Reliability and persistent threads

Each provider has an independent timeout. If Claude and Gemini finish while Grok times out, both completed answers return alongside Grok's structured error. Only the failed provider can be retried with providers: ["grok"]; successful siblings are not silently called again.

Each result includes thread_state (new, continued, or restarted), a locally reliable successful_turn_count, requested preset/model/effort, provider-reported settings when available, duration, prompt hash, and truncation metadata. Counts remain null when old state cannot support a reliable value.

Provider histories can drift because each CLI compacts and interprets context differently. Use a fresh thread or a self-contained feedback briefing when a clean comparison matters. Resetting a MasterMind thread forgets local mappings; it does not delete histories owned by provider CLIs.

Responses are limited to 24,000 characters per provider by default. A longer answer retains its beginning and end and returns truncated: true with original and returned character counts.

Privacy, security, and limitations

Prompts are sent to every selected provider. Authentication remains managed by the provider CLIs, and users remain responsible for those providers' data terms and subscription quotas.

  • Runtime state is local under %USERPROFILE%\.aimastermind-lite; prompt and response bodies are not persisted.

  • Known provider API-key environment variables are removed from child processes.

  • Claude receives an empty tool set and strict empty MCP configuration.

  • Antigravity exposes no complete no-tools switch; its isolation is weaker even though it runs headlessly with sandbox selection and disabled slash commands.

  • Grok's CLI-level tools and permissions are denied, but its installed documentation does not claim Windows OS sandbox enforcement.

  • External CLI changes can require adapter updates.

  • Multiple opinions can expose missed assumptions; they do not guarantee a better answer.

  • MasterMind Lite is intentionally not an autonomous agent framework or browser automation system.

Please report security issues using the process in SECURITY.md.

Development

python -m pip install -e ".[dev]" build
pytest -q
python -m build

The test suite installs an automatic guard that rejects attempts to launch claude, agy, or grok, so automated tests do not intentionally consume provider quota. The GitHub Actions workflow runs only this offline suite and package build.

See POST_V0_1.md for deliberately deferred ideas and CONTRIBUTING.md for the small contribution guide.

License

MIT. See LICENSE.

Available Tools

3 tools
mastermind_exactAsk all three advisers with an exact promptA

Send exactly the supplied prompt, unchanged, to Claude, Gemini, and Grok independently. Use this when the user says 'same prompt', 'exact prompt', 'exactly this', or equivalent. Do not rewrite, summarize, prepend, append, or provider-specialize prompt. On the first MasterMind call, create a short stable topic-based thread_key; reuse it on later calls in this chat unless the user asks for a fresh/reset thread. Do not ask the user to invent a key unless necessary. The result echoes thread_key and a SHA-256 hash. Defaults are used automatically. Only when the user explicitly requests a different setting, pass provider_overrides, for example {'claude': {'preset': 'Opus 5 / High'}} or {'grok': {'preset': 'Simple'}}. A custom override may instead contain model and/or effort. Overrides are metadata and must never be inserted into the prompt. Changing resolved model or effort restarts only that provider's native session.

Inputs: prompt (required), thread_key (required), providers, reset_thread, +1 more. Returns: object

mastermind_feedbackAsk all three advisers for contextual feedbackA

Send one self-contained briefing, unchanged, to Claude, Gemini, and Grok independently. Before calling, read relevant current conversation context and write a neutral briefing that includes the complete prompt/artifact/plan being reviewed, decisions already made, and the exact question. Include only context that helps. Do not anchor advisers with one another's responses unless the user explicitly asks. The service does not construct or edit the briefing. Create a short stable topic-based thread_key on the first call and reuse it later in this chat. Defaults are used automatically. Only when the user explicitly requests a different setting, pass provider_overrides, for example {'claude': {'preset': 'Opus 5 / High'}} or {'grok': {'preset': 'Simple'}}. A custom override may instead contain model and/or effort. Overrides are metadata and must never be inserted into the prompt. Changing resolved model or effort restarts only that provider's native session.

Inputs: briefing (required), thread_key (required), purpose, providers, +2 more. Returns: object

mastermind_reset_threadReset a MasterMind threadA
DestructiveIdempotent

Forget the local Claude, Gemini, and Grok session mappings for thread_key. Use when the user asks to start fresh; a later consultation creates three new native conversations.

Inputs: thread_key (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 3 tools

    Disambiguation4/5

    reset_thread is clearly distinct, but exact and feedback both fan out unchanged content to the same three providers, so their boundary depends on intended usage rather than different mechanics. The descriptions provide useful cues, so misselection is possible but not severe.

    Naming Consistency3/5

    All names share the mastermind_ prefix and snake_case, which is readable. However, only reset_thread follows a verb_noun pattern; exact and feedback are noun/adjective labels, making the overall convention mixed.

    Tool Count4/5

    Three tools form a minimal but focused surface for a Lite multi-model consultation server. Each tool has a role, though the set is slightly thin for full thread lifecycle management.

    Completeness4/5

    Core operations are covered: send exact prompts, send briefing-style feedback, and reset thread mappings. Minor gaps exist, such as no way to list or inspect existing thread_key mappings, but agents can work around this.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Query multiple AI models (GPT-4, Claude, Gemini, Grok) in parallel for diverse perspectives. Get different expert viewpoints when stuck or need enhanced reasoning.
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Two AIs. One answer. ChatGPT and Claude discuss with each other until they agree, through your own signed-in CLIs: no API keys. Both read your project (never change it) and search the web. Plugin for Claude Code, Codex, Claude Desktop and the ChatGPT app.
      8
      270 npm
      6
      MIT