codex-usage-guide
AGENTS.md1 starsChanged 4 months agoMITView on GitHub
This repository contains a Chinese-first GitHub Pages guide for using Codex. The web page is the canonical public artifact. - Keep the guide useful for both beginners and advanced Codex users. - Preserve exact English identifiers such as Goal, subagent, AGENTS.md, refine-user-prompt, Compound Engineering, SKILL.md, and command names. - Keep generic Goal/Subagent guidance before scenario-specific skills. - Keep the GPT-5.6 prompt-guidance interpretation grounded in the linked OpenAI source, and label refine-user-prompt as a third-party skill. - Do not publish internal…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Keep the guide useful for both beginners and advanced Codex users.
- Distinctive: line 13
Keep generic Goal/Subagent guidance before scenario-specific skills.
- Very specific: line 14
Keep the GPT-5.6 prompt-guidance interpretation grounded in the linked OpenAI source, and label refine-user-prompt as a third-party skill.
- Very specific: line 16
Do not publish internal task process docs under doc/.
- Distinctive: line 18
Do not make PDF generation part of the default completion contract unless the user explicitly asks for a PDF.
- Distinctive: line 23
Before claiming completion, verify:
- Distinctive: line 56
Update this section manually or with the local goal-context tooling if project structure changes materially.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Repository Purpose
This repository contains a Chinese-first GitHub Pages guide for using Codex. The web page is the canonical public artifact.
Editing Rules
- Keep the guide useful for both beginners and advanced Codex users.
- Preserve exact English identifiers such as
Goal,subagent,AGENTS.md,refine-user-prompt,Compound Engineering,SKILL.md, and command names. - Keep generic Goal/Subagent guidance before scenario-specific skills.
- Keep the GPT-5.6 prompt-guidance interpretation grounded in the linked OpenAI
source, and label
refine-user-promptas a third-party skill. - Do not publish internal task process docs under
doc/; they are local execution records. - Do not make PDF generation part of the default completion contract unless the user explicitly asks for a PDF.
Build And Verification
- Before claiming completion, verify:
make checkpasses for local HTML links, anchors, shared navigation, and required real-example coverage.index.htmlcontains the requested Chinese content and links.- Important anchors referenced by the sidebar exist.
- GitHub Pages has been pushed and, when network access is available, the published page returns the updated HTML.
Maintainer Commands
make generateupdates sentinel-owned root-page blocks and generated assets.make check-fastchecks deterministic generation plus the manifest-scoped 21-page static contract.make checkadds the Python unit suite.make test-browserruns Playwright interaction and responsive checks.make check-release-localruns local automated release gates; it does not satisfy human privacy or reader checks.make check-publishedis post-deployment and network-dependent. Recordnot runbefore deployment or when the public site is unavailable; never convert that state to pass.
Generated And Authored Boundaries
data/site-manifest.json,data/changelog.json,data/heading-fragments.json, anddata/publication-policy.jsonare reviewed sources of truth.assets/site-data.js,assets/search-index.js, root-pageguide:*blocks, canonical heading IDs, legacy alias elements, permalink controls, and normalized external-link attributes are generated. Change their source and runmake generate; do not hand-edit them.- Article prose, prompts, case evidence, captions, and narrowly scoped evidence sections outside generated blocks are authored content. Generator changes must preserve those bytes except for the explicitly registered narrow transformations above.
- Real Desktop screenshots remain an external-input gate. Do not create an approval record, claim privacy sign-off, or publish substitutes until the exact committed derivative has received independent original-resolution review.
Documentation Boundaries
index.htmlis the GitHub Pages guide and canonical public artifact.README.mdis the repository landing page.CONTEXT.mdis the domain glossary.docs/adr/stores durable documentation decisions.
Path Index
Update this section manually or with the local goal-context tooling if project structure changes materially.
<!-- goal-context:path-index:start -->Path Index
- Generated: 2026-07-11T13:00:09Z
- Max depth: 4
- Max items per section: 40
Start Here
.- requested target pathAGENTS.md- agent instructions for this scopeREADME.md- project overview and setup notesMakefile- project manifest or command/dependency entrypackage.json- project manifest or command/dependency entry
AGENTS Files
AGENTS.md- agent instructions for this scope
Workspace Units
.- workspace unit containing Makefile
Commands And Manifests
Makefile- project manifest or command/dependency entrypackage.json- project manifest or command/dependency entry
Source Roots
.- contains source/config filesassets- contains source/config filesscripts- contains source/config filestests- contains source/config filestests/browser- contains source/config files
Tests
tests- test directorytests/test_build_site.py- test filetests/test_check_site.py- test filetests/test_published_site.py- test filetests/browser/toolbook.spec.js- test file
Docs
README.md- project overview and setup notesdoc- harness task workspace and durable task notesdoc/findings.md- harness task workspace and durable task notesdoc/lessons.md- harness task workspace and durable task notesdoc/progress.md- harness task workspace and durable task notesdoc/task_issue.md- harness task workspace and durable task notesdoc/task_plan.md- harness task workspace and durable task notesdocs- project documentationdocs/case-evidence-index.md- project documentationdocs/adr- project documentationdocs/adr/0001-dual-track-chinese-latex-guide.md- project documentationdocs/ideation- project documentationdocs/ideation/2026-07-10-codex-desktop-guide-effectiveness-ideation.html- project documentationdocs/plans- project documentationdocs/plans/2026-07-07-001-docs-high-stars-skills-repos-plan.md- project documentationdocs/plans/2026-07-10-002-docs-evidence-task-loop-worktree-subagents-plan.md- project documentationdocs/plans/2026-07-11-003-docs-guide-toolbook-upgrade-plan.md- project documentationdocs/plans/2026-07-11-004-docs-guide-remaining-experience-gaps-plan.md- project documentationdocs/reader-checks- project documentationdocs/reader-checks/remaining-experience-script.md- project documentation
Task Docs
doc/task_plan.md- required task process docdoc/progress.md- required task process docdoc/findings.md- required task process docdoc/task_issue.md- required task process docdoc/lessons.md- required task process doc
<!-- goal-context:path-index:end -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

