book: Instructions file for Codex

AGENTS.md

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

A repository instruction file for a Chinese technical guide about working with coding agents. It defines the project's audience, writing style, content rules, examples, and link and code checks.

In plain words
What is it for?
Use it when writing or editing chapters, examples, Markdown links, code blocks, and other documentation in the book project.
Why use it?
It helps the agent produce consistent, practical documentation that follows the book's editorial and verification rules.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/aipmer/book/agents-md"><img src="https://agentmods.dev/badge/instructions/aipmer/book/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 654 This file is loaded in full into every session.
When invoked 654 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.00654 $0.00654
Opus 5.5 $0.00262 $0.00262
Sonnet 5.5 $0.00131 $0.00131
Haiku 4.5 $0.00065 $0.00065

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

Security

Grade A, and why

book 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 · 51 lines

What it actually says

🤖 Codex 协作协议 (Codex Collaboration Protocol - CAP)

🌐 English Version

📌 项目指纹

  • 项目名称:Codex 蓝皮书
  • 项目类型:Markdown 指南 / 电子书项目
  • 写作风格:专业、精炼、技术密度高、易读的中文,伴以恰当的格式与图表。
  • 引用规范:链接必须使用 file:/// 格式的绝对路径(例如:[link text](file:///Users/hunkwu/Desktop/ai/book/README.md))。

🎯 目标受众

  • 希望利用 AI 智能体(尤其是 OpenAI Codex)进行高效开发的专业开发者。
  • 想要自主构建商业级 MVP 的独立黑客与创业者。

🛑 约束红线

  • 严禁使用占位符:必须提供真实、可运行的示例代码和配置。
  • 注重实操:每个章节必须包含逐步的代码片段、命令行执行或配置文件模版。
  • 链接完整:确保各章节之间的链接引用正确,无死链。
  • 杜绝冗长摘要:避免重复内容;专注于可落地的洞察、心智模型和步骤演练。

🧪 验证标准

  • 所有 Markdown 文件必须语法正确,且链接到真实存在的目标路径。
  • 所有代码块必须带有正确的语言标签(例如:```bash, ```markdown, ```json)。


🌐 English Version

🤖 Codex Collaboration Protocol (CAP)

📌 Project Signature

  • Project Name: Codex Blue Book
  • Framework: Markdown Guide / Book Project
  • Coding Style: Professional, concise, tech-rich, easy-to-read Chinese with proper formatting and diagrams.
  • Reference Style: Links should be absolute paths with file:/// scheme (e.g. [link text](file:///Users/hunkwu/Desktop/ai/book/README.md)).

🎯 Target Audience

  • Professional developers looking to leverage AI agents (especially OpenAI Codex) for high-efficiency development.
  • Indie Hackers / Entrepreneurs wanting to build commercial-grade MVPs autonomously.

🛑 Hard Constraints

  • Do not use placeholders: Always provide real, functional examples and configurations.
  • Keep it practical: Every chapter must contain step-by-step code snippets, command executions, or configuration templates.
  • Preserve Links: Ensure all links between chapters are correctly referenced.
  • No verbose summaries: Avoid repeating contents; focus on actionable insights, mental models, and step-by-step walkthroughs.

🧪 Verification Specs

  • All markdown files must be syntactically valid and link to actual target paths.
  • Code blocks must have language tags (e.g. ```bash, ```markdown, ```json).
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 · 51 lines · 654 tokens per session scan A ed0350b82595

Subscribe to this mod's changes

book AGENTS.md is an instructions file published in the GitHub repository aipmer/book (53 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 654 tokens to every session, about $0.0026 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

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

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens