codeagents: Instructions file for Codex

AGENTS.md

codeagents AGENTS.md is an instructions file for Codex, OpenCode from wenshao/codeagents. It costs 1,523 tokens per session, scanned A, original, Apache-2.0.

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

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/wenshao/codeagents/agents-md"><img src="https://agentmods.dev/badge/instructions/wenshao/codeagents/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.01523 $0.01523
Opus 5.5 $0.00609 $0.00609
Sonnet 5.5 $0.00305 $0.00305
Haiku 4.5 $0.00152 $0.00152

Measured 2mo ago against content hash b0a2eacabd46, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (89 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 1,523 tokens to every session, about $0.0061 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

codeagents AGENTS.md compared with instructions from other repositories

codeagents AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codeagents AGENTS.mdwenshao/codeagentsInstructions file894mo agoApache-2.0A1,523Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k3d agoMITA4,313Codex, OpenCode