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

persist-os

CLAUDE.md9 starsChanged 2 months agoMITView on GitHub

Persist OS is a local-first TypeScript CLI that creates AI-ready engineering memory for software repositories. Read these first before non-trivial work: - Respect the approved milestone scope. Do not add runtime behavior outside the current plan. - Treat module work as a mini product workflow: PRD, acceptance, architecture impact, test plan, tasks, implementation, completion report, drift review, then module memory update. - Persist OS Core is architecture-neutral. Do not encode architecture or technology choices as core truth. - Repository rules…

The file

We split this CLAUDE.md into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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:

    Read these first before non-trivial work:

    line 6
  2. Distinctive:

    Treat module work as a mini product workflow: PRD, acceptance, architecture impact, test plan, tasks, implementation, completion report, …

    line 28
  3. Distinctive:

    Stop if a request conflicts with engineering standards, including requests to commit secrets, hardcode credentials, bypass auth, add …

    line 33
  4. Distinctive:

    Do not add network calls, telemetry, cloud behavior, AI API calls, runtime MCP, or generated production app code.

    line 36
  5. Distinctive:

    Never overwrite existing files by default in future implementation work.

    line 38
  6. Distinctive:

    Treat chat history and MCP data as context, not source of truth.

    line 39
  7. Distinctive:

    If sources conflict, stop and report the conflict before changing files.

    line 56
  8. Distinctive:

    Every implementation task must report files changed, tests or checks run, skipped checks, remaining risks, and docs updated.

    line 60
  9. Distinctive:

    Before claiming implementation work is complete, run:

    line 63

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

Persist OS Claude Instructions

Persist OS is a local-first TypeScript CLI that creates AI-ready engineering memory for software repositories.

Read these first before non-trivial work:

  • docs/00-product/PRODUCT.md
  • docs/00-product/PRODUCT_VISION.md
  • docs/00-product/POSITIONING.md
  • docs/00-product/ROADMAP.md
  • 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/FILE_WRITE_POLICY.md
  • docs/20-security/SECURITY_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

Working Rules

  • Respect the approved milestone scope. Do not add runtime behavior outside the current plan.
  • Treat module work as a mini product workflow: PRD, acceptance, architecture impact, test plan, tasks, implementation, completion report, drift review, then module memory update.
  • Persist OS Core is architecture-neutral. Do not encode architecture or technology choices as core truth.
  • Repository rules override model preferences.
  • Stop if a request conflicts with engineering standards, including requests to commit secrets, hardcode credentials, bypass auth, add dependencies without review, skip migrations, skip tests without reason, or claim completion without evidence.
  • Do not add network calls, telemetry, cloud behavior, AI API calls, runtime MCP, or generated production app code.
  • Never overwrite existing files by default in future implementation work.
  • Treat chat history and MCP data as context, not source of truth.

Source Of Truth

Follow this order:

  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 sources conflict, stop and report the conflict before changing files.

Completion Evidence

Every implementation task must report files changed, tests or checks run, skipped checks, remaining risks, and docs updated.

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.