Coder-Codex-Gemini: Instructions file for Claude Code

CLAUDE.md

Coder-Codex-Gemini CLAUDE.md is an instructions file for Claude Code from FredericMN/Coder-Codex-Gemini. It costs 1,438 tokens per session, scanned A, original, MIT.

A project guide for Coder-Codex-Gemini, an MCP server that coordinates several AI models to plan, write, review, and advise on code. MCP is a standard way for AI assistants to call external tools.

In plain words
What is it for?
Use it when working on the server, its command-line entry point, model-specific tools, configuration, workflow guides, or collaboration templates.
Why use it?
It explains which model handles each role and how work moves from planning through execution, review, and retries.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions Codex.

This is FredericMN/Coder-Codex-Gemini's own configuration. It tells Claude Code how to work on Coder-Codex-Gemini 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 Coder-Codex-Gemini configures →

Reuse

Borrowing it

Nothing to install: this file belongs to FredericMN/Coder-Codex-Gemini. 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/FredericMN/Coder-Codex-Gemini/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/FredericMN/Coder-Codex-Gemini

Made for: Claude Code.

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 Coder-Codex-Gemini CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fredericmn/coder-codex-gemini/claude-md/github.svg)](https://agentmods.dev/instructions/fredericmn/coder-codex-gemini/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/fredericmn/coder-codex-gemini/claude-md"><img src="https://agentmods.dev/badge/instructions/fredericmn/coder-codex-gemini/claude-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 Coder-Codex-Gemini CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fredericmn/coder-codex-gemini/claude-md"><img src="https://agentmods.dev/badge/instructions/fredericmn/coder-codex-gemini/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,438 This file is loaded in full into every session.
When invoked 1,438 The same file — it is already loaded in full.
Security scan A 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.01438 $0.01438
Opus 5.5 $0.00575 $0.00575
Sonnet 5.5 $0.00288 $0.00288
Haiku 4.5 $0.00144 $0.00144

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

Security

Grade A, and why

Coder-Codex-Gemini CLAUDE.md scanned grade A 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 2mo 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

通过 `subprocess.Popen(env=custom_env)` 注入环境变量,无需依赖脚本文件。
CLAUDE.md · 135 lines

How it starts

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

Coder-Codex-Gemini (CCG)

Claude + Coder + Codex + Gemini 多模型协作 MCP 服务器

项目定位

一个统一的 MCP 服务器,让 Claude (Opus) 作为架构师调度 Coder 执行代码任务、Codex 审核代码质量、Gemini 提供专家咨询,形成自动化的多方协作闭环。

核心价值

维度 价值
成本优化 Opus 负责思考(贵但强),Coder 负责执行(量大管饱)
能力互补 Opus 补足 Coder 创造力短板,Codex 提供独立审核视角,Gemini 提供多元化专家意见
质量保障 双重审核机制(Claude 初审 + Codex 终审)
全自动闭环 拆解 → 执行 → 审核 → 重试,无需人工干预

角色分工

Claude (Opus)     →  架构师 + 初审官 + 终审官 + 协调者
Coder (可配置)    →  代码执行者(生成、修改、批量任务)
Codex (OpenAI)    →  独立代码审核者(质量把关)
Gemini (可选)     →  多面手专家(架构设计、第二意见、前端/UI)

项目结构

Coder-Codex-Gemini/
├── src/ccg_mcp/              # 源代码
│   ├── __init__.py
│   ├── cli.py                # 入口点
│   ├── server.py             # MCP 服务器主体
│   ├── config.py             # 配置加载
│   └── tools/
│       ├── coder.py          # Coder 工具
│       ├── codex.py          # Codex 工具
│       └── gemini.py         # Gemini 工具
├── skills/                   # Skills 工作流指导
│   ├── ccg-workflow/         # CCG 协作流程
│   └── gemini-collaboration/ # Gemini 协作指南
├── templates/                # 模板文件
│   └── ccg-global-prompt.md  # 全局 CLAUDE.md 模板
├── cases/                    # 实测案例
├── pyproject.toml
├── config.example.toml       # 配置文件示例
├── setup.sh                  # Unix/macOS 安装脚本
├── setup.ps1                 # Windows PowerShell 安装脚本
├── setup.bat                 # Windows 批处理入口
├── README.md                 # 项目说明(中文)
├── README_EN.md              # 项目说明(英文)
└── CLAUDE.md                 # 本文件

开发里程碑

阶段 内容 状态
M0 方案设计、技术验证 ✅ 完成
M1 最小可用版本(coder 工具) ✅ 完成
M2 集成 codex 工具 ✅ 完成
M3 协作 Prompt 优化 ✅ 完成
M4 集成 gemini 工具 ✅ 完成
M5 文档、发布 ✅ 完成

技术要点

MCP 工具

  • coder: 调用可配置后端模型执行代码生成/修改,默认 workspace-write
  • codex: 调用 Codex 进行代码审核,默认 read-only
  • gemini: 调用 Gemini CLI 进行专家咨询或代码执行,默认 workspace-write

核心特性

结构化错误

失败时返回 error_kind 和 error_detail,便于上层决策是否重试:

{
  "success": false,
  "error": "错误摘要",
  "error_kind": "timeout | upstream_error | ...",
  "error_detail": {
    "message": "错误简述",
    "exit_code": 1,
    "last_lines": ["最后20行输出..."],
    "retries": 0
  }
}

Read the full file on GitHub · 135 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. 2mo ago First seen · 135 lines · 1,438 tokens per session scan A 97203d9e8165

Subscribe to this mod's changes

Coder-Codex-Gemini CLAUDE.md is an instructions file published in the GitHub repository FredericMN/Coder-Codex-Gemini (181 stars, last pushed 9mo ago), licensed MIT. It adds 1,438 tokens to every session, about $0.0058 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Coder-Codex-Gemini CLAUDE.md compared with instructions from other repositories

Coder-Codex-Gemini CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Coder-Codex-Gemini CLAUDE.mdFredericMN/Coder-Codex-GeminiInstructions file1819mo agoMITA1,438Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode