ChatCCC AGENTS.md

ChatCCC AGENTS.md is an instructions file for Codex, OpenCode from wzj998/ChatCCC. It costs 831 tokens per session, scanned A, original, Apache-2.0.

Repository-specific development instructions for ChatCCC, including collaboration rules, testing expectations, commands, and release steps.

In plain words
What is it for?
Use them when developing, testing, committing, pushing, or releasing ChatCCC changes.
Why use it?
They clarify how agents should coordinate and verify important changes, avoiding unsafe assumptions and accidental release mistakes.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/wzj998/chatccc/agents-md
Clone the repo
git clone --depth 1 https://github.com/wzj998/ChatCCC

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 ChatCCC AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/wzj998/chatccc/agents-md.svg)](https://agentmods.dev/instructions/wzj998/chatccc/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/wzj998/chatccc/agents-md"><img src="https://agentmods.dev/badge/instructions/wzj998/chatccc/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 831 This file is loaded in full into every session.
When invoked 831 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00831 $0.00831
Opus 5 $0.00415 $0.00415
Sonnet 5 $0.00166 $0.00166
Haiku 4.5 $0.00083 $0.00083

Measured 4d ago against content hash 7fbe1cefad62, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ChatCCC 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 4d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 23 lines

What it actually says

协作原则(核心)

  • 第一性原理思考:从原始需求和问题出发。若动机或目标不清晰,先讨论;若路径不是最优,直接指出并建议更好的做法
  • 重要改动先补测试护栏:若改动范围大且影响重要,且相关路径没有或不足单元测试覆盖,须先完善对改动前行为的单测,再改实现

开发注意点

  • cmt / cmt all 约定cmt → 1) 修改注释和文档 2) 运行全部单测 3) git commit 只提交当前会话改动。cmt all → 上述流程但提交全部改动(含与当前对话无关的)。若无法可靠区分当前会话改动,先问用户
  • cmp / cmp all 约定cmp → 执行 cmtgit pushcmp all → 执行 cmt allgit push
  • 避免 undefined 被当成 false 使用:当函数成功时返回 undefined(如 .catch(() => {}) 没有返回值、void 函数等),直接用 if (result) 会把成功当成失败。必须用显式比较,例如 result !== false 而非 !result
  • 公有仓库 PR 规则:ChatCCC 仓库 dev → main 的 PR 必须使用 merge commit(Create a merge commit),禁止 squash。PR 合并通过 gh pr merge 时指定 --merge
  • 六步 PR/发布法:1) FeishuClauderPrivate/dev 开发、测试、提交并推送;2) 私有仓 dev → main 创建并合并 PR;3) 用 sync.mjs 同步到公开 ChatCCC/dev;4) 公开仓 dev → main 创建 PR 并以 merge commit 合并;5) 用 sync-deepccc.mjs 将公开 ChatCCC 的 deepccc-agent/ 同步到独立 deepccc-agent/main;6) 在独立仓测试、提交、推送并按需发布 npm。DeepCCC co-author 的全局配置归独立/内嵌内核,ChatCCC 只持有三态 override,私有仓负责两者的源开发与同步。
  • package.json 编码红线:文件开头禁止 BOM(部分工具如 tsx 的 readPackageJson 会解析失败导致闪退)。编辑后必须用 node -e "JSON.parse(require('fs').readFileSync('package.json','utf8'))" 验证无 BOM 且 JSON 合法。写入时用 utf8 编码(不含 BOM),engines.node 直接用 ">=20" 不要用 > 转义

日志位置

  • 运行日志、启动黑匣子和 PID/状态等用户数据默认写入用户目录:~/.chatccc/
  • Windows 常见路径:C:\Users\<用户名>\.chatccc\logs\
  • 关键文件:
    • ~/.chatccc/logs/index-*.log:主进程运行日志
    • ~/.chatccc/logs/startup-trace.log:启动、单实例清理、信号、未捕获异常等同步落盘诊断
  • 仓库根目录下的 logs/ 可能是旧版本或历史运行残留;排查当前 npm/dev 运行问题时,优先看 ~/.chatccc/logs/
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. 4d ago First seen · 23 lines · 831 tokens per session scan A 7fbe1cefad62

Subscribe to this mod's changes

ChatCCC AGENTS.md is an instructions file published in the GitHub repository wzj998/ChatCCC (22 stars, last pushed yesterday), licensed Apache-2.0. It adds 831 tokens to every session, about $0.0042 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