agentleFS
herry2059herry2059/project-os-for-codex/AGENTS.md

project-os-for-codex

AGENTS.md102 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 checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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.

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
  1. Very specific:

    Every persisted business record must belong to a workspaceId.

    line 13
  2. Common:

    Never put passwords, access tokens, provider keys, private endpoints, customer data, or production exports in source, logs, screenshots, …

    line 15
  3. Very specific:

    Read README.md, docs/INTERFACES.md, and the relevant source before changing behavior.

    line 21
  4. Very specific:

    Use pnpm for dependency and build commands.

    line 23
  5. Very specific:

    Before committing, run pnpm run check and inspect the real affected UI in both light and dark themes.

    line 24
  6. Distinctive:

    Prefer MCP or documented API/CLI tools over browser automation.

    line 29
  7. Common:

    Never ask users to paste their website password into an AI conversation.

    line 30
  8. Distinctive:

    Keep dangerous tools out of the MCP surface until a human approval workflow exists.

    line 32
  9. Very specific:

    When a Project OS MCP connection is configured, call project_os_get_context before planning or editing.

    line 36
  10. Distinctive:

    Read the source checkout's local AGENTS.md as the code-change contract.

    line 37
  11. Distinctive:

    Do not record plans, attempts, failed checks, or unverified output as completed progress.

    line 39
  12. Distinctive:

    Do not deploy, restart production, change live permissions, delete data, or force-push without explicit human confirmation.

    line 43
  13. Very specific:

    Use staging, smoke tests, backup, and rollback for production changes.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 pnpm for dependency and build commands.
  • Before committing, run pnpm run check and 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_context before planning or editing. If it fails, do not guess or claim the project is connected; run pnpm codex:doctor and report the blocker.
  • Read the source checkout's local AGENTS.md as 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_progress with 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 rsync overwrites.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.