zero2Agent: Instructions file for Codex

AGENTS.md

zero2Agent AGENTS.md is an instructions file for Codex, OpenCode from ranxi2001/zero2Agent. It costs 1,535 tokens per session, scanned A, original, MIT.

A repository guide for zero2Agent, a Chinese-language tutorial site about building, evaluating, and interviewing for AI agent systems.

In plain words
What is it for?
It guides task setup, checking the worktree, reading related articles and skills, updating navigation, and verifying changing project facts.
Why use it?
It keeps content and navigation changes focused while directing developers to the repository's current structure and rules.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths.

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

About the project

zero2Agent is a tutorial repository that teaches software developers how to build AI agents, covering core concepts, model APIs, tools, memory, frameworks, implementation, and complete projects. It is intended for programmers learning agent engineering and for candidates preparing for agent-related technical interviews.

ranxi2001/zero2Agent · 1,026 stars · on GitHub · onefly.top

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ranxi2001/zero2agent/agents-md"><img src="https://agentmods.dev/badge/instructions/ranxi2001/zero2agent/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,535 This file is loaded in full into every session.
When invoked 1,535 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.01535 $0.01535
Opus 5.5 $0.00614 $0.00614
Sonnet 5.5 $0.00307 $0.00307
Haiku 4.5 $0.00153 $0.00153

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

Security

Grade A, and why

zero2Agent 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 · 153 lines

How it starts

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

zero2Agent Repository Guide

Purpose

This repository owns the zero2Agent tutorial site at https://onefly.top/zero2Agent/. It is a Chinese-language, engineering-focused learning path for developers building, evaluating, and interviewing for AI Agent systems.

Keep repository changes focused on one coherent content, navigation, design, or publishing outcome. Preserve unrelated user edits and check the worktree before and after every task.

Start Every Task

  1. Run git status --short --branch and identify the exact files in scope.
  2. Read the relevant repository Skill under .agents/skills/ before editing.
  3. Inspect the current module index, neighboring articles, and _data/nav.yml; examples or article counts in a Skill may be older than the repository.
  4. For facts about fast-moving tools, APIs, models, prices, or projects, verify them against current primary sources and distinguish fact from inference.
  5. Keep generated output, credentials, browser profiles, and scraped raw data out of Git.

Source Of Truth

  • _data/nav.yml drives the article header navigation, sidebar, and previous/ next pager through _layouts/default.html.
  • Each module directory owns its landing index.md and article directories.
  • An article lives at <module>/<NN>-<slug>/index.md.
  • index.html owns the homepage module cards, headline metrics, and primary entry links.
  • README.md owns the public repository overview, module table, totals, and local-run instructions.
  • _config.yml owns the Jekyll URL, base path, included content, and plugins.
  • _layouts/default.html and assets/ own the shared article shell and client behavior. Avoid article-specific fixes in shared code unless the behavior is intentionally site-wide.
  • .github/workflows/jekyll-gh-pages.yml is the production build and deploy contract. A push to main publishes the site.

When these sources disagree, use executable site behavior and current files as evidence, then update every affected summary or count in the same change.

Read the full file on GitHub · 153 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 · 153 lines · 1,535 tokens per session scan A e0ec979185cc

Subscribe to this mod's changes

zero2Agent AGENTS.md is an instructions file published in the GitHub repository ranxi2001/zero2Agent (1,026 stars, last pushed yesterday), licensed MIT. It adds 1,535 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

zero2Agent AGENTS.md compared with instructions from other repositories

zero2Agent AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
zero2Agent AGENTS.mdranxi2001/zero2AgentInstructions file1.0kyesterdayMITA1,535Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode