persist-os
AGENTS.md9 starsChanged 2 months agoMITView on GitHub
Persist OS creates durable engineering memory for AI-assisted software development. This file is intentionally short. Use it as routing guidance, not as the full project handbook. For product intent, read: For implementation constraints, read: When asked to build or change a module, do not jump directly into code. First create or update the feature docs and module memory: Tasks come after PRD, acceptance criteria, architecture impact, and test plan. Persist OS Core records, distributes, validates, and protects decisions. It does…
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 repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/persist-memory.mdcCursor rule
- llms.txtllms.txt
- conventions-adherenceSkill
- plan-featureSkill
- security-reviewSkill
- conventions-adherenceSkill
- plan-featureSkill
- security-reviewSkill
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 1 is common, 10 are distinctive, and 0 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
0
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
- Distinctive: line 36
When asked to build or change a module, do not jump directly into code.
- Distinctive: line 54
If a model, tool, or user request conflicts with accepted repository memory or engineering standards, stop and report the conflict.
- Common: line 57
Never commit secrets, hardcode credentials, bypass auth, add dependencies without review, skip required migrations, skip tests without …
- Distinctive: line 60
Stop when tests cannot be designed from the available requirements, and escalate missing test evidence for risky changes.
- Distinctive: line 66
No MCP server connection.
- Distinctive: line 70
No tool execution from generated skills.
- Distinctive: line 71
No AI API calls.
- Distinctive: line 72
No generated production app code.
- Distinctive: line 87
If instructions conflict, stop and report the conflict.
- Distinctive: line 91
Do not claim completion without evidence: files changed, commands run, results, skipped checks, remaining risks, and documentation updates.
- Distinctive: line 94
Before claiming implementation work is complete, run:
≈ “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.
Files
Persist OS Agent Instructions
Persist OS creates durable engineering memory for AI-assisted software development.
This file is intentionally short. Use it as routing guidance, not as the full project handbook.
Required Reading
For product intent, read:
docs/00-product/PRODUCT.mddocs/00-product/PRODUCT_VISION.mddocs/00-product/POSITIONING.mddocs/00-product/ROADMAP.md
For implementation constraints, read:
docs/10-architecture/ARCHITECTURE.mddocs/10-architecture/MEMORY_ENGINE.mddocs/10-architecture/REPOSITORY_DECISIONS.mddocs/10-architecture/OPINION_PACKS.mddocs/10-architecture/TECH_STACK.mddocs/10-architecture/FILE_WRITE_POLICY.mddocs/10-architecture/MODULE_BOUNDARIES.mddocs/20-security/SECURITY_MODEL.mddocs/20-security/THREAT_MODEL.mddocs/50-quality/QUALITY_GATES.mddocs/60-engineering/ENGINEERING_STANDARDS.mddocs/60-engineering/AI_AGENT_RULES.mddocs/ai/AI_AGENTS_SKILLS_MCP_STRATEGY.mddocs/ai/MODULE_DELIVERY_WORKFLOW.mddocs/ai/PERSIST_COMMANDS.md
Module Work Rule
When asked to build or change a module, do not jump directly into code.
First create or update the feature docs and module memory:
docs/40-features/F-###-<module>-module/docs/30-modules/<module>/
Tasks come after PRD, acceptance criteria, architecture impact, and test plan.
Architecture Neutrality
Persist OS Core records, distributes, validates, and protects decisions. It does not make architecture or technology choices for users.
Engineering Standards
Repository rules override model preferences.
If a model, tool, or user request conflicts with accepted repository memory or engineering standards, stop and report the conflict.
Never commit secrets, hardcode credentials, bypass auth, add dependencies without review, skip required migrations, skip tests without reason, or claim completion without evidence.
Stop when tests cannot be designed from the available requirements, and escalate missing test evidence for risky changes.
Non-Negotiable MVP Constraints
- No runtime MCP.
- No MCP server connection.
- No network calls.
- No telemetry.
- No cloud behavior.
- No tool execution from generated skills.
- No AI API calls.
- No generated production app code.
Source Of Truth
- Accepted ADRs and repository decisions
- Architecture docs
- Engineering standards
- Current PRD and accepted change requests
- Security and testing docs
- Module docs
- Feature plans
- Task files
- MCP external context
- Chat history
If instructions conflict, stop and report the conflict.
Delivery Standard
Do not claim completion without evidence: files changed, commands run, results, skipped checks, remaining risks, and documentation updates.
Before claiming implementation work is complete, run:
pnpm test:runpnpm typecheckpersist doctorwhen the CLI binary is available
Fix Doctor errors before claiming completion. Address Doctor warnings or record why they are acceptable.
Package binary behavior is covered by binary integration tests.
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.

