codex-bot-mode
AGENTS.md2 starsChanged yesterdayMITView on GitHub
Instructions for coding agents working on this repository. README.md explains the product; this file says how to change it safely.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 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.
In this repository3 other files it gives its agents.
- codex-replace-chatSkill
- codex-team-launchSkill
- templatesSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- could be automatic: a setting could enforce it
- Very specific: line 7
Test: python -m unittest discover -s tests (run before every commit.
- Distinctive: line 31
Keep the smallest complete change.
- Very specific: line 35
Never commit secrets, personal data, local absolute paths, chat IDs or .bot-mode/local/.
- Distinctive: line 38
Ask before: adding dependencies, changing roster, ledger or memory formats, anything that adds network access.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
Instructions for coding agents working on this repository. README.md explains the product; this file says how to change it safely.
Commands
- Test:
python -m unittest discover -s tests(run before every commit; standard library only) - Plan and install a team in a scratch folder:
python -B scripts/team.py plan-team development --project <dir>, theninstall-team ... --approval once --confirm - Roster of a project:
python -B <project>/.bot-mode/roster.py --project <project> links - Build the plugin without registering it:
python -B scripts/build_plugin.py --out <dir> --no-register - Privacy check of a tree:
python -B scripts/public_audit.py <dir>(must report 0 findings) - Codex Office:
python -B -m scripts.team_room --project <project> --codex-path <codex executable>(needs Codex Desktop)
Structure
catalog/:base/(BASE.md shared rules, workspace and skill templates, memory contract and helper),agents/<role>/(agent.yaml, SOUL, PROFILE, PLAYBOOK),teams/<team>/(team.yaml, ROOM.md),index.yamlscripts/team.py,scripts/team_room/teams.py: catalog, questions, dry-run plans, install, approvalsscripts/team_room/roster.py,requests.py,outbox.py: standalone modules, copied into each project's.bot-mode/scripts/team_room/manifest.py: YAML subset reader and writer (stdlib)scripts/team_room/(other modules andstatic/): Codex Office.agents/skills/:codex-team-launch,codex-replace-chatpackages/chief-of-staff-v1/: personal agent templatetests/: unit tests; no Codex, no network
Conventions
- Python 3.12+, standard library only. A dependency needs a strong reason and an issue first.
- Documentation, templates and code comments in English. Agents answer users in the user's language.
- Templates contain no memory, chat IDs, personal data or credentials. Every template parameter has a
questionand adefaultorrequired: true. - Versions follow SemVer; add a CHANGELOG entry for user-visible changes.
- Keep the smallest complete change; do not refactor unrelated code.
Boundaries
- Never commit secrets, personal data, local absolute paths, chat IDs or
.bot-mode/local/. - Codex Desktop internals (app tools such as
create_thread,send_message_to_thread, sidebar sections;CODEX_THREAD_ID) are not covered by unit tests. Check changes against an installed Codex and say which version. - Agents act only with the owner's approval for appointments, external messages, publishing, spending and deletion. Do not weaken these rules in templates.
- Ask before: adding dependencies, changing roster, ledger or memory formats, anything that adds network access.
Done means
- Tests pass,
public_audit.pyreports 0 findings, and changed behaviour was exercised, not only read. - README, docs and CHANGELOG updated when behaviour changes.
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.

