codeagents AGENTS.md

A project instruction file for a Chinese technical documentation project about AI coding agents. It describes the project, its documentation structure, writing rules, and language requirements.

In plain words
What is it for?
It helps agents navigate the documentation repository, compare coding-agent tools, verify claims against source code, and write content in the required style and language.
Why use it?
It gives every coding agent the same context and editorial rules when changing or reviewing the documentation.

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/wenshao/codeagents/agents-md
Clone the repo
git clone --depth 1 https://github.com/wenshao/codeagents

Made for: Codex, OpenCode.

Per session 1,523 This file is loaded in full into every session.
When invoked 1,523 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.01523 $0.01523
Opus 5 $0.00762 $0.00762
Sonnet 5 $0.00305 $0.00305
Haiku 4.5 $0.00152 $0.00152

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

Security

Grade A, and why

codeagents 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 2d 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 · 132 lines

How it starts

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

AGENTS.md — 项目指令文件

本文件为所有 AI 编程代理提供项目级上下文。支持 Claude Code(通过符号链接)、Codex CLI、Kimi CLI、Copilot CLI、Qwen Code、OpenCode。

项目概述

这是一个中文技术文档项目,对比分析 18 款 AI 编程 Code Agent。所有分析基于源码验证, 确保技术声明的准确性。项目目标是为开发者提供中立、客观、可验证的 Agent 选型参考。

项目结构(118 文件,35,000+ 行)

docs/
├── tools/                      # Agent 文档(10 目录 + 9 单文件)
│   ├── claude-code/            # 9 文件 + EVIDENCE.md(反编译分析)
│   ├── copilot-cli/            # 5 文件 + EVIDENCE.md(SEA 反编译)
│   ├── codex-cli/              # 5 文件 + EVIDENCE.md(Rust 二进制分析)
│   ├── gemini-cli/             # 7 文件 + EVIDENCE.md(源码分析)
│   ├── kimi-cli/               # 5 文件 + EVIDENCE.md
│   ├── aider/                  # 5 文件 + EVIDENCE.md
│   ├── opencode/               # 5 文件 + EVIDENCE.md
│   ├── qwen-code/              # EVIDENCE.md(Gemini CLI 分叉分析)
│   ├── qoder-cli/              # 4 文件 + EVIDENCE.md(Go 二进制分析)
│   ├── goose/                  # EVIDENCE.md(MCP 原生架构分析)
│   └── *.md                    # 9 个单文件 Agent(Cursor/Warp/Cline 等)
├── comparison/                 # 对比文档(40 篇)
│   ├── features.md             # 功能矩阵
│   ├── architecture-deep-dive.md  # 架构深度对比
│   ├── slash-commands-deep-dive.md  # 命令深度对比
│   ├── model-routing.md        # 模型路由
│   ├── *-deep-dive.md          # 15 篇系统能力 Deep-Dive
│   ├── review-command.md       # /review 对比
│   ├── privacy-telemetry.md    # 隐私/遥测/安全监控对比
│   ├── pricing.md              # 定价/成本
│   ├── system-requirements.md  # 系统要求
│   ├── claude-code-vs-*.md     # 1v1 对比
│   └── qwen-code-*.md          # Qwen 功能补全系列
├── guides/                     # 使用指南(15 篇)
│   ├── getting-started.md
│   ├── workflows.md
│   ├── migration.md
│   ├── troubleshooting.md
│   ├── config-examples.md
│   ├── context-management.md
│   ├── skill-design.md
│   ├── agents-md.md
│   ├── hooks-config.md
│   ├── claude-code-user-guide.md
│   ├── qwen-code-user-guide.md
│   ├── copilot-cli-user-guide.md
│   ├── writing-claude-md.md
│   ├── security-hardening.md
│   └── effective-prompts.md
├── architecture/
├── benchmarks/
└── resources.md

Read the full file on GitHub · 132 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. 2d ago First seen · 132 lines · 1,523 tokens per session scan A b0a2eacabd46

Subscribe to this mod's changes

codeagents AGENTS.md is an instructions file published in the GitHub repository wenshao/codeagents (85 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 1,523 tokens to every session, about $0.0076 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

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,182 tokens

buildNext

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

next.js 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

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

spec-kit 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,040 tokens

langchain 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,345 tokens