mommy-chaogu: Instructions file for Codex

AGENTS.md

mommy-chaogu AGENTS.md is an instructions file for Codex, OpenCode from coffee-man666/mommy-chaogu. It costs 7,241 tokens per session, scanned A, original, MIT.

A set of Chinese-language project instructions for mommy-chaogu, including setup, API-key configuration, testing, type checking, and project data layout.

In plain words
What is it for?
It helps developers set up providers and models, configure environment files, run tests, check code style, and verify types.
Why use it?
It gives agents the project's required development commands and explains how configuration values are selected and stored safely.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

This is coffee-man666/mommy-chaogu's own configuration. It tells Codex and OpenCode how to work on mommy-chaogu 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 mommy-chaogu configures →

Reuse

Borrowing it

Nothing to install: this file belongs to coffee-man666/mommy-chaogu. 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/coffee-man666/mommy-chaogu/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/coffee-man666/mommy-chaogu

Made for: Codex, OpenCode.

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 mommy-chaogu AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/coffee-man666/mommy-chaogu/agents-md/github.svg)](https://agentmods.dev/instructions/coffee-man666/mommy-chaogu/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/coffee-man666/mommy-chaogu/agents-md"><img src="https://agentmods.dev/badge/instructions/coffee-man666/mommy-chaogu/agents-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 mommy-chaogu AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/coffee-man666/mommy-chaogu/agents-md"><img src="https://agentmods.dev/badge/instructions/coffee-man666/mommy-chaogu/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,241 This file is loaded in full into every session.
When invoked 7,241 The same file — it is already loaded in full.
Security scan A 0 findings. 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.07241 $0.07241
Opus 5.5 $0.02896 $0.02896
Sonnet 5.5 $0.01448 $0.01448
Haiku 4.5 $0.00724 $0.00724

Measured 21d ago against content hash 62ab1860def2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mommy-chaogu AGENTS.md 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 21d 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.

AGENTS.md · 348 lines

How it starts

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

AGENTS.md

给 AI agent(和人类开发者)的项目指南。开始工作前先读这份。

审查入口(所有 Agent 共用)

开展架构、正确性、数据、研究或发布审查,以及修改相应核心契约前,必须阅读 系统性审查指南。它服从本文件的产品定位与产品交付原则。 局部审查按影响范围选用相关检查,不要求每个小改动全面审计;系统性审查必须交代 Market Time、Data Quality、Quantitative Validation、Release Integrity 四个领域的覆盖与未验证项。

  • 先写用户可观察的目标,记录版本、commit 与工作区差异,再沿实际调用链验证;旧报告只是线索。
  • 按 Audit → Design → Implement → Validate 推进;区分已证实缺陷、条件性风险、待验证假设。 每项重要发现说明触发输入、用户后果、根因、证据、现有测试缺口与兼容性影响。
  • 优先处理静默错误和误导性输出;将关键不变量映射到根因测试与用户验收。 测试通过不等于研究有效,更不等于策略可执行。
  • 第一轮默认交付证据审查、必要的架构建议、分阶段计划和测试矩阵。 审查请求本身不授权修复、存量数据改写或迁移;已有明确实现授权时继续其授权范围内的工作。
  • 只有证据说明局部修复不足,才提出共用抽象,并比较局部修复、复用与新增抽象的成本。 涉及存量金融数据、数据库迁移或重要研究口径变化时,先列影响、验证证据与恢复方案,再按授权实施。
  • 未运行的检查、不可还原的历史信息与未覆盖路径必须明确列出;不得把规范落盘宣称为缺陷修复 或系统已通过审计。审查快照落在 docs/archive/,稳定原则更新本指南;不得另造产品方向。

快速上手

uv sync --extra dev      # 安装依赖
uv run pytest -m "not network"   # 跑测试(2,082 个离线用例,另有 14 个网络探针)
uv run ruff check .      # lint
uv run mypy --strict src # type check

密钥配置

推荐运行 uv run mommy setup,交互式选择 Provider / 模型、隐藏输入并验证 Key, 还可继续扫码连接微信。安装用户的配置默认保存到 ~/.config/mommy-chaogu/.env(0600,不入仓);只有当前仓库的项目 .env 已包含 有效 Provider 或 API key 时才会就地更新。可用 --local / --user 显式选择作用域, 用 --check 脱敏检查生效来源:

cp .env.example .env       # 复制模板
# 编辑 .env,填入需要的 key

支持的 key(根据生效的 AGENT_PROVIDER 自动读取对应的一项):

Provider 环境变量 说明
deepseek(默认) DEEPSEEK_API_KEY DeepSeek API
openai OPENAI_API_KEY OpenAI / 兼容接口(有 embedding 接口,向量检索可用)
kimi MOONSHOT_API_KEY Moonshot / Kimi
zai ZAI_API_KEY z.ai / GLM-4.7
minimax MINIMAX_API_KEY MiniMax 开放平台按量 API(M3,非 Coding Plan)
— AGENT_PROVIDER 覆盖 provider(不重启改 .env)
— AGENT_MODEL 覆盖聊天模型名

优先级:shell 环境变量 > 项目 .env > 用户级 .env > 代码默认值。Provider 与 model 按来源成组解析,禁止跨层拼接;config.toml 仅用于可选高级 Web 参数。provider 配置表 (base_url / 默认模型 / env key / 温度 / embedding 模型)的单一真相源是 src/mommy_chaogu/agent/llm.py——改 provider 只动它,不要另起表。

数据库布局(2026-07-03 重组)

⚠️ 如果你是从旧版本升级,请先跑迁移脚本:

Read the full file on GitHub · 348 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. 21d ago Changed · +20 lines · +593 tokens per session 62ab1860def2
  2. 22d ago Changed · +21 lines · +706 tokens per session 27943c713d19
  3. 25d ago Changed · +61 lines · +1,238 tokens per session 1e70e78cc162
  4. 27d ago Changed · -1 lines 28ec6592438b
  5. 1mo ago Changed cd7e8df2d1fe
  6. 1mo ago Changed · +17 lines · +470 tokens per session 469d477e5d75
  7. 2mo ago First seen · 230 lines · 4,234 tokens per session scan A eae21ef3dec5

Subscribe to this mod's changes

mommy-chaogu AGENTS.md is an instructions file published in the GitHub repository coffee-man666/mommy-chaogu (61 stars, last pushed 6d ago), licensed MIT. It adds 7,241 tokens to every session, about $0.0290 per session on Opus 5.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.

Related

mommy-chaogu AGENTS.md compared with instructions from other repositories

mommy-chaogu AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mommy-chaogu AGENTS.mdcoffee-man666/mommy-chaoguInstructions file616d agoMITA7,241Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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