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 4,704 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 4,704 This file is loaded in full into every session.
When invoked 4,704 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.04704 $0.04704
Opus 5 $0.02352 $0.02352
Sonnet 5 $0.00941 $0.00941
Haiku 4.5 $0.00470 $0.00470

Measured today against content hash 469d477e5d75, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 today.

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 · 247 lines

How it starts

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

AGENTS.md

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

快速上手

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/.env0600,不入仓);只有当前仓库的项目 .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)
SERVER_CHAN_KEY Server酱微信推送
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 重组)

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

uv run python scripts/migrate_db_layout.py --check   # 先检查
uv run python scripts/migrate_db_layout.py            # 执行迁移

迁移会把旧 data/watchlist.db(所有表混在一起)拆分到 4 个按职责分离的数据库:

数据库 用途 关键表
data/market.db 行情数据(缓存 + 历史 K 线 + 资金流) quote_cache, bar_cache, klines, flows
data/portfolio.db 用户数据(自选股 + 持仓 + 告警) groups, stock_entries, positions
data/agent.db Agent 个人数据(记忆 + 策略卡) agent_memory, episodic_events, predictions, semantic_knowledge, strategy_cards
data/reference.db 参考库(半导体产业链 + 业绩) semicon_stocks, earnings_*

数据根目录可通过 MOMMY_DATA_DIR 覆盖,单库路径可通过环境变量覆盖: MOMMY_MARKET_DB / MOMMY_PORTFOLIO_DB / MOMMY_AGENT_DB / MOMMY_REFERENCE_DB。 源码仓库默认使用 data/;全局安装默认使用 ~/.local/share/mommy-chaogu/

Read the full file on GitHub · 247 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. today Changed · +17 lines · +470 tokens per session 469d477e5d75
  2. 12d 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 (47 stars, last pushed today), licensed MIT. It adds 4,704 tokens to every session, about $0.0235 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.

Related

Other instructions, from other repositories

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,126 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens