wechat-cc: Instructions file for Codex

AGENTS.md

wechat-cc AGENTS.md is an instructions file for Codex, OpenCode from tendhearth/wechat-cc. It costs 1,098 tokens per session, scanned A, original, MIT.

A project instruction file for wechat-cc, a service that connects coding agents to WeChat and a desktop app. It documents the project’s architecture, rules, trusted documents, testing commands, and deployment process.

In plain words
What is it for?
Use it when maintaining wechat-cc, choosing the right project documentation, running tests and type checks, or deploying and self-testing the service.
Why use it?
It gives contributors one place to learn how the project is organised and how changes must be made. This reduces confusion about branches, related checkouts, documentation, and validation steps.

Instructions file for CodexOpenCode

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

This is tendhearth/wechat-cc's own configuration. It tells Codex and OpenCode how to work on wechat-cc 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 wechat-cc configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tendhearth/wechat-cc. 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/tendhearth/wechat-cc/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/tendhearth/wechat-cc

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 wechat-cc AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tendhearth/wechat-cc/agents-md"><img src="https://agentmods.dev/badge/instructions/tendhearth/wechat-cc/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,098 This file is loaded in full into every session.
When invoked 1,098 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.01098 $0.01098
Opus 5.5 $0.00439 $0.00439
Sonnet 5.5 $0.00220 $0.00220
Haiku 4.5 $0.00110 $0.00110

Measured yesterday against content hash f1dad85c0fdf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wechat-cc 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 yesterday.

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

How it starts

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

Tendhearth CC

Tendhearth CC 是住在用户自己电脑上的个人 AI,日常称呼为 CC。daemon 管会话、执行者与权限;桌面、手机和微信是同一个 CC 的操作入口。原生手机 app 在 apps/app,浏览器/PWA 在 apps/mobile。对外文案遵守产品命名规范;wechat-cc CLI、仓库地址与持久化标识继续保留。

维护者(包括 LLM)从这里开始:docs/maintainer/README.md。

项目指令只有这一份。Claude Code(v2.1.277+)直接读 AGENTS.md,Codex 本来就读它——别再加 CLAUDE.md:两份并存时 Claude 只读 CLAUDE.md、完全忽略这份,2026-09 就是这么漂出两套规矩的。真要在读不到 AGENTS.md 的环境跑(Amazon Bedrock、关掉遥测),或者你本地有 CLAUDE.local.md(它会把这份顶掉),加一份只有一行 @AGENTS.md 的 CLAUDE.md。

三份总图(动手前先看对应的那一份)

想知道 读
某件事的文档在哪、哪一份还可信 docs/INDEX.md
现在往哪走、卡在哪、欠什么账 docs/roadmap.md
定了什么、为什么这样定、什么被否决过 docs/全景导图.md(HTML 是生成物,永不手改;改完 md 跑 bun run build:map)

三条硬规矩

  1. 功能开发和修复从 dev 起独立分支,在各自独立的 worktree 中完成;dev 用于集成与验收。同一批任务指定一名整合者,串行负责合入 dev、部署和推送。
  2. 进 master 只走 PR,而且只用 squash merge。
  3. 只修改分配给自己的工作区和分支。其他工作区只读,不得替别人切分支、清理、暂存或覆盖未提交修改;不得让两个执行者同时写同一工作区。

标准回路

开发者在自己的分支完成修改、验证和提交,交给整合者。测试只增不减:删掉/放松的测试在 PR 描述 ## 删掉/放松的测试 写理由;修 bug 的 PR 描述带 ## 红/绿(撤掉修复时测试红、带上时绿),CI 会查,见 docs/maintainer/verify.md。整合者在指定的集成工作区逐项合入 dev,对合并后的版本重新验证,再部署、推送。分工、冲突处理和运行环境隔离见维护者手册。

# 开发分支本地验证:只跑改动牵连到的(typecheck + depcheck + 牵连的测试 + 全部守卫 + 真实形状沙盒)
# 全绿才记下这份内容;git push 时 pre-push 钩子查(装一次:git config core.hooksPath scripts/git-hooks)
bun run verify
# 整合者合入 dev 后、部署前:跟 CI 一样四条全跑(test / test:node / typecheck / depcheck)
bun run verify --full

# 以下由整合者在已验证的 dev 版本上串行执行
wechat-cc self ship                                            # 负载 → 网络守护 → 构建 → self deploy → 两条自检(红了回滚)
wechat-cc self soak                                            # 过几个小时:部署稳不稳看信号(改开机/关机顺序的加 --min-restarts 1)

git push origin dev && wechat-cc ci triage --wait --rerun      # 看 CI(0 绿 / 1 真红 / 2 没运行 / 3 flake)

# 自动自改也要纳入同一整合安排,不要与人工部署/推送同时运行
wechat-cc self change "<需求>"                                  # 让 CC 自己走完上面整套(五道闸门 + 主人微信拍板)

Read the full file on GitHub · 45 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. yesterday Changed · -2 lines · +122 tokens per session f1dad85c0fdf
  2. 27d ago Changed · +47 tokens per session 940ae8dbc458
  3. 1mo ago Changed · +5 lines · +227 tokens per session 022ea9b55337
  4. 1mo ago First seen · 42 lines · 702 tokens per session scan A 0fb59e71e937

Subscribe to this mod's changes

wechat-cc AGENTS.md is an instructions file published in the GitHub repository tendhearth/wechat-cc (6 stars, last pushed yesterday), licensed MIT. It adds 1,098 tokens to every session, about $0.0044 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-09-23.

Related

Other instructions, from other repositories

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 · 9,715 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,461 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens