3-surgeons: Instructions file for Gemini CLI

GEMINI.md

3-surgeons GEMINI.md is an instructions file for Gemini CLI from supportersimulator/3-surgeons. It costs 1,037 tokens per session, scanned B, original, MIT.

Setup instructions for 3-Surgeons for Gemini, an extension that asks three AI systems to review code before it ships. Gemini is Google's command-line AI development tool.

In plain words
What is it for?
Use them to configure the extension, create a preset, and set the required API keys for OpenAI or DeepSeek when using those services.
Why use it?
They explain how to install the extension, Python runtime, and server, then choose whether the reviewers use online services, local Ollama models, or both.

Instructions file for Gemini CLI

Written for Gemini CLI: the file is GEMINI.md. Also seen: positional $N argument.

This is supportersimulator/3-surgeons's own configuration. It tells Gemini CLI how to work on 3-surgeons itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything 3-surgeons configures →

Reuse

Borrowing it

Nothing to install: this file belongs to supportersimulator/3-surgeons. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/supportersimulator/3-surgeons/main/GEMINI.md
Clone the repo
git clone --depth 1 https://github.com/supportersimulator/3-surgeons

Made for: Gemini CLI.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 3-surgeons GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/supportersimulator/3-surgeons/gemini-md/github.svg)](https://agentmods.dev/instructions/supportersimulator/3-surgeons/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/supportersimulator/3-surgeons/gemini-md"><img src="https://agentmods.dev/badge/instructions/supportersimulator/3-surgeons/gemini-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for 3-surgeons GEMINI.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/supportersimulator/3-surgeons/gemini-md"><img src="https://agentmods.dev/badge/instructions/supportersimulator/3-surgeons/gemini-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,037 This file is loaded in full into every session.
When invoked 1,037 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01037 $0.01037
Opus 5.5 $0.00415 $0.00415
Sonnet 5.5 $0.00207 $0.00207
Haiku 4.5 $0.00104 $0.00104

Measured 1mo ago against content hash 914cd898b92f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

3-surgeons GEMINI.md scanned grade B with 1 finding 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 1mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

If the extension install does not wire MCP automatically, add this to your Gemini settings (`~/.gemini/settings.json`):
GEMINI.md · 122 lines

How it starts

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

3-Surgeons for Gemini

Three AI surgeons. One operating table. Your code doesn't ship until all three agree.

Setup

1. Install the extension

gemini extensions install https://github.com/supportersimulator/3-surgeons

2. Install Python runtime

Python 3.10+ is required. The MCP server auto-bootstraps on first launch, but you can install manually:

cd ~/.gemini/extensions/3-surgeons   # or wherever Gemini places extensions
python3 -m venv .venv
.venv/bin/pip install -e '.[mcp]'

3. Configure surgeon backends

Copy a preset to your home config:

# Hybrid (default) — OpenAI cardiologist + local Ollama neurologist
cp config/presets/hybrid.yaml ~/.3surgeons/config.yaml

# API-only — OpenAI + DeepSeek, no local model needed
cp config/presets/api-only.yaml ~/.3surgeons/config.yaml

# Local-only — all Ollama, $0 cost, fully private
cp config/presets/local-only.yaml ~/.3surgeons/config.yaml

4. Set API keys (if using API-backed surgeons)

# For hybrid or API-only mode
export OPENAI_API_KEY="sk-..."

# For API-only mode (DeepSeek neurologist)
export DEEPSEEK_API_KEY="sk-..."

Add these to your shell profile (~/.zshrc, ~/.bashrc) so they persist across sessions.

5. Verify

In Gemini, run the probe tool to confirm all three surgeons are reachable:

Use the probe tool to check surgeon connectivity

Expected: all three surgeons report OK with model names and response times.

Alternative: Manual MCP configuration

If the extension install does not wire MCP automatically, add this to your Gemini settings (~/.gemini/settings.json):

{
  "mcpServers": {
    "3-surgeons": {
      "command": "/ABSOLUTE/PATH/TO/3-surgeons/bin/3surgeons-mcp",
      "args": []
    }
  }
}

Replace /ABSOLUTE/PATH/TO/3-surgeons with the actual path where you cloned the repo.

Available tools

Once connected, these MCP tools are available in Gemini:

Tool What it does
probe Verify all three surgeons are reachable
cross_examine_start Begin a 3-phase cross-examination on a claim
cross_examine_deepen Phase 2: surgeons challenge each other's findings
cross_examine_synthesize Phase 3: final synthesis with confidence scores
consensus Quick confidence-weighted vote from multiple surgeons
sentinel_run Scan for complexity risks across configurable dimensions
ask_local_tool Query the local neurologist directly
ask_remote_tool Query the remote cardiologist directly
research_tool Self-directed multi-surgeon research on a topic
cardio_review_tool External-model cross-examination review
neurologist_pulse_tool Local model health check
neurologist_challenge_tool Corrigibility challenge from the neurologist
introspect_tool Surgeon capability introspection
gains_gate System health and safety invariant checks
ab_propose Propose an A/B test
ab_start Start a proposed A/B test
ab_measure Measure A/B test results
ab_conclude Conclude an A/B test with surgeon consensus

Read the full file on GitHub · 122 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. 1mo ago First seen · 122 lines · 1,037 tokens per session scan B 914cd898b92f

Subscribe to this mod's changes

3-surgeons GEMINI.md is an instructions file published in the GitHub repository supportersimulator/3-surgeons (2 stars, last pushed yesterday), licensed MIT. It adds 1,037 tokens to every session, about $0.0041 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories