agentleFS
Karthick-RamachandranKarthick-Ramachandran/persist-os/AGENTS.md

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…

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
  1. Distinctive:

    When asked to build or change a module, do not jump directly into code.

    line 36
  2. Distinctive:

    If a model, tool, or user request conflicts with accepted repository memory or engineering standards, stop and report the conflict.

    line 54
  3. Common:

    Never commit secrets, hardcode credentials, bypass auth, add dependencies without review, skip required migrations, skip tests without …

    line 57
  4. Distinctive:

    Stop when tests cannot be designed from the available requirements, and escalate missing test evidence for risky changes.

    line 60
  5. Distinctive:

    No MCP server connection.

    line 66
  6. Distinctive:

    No tool execution from generated skills.

    line 70
  7. Distinctive:

    No AI API calls.

    line 71
  8. Distinctive:

    No generated production app code.

    line 72
  9. Distinctive:

    If instructions conflict, stop and report the conflict.

    line 87
  10. Distinctive:

    Do not claim completion without evidence: files changed, commands run, results, skipped checks, remaining risks, and documentation updates.

    line 91
  11. Distinctive:

    Before claiming implementation work is complete, run:

    line 94

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

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.md
  • docs/00-product/PRODUCT_VISION.md
  • docs/00-product/POSITIONING.md
  • docs/00-product/ROADMAP.md

For implementation constraints, read:

  • docs/10-architecture/ARCHITECTURE.md
  • docs/10-architecture/MEMORY_ENGINE.md
  • docs/10-architecture/REPOSITORY_DECISIONS.md
  • docs/10-architecture/OPINION_PACKS.md
  • docs/10-architecture/TECH_STACK.md
  • docs/10-architecture/FILE_WRITE_POLICY.md
  • docs/10-architecture/MODULE_BOUNDARIES.md
  • docs/20-security/SECURITY_MODEL.md
  • docs/20-security/THREAT_MODEL.md
  • docs/50-quality/QUALITY_GATES.md
  • docs/60-engineering/ENGINEERING_STANDARDS.md
  • docs/60-engineering/AI_AGENT_RULES.md
  • docs/ai/AI_AGENTS_SKILLS_MCP_STRATEGY.md
  • docs/ai/MODULE_DELIVERY_WORKFLOW.md
  • docs/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

  1. Accepted ADRs and repository decisions
  2. Architecture docs
  3. Engineering standards
  4. Current PRD and accepted change requests
  5. Security and testing docs
  6. Module docs
  7. Feature plans
  8. Task files
  9. MCP external context
  10. 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:run
  • pnpm typecheck
  • persist doctor when 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.

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.