agentleFS
desertcachedesertcache/agent-os/templates/CLAUDE.md

agent-os / templates

CLAUDE.md0 starsChanged 9 months agoMITView on GitHub

When I mention these topics, automatically use the corresponding capability without asking. Recognize these implicit workload indicators: Vault location: <!-- VAULT_PATH from agent-os.config.json --> This vault is Claude's persistent memory across sessions. Use direct file access (Read, Write, Edit, Glob, Grep). At Session Start: 1. Check Sessions/ for recent handoff notes relevant to current work 2. Read Projects/<name>/README.md for context 3. Consult BRAIN.md if unsure how to use the vault During Work: - Document important decisions, findings, and context as…

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When I mention these topics, automatically use the corresponding capability without asking.

    line 5
  2. Very specific:

    Error self-correction: After 3+ same-type tool errors in a session, proactively add the pattern to error-patterns.md (don't wait for /retro)

    line 42
  3. Distinctive:

    Context-drift detection: If MEMORY.md or vault info contradicts what you see in the current codebase, flag it to the user immediately

    line 43
  4. Very specific:

    Post-work reflection nudge: After substantial work (multiple file changes, debugging sessions, or new features), suggest /retro once per …

    line 44
  5. Very specific:

    Check Sessions/ for recent handoff notes relevant to current work

    line 63
  6. Very specific:

    Read Projects/<name>/README.md for context

    line 64
  7. Distinctive:

    Document important decisions, findings, and context as you go

    line 68
  8. Distinctive:

    Update project README with any significant changes

    line 71
  9. Very specific:

    Create Sessions/YYYY-MM-DD-topic.md for work-in-progress handoffs

    line 72
  10. Distinctive:

    Update MEMORY.md with any new environment facts or tool discoveries

    line 73

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

Agent OS — Claude Code Configuration

AUTO-DISPATCH RULES

When I mention these topics, automatically use the corresponding capability without asking.

Session & Project Management

I mention...Auto-invoke
Session start, catch me up, where were we/session-start
Session handoff, pause work, save context/session-handoff
Cleanup, wrap up, end session/session-cleanup
Retro, reflect, what did we learn/retro
Project status, where are we, what's blocked/project-status
Audit instructions, check rules/audit-instructions
Index codebase, map codebase/index-codebase
Red team this, challenge this, poke holes/red-team
Meeting notes, process meeting, action items/meeting-notes

Knowledge & Memory

I mention...Auto-use
Remember this, save for laterWrite to vault or memory files
What do you know about, recallRead from vault + memory files
<!-- Add your own auto-dispatch rules here. Examples: | I mention... | Auto-use | |--------------|----------| | Calendar, schedule, meeting | `gcalcli` via Bash | | GitHub repo, PR, issues | `gh` CLI via Bash | | Library docs, latest docs | Context7 MCP | -->

BEHAVIOR PREFERENCES

  1. Auto-invoke skills — Don't ask "would you like me to use X?" — just use the right tool
  2. Use CLIs directly — When a CLI tool can do the job, use it immediately
  3. Combine capabilities — Use multiple tools together for complex tasks

SELF-IMPROVEMENT RULES

  1. Error self-correction: After 3+ same-type tool errors in a session, proactively add the pattern to error-patterns.md (don't wait for /retro)
  2. Context-drift detection: If MEMORY.md or vault info contradicts what you see in the current codebase, flag it to the user immediately
  3. Post-work reflection nudge: After substantial work (multiple file changes, debugging sessions, or new features), suggest /retro once per session

TASK INTENSITY SIGNALS

Recognize these implicit workload indicators:

Signal WordsIntensityResponse Style
"quick check", "glance", "wrap up"LightFast, minimal output
"review", "status", "sync"MediumThorough but focused
"deep dive", "investigate", "audit"HeavyComprehensive analysis

VAULT (Agent Memory)

Vault location: <!-- VAULT_PATH from agent-os.config.json -->

This vault is Claude's persistent memory across sessions. Use direct file access (Read, Write, Edit, Glob, Grep).

At Session Start:

  1. Check Sessions/ for recent handoff notes relevant to current work
  2. Read Projects/<name>/README.md for context
  3. Consult BRAIN.md if unsure how to use the vault

During Work:

  • Document important decisions, findings, and context as you go

At Session End:

  1. Update project README with any significant changes
  2. Create Sessions/YYYY-MM-DD-topic.md for work-in-progress handoffs
  3. Update MEMORY.md with any new environment facts or tool discoveries

PROJECT-CODEBASE MAPPING

<!-- Add your projects here. This table maps vault folders to codebase paths. --><!-- The session-context-preloader hook uses agent-os.config.json for the same mapping. -->
Vault FolderCodebase
Projects/example-app//path/to/example-app/

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.