project-os-for-codex
AGENTS.md101 starsChanged 5 months agoApache-2.0View on GitHub
These rules apply to Codex and every contributor working in this repository.
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 repositoryOne other file it gives its agents.
- public/llms.txtllms.txt
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 2 are common, 5 are distinctive, and 6 are very specific to this project.
≈2
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
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 13
Every persisted business record must belong to a workspaceId.
- Common: line 15
Never put passwords, access tokens, provider keys, private endpoints, customer data, or production exports in source, logs, screenshots, …
- Very specific: line 21
Read README.md, docs/INTERFACES.md, and the relevant source before changing behavior.
- Very specific: line 23
Use pnpm for dependency and build commands.
- Very specific: line 24
Before committing, run pnpm run check and inspect the real affected UI in both light and dark themes.
- Distinctive: line 29
Prefer MCP or documented API/CLI tools over browser automation.
- Common: line 30
Never ask users to paste their website password into an AI conversation.
- Distinctive: line 32
Keep dangerous tools out of the MCP surface until a human approval workflow exists.
- Very specific: line 36
When a Project OS MCP connection is configured, call project_os_get_context before planning or editing.
- Distinctive: line 37
Read the source checkout's local AGENTS.md as the code-change contract.
- Distinctive: line 39
Do not record plans, attempts, failed checks, or unverified output as completed progress.
- Distinctive: line 43
Do not deploy, restart production, change live permissions, delete data, or force-push without explicit human confirmation.
- Very specific: line 44
Use staging, smoke tests, backup, and rollback for production changes.
≈ “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
AI contributor rules
These rules apply to Codex and every contributor working in this repository.
Product truth
- This is a real open-source project, not a UI demo. Do not add fake success states, fake production data, or claims that are not implemented.
- Project OS for Codex makes AI-assisted projects visible, resumable, and handoff-ready through project context, Git evidence, next actions, and structured handoffs.
- Work one vertical slice at a time. Finish and verify one end-to-end path before widening the surface.
Architecture and security
- Every persisted business record must belong to a
workspaceId. Requests must derive the workspace from a verified session or AI credential, never from an untrusted body field. - AI credentials must be short-lived, revocable, hashed at rest, scoped to the minimum project and actions, and covered by audit logs.
- Never put passwords, access tokens, provider keys, private endpoints, customer data, or production exports in source, logs, screenshots, prompts, issues, or commits.
- AI may read context and prepare drafts. Payment, deletion, role changes, credential management, publication, deployment, and rollback always require explicit human confirmation.
- Public error messages must not reveal private providers, internal routes, balances, or infrastructure details.
Development workflow
- Read
README.md,docs/INTERFACES.md, and the relevant source before changing behavior. - Preserve user changes and keep commits focused on the requested slice.
- Use
pnpmfor dependency and build commands. - Before committing, run
pnpm run checkand inspect the real affected UI in both light and dark themes. - A change is complete only when the real path works end to end. A diff or a mocked response is not acceptance evidence.
Agent integration contract
- Prefer MCP or documented API/CLI tools over browser automation.
- Never ask users to paste their website password into an AI conversation.
- Project event writes require
Idempotency-Key, server-derived actor identity, input validation, workspace and project isolation, and an audit event. - Keep dangerous tools out of the MCP surface until a human approval workflow exists.
Codex session protocol
- When a Project OS MCP connection is configured, call
project_os_get_contextbefore planning or editing. If it fails, do not guess or claim the project is connected; runpnpm codex:doctorand report the blocker. - Read the source checkout's local
AGENTS.mdas the code-change contract. Treat Project OS context as the project goal, recorded state, acceptance criteria, and next action. If they conflict or look stale, stop and ask for human direction. - Complete and verify one vertical slice. Only then call
project_os_append_progresswith the checked result, plain-language result, reason, benefit, verification, and next action. - Do not record plans, attempts, failed checks, or unverified output as completed progress.
Deployment
- Do not deploy, restart production, change live permissions, delete data, or force-push without explicit human confirmation.
- Use staging, smoke tests, backup, and rollback for production changes. Do not use blind
rsyncoverwrites.
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.

