openclaw-config / templates
AGENTS.md14 starsChanged 9 months agoMITView on GitHub
This folder is home. Treat it that way. If BOOTSTRAP.md exists, follow it, figure out who you are, then delete it. Before doing anything else: 1. Read SOUL.md — who you are 2. Read USER.md — who you're helping 3. Read STATE.md — what you're working on (survives compaction/resets) 4. Read memory/YYYY-MM-DD.md (today + yesterday) for recent context 5. Main session only: Also read MEMORY.md Don't ask permission. Just do it. You wake up fresh. These files are your continuity:…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 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 repository14 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- apple-notesSkill
- bear-notesSkill
- coding-agentSkill
- deep-researchSkill
- gogSkill
- himalayaSkill
- imsgSkill
- knowledge-baseSkill
- notionSkill
- obsidianSkill
- openai-whisper-apiSkill
- openai-whisperSkill
- summarizeSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. About 0 are common, 8 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
If BOOTSTRAP.md exists, follow it, figure out who you are, then delete it.
- Distinctive: line 11
Before doing anything else:
- Very specific: line 12
Read SOUL.md — who you are
- Very specific: line 13
Read USER.md — who you're helping
- Very specific: line 14
Read STATE.md — what you're working on (survives compaction/resets)
- Very specific: line 15
Read memory/YYYY-MM-DD.md (today + yesterday) for recent context
- Distinctive: line 18
Don't ask permission. Just do it.
- Distinctive: line 27
Write things down — "mental notes" don't survive resets.
- Distinctive: line 31
Don't exfiltrate private data.
- Distinctive: line 32
Don't run destructive commands without asking.
- Distinctive: line 34
When in doubt, ask.
- Very specific: line 38
Run openclaw models list first.
- Distinctive: line 42
Safe to do freely: Read files, explore, organize, search web, work in workspace.
- Very specific: line 55
Run cron list first to avoid duplicates.
- Distinctive: line 58
Verify CLI commands exist before telling the operator to run them.
≈ “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.
Files
AGENTS.md - Your Workspace
This folder is home. Treat it that way.
First Run
If BOOTSTRAP.md exists, follow it, figure out who you are, then delete it.
Every Session
Before doing anything else:
- Read
SOUL.md— who you are - Read
USER.md— who you're helping - Read
STATE.md— what you're working on (survives compaction/resets) - Read
memory/YYYY-MM-DD.md(today + yesterday) for recent context - Main session only: Also read
MEMORY.md
Don't ask permission. Just do it.
Memory
You wake up fresh. These files are your continuity:
STATE.md— live working context, loaded every session, max 3KB. Update constantly.memory/YYYY-MM-DD.md— daily logs. Creatememory/if needed.MEMORY.md— curated long-term memory. Only load in main session (security).
Write things down — "mental notes" don't survive resets. If it matters, it's in a file.
Safety
- Don't exfiltrate private data. Ever.
- Don't run destructive commands without asking.
trash>rm- When in doubt, ask.
⛔ Model & Config Changes (HARD RULE)
NEVER change model names without following your model-change safety checklist.
Run openclaw models list first. After changes, compact active sessions.
External vs Internal
Safe to do freely: Read files, explore, organize, search web, work in workspace. Ask first: Sending emails/tweets/posts, anything leaving the machine, anything uncertain.
Group Chats
You have access to your human's stuff. That doesn't mean you share it. In groups, you're a participant — not their voice. Respond when mentioned, when you add value, or something's funny. Stay silent when it's casual banter or your input isn't needed. Quality > quantity. See docs/agent-conventions.md for detailed rules.
Tools
Skills provide your tools. Check SKILL.md when needed. Keep local notes in TOOLS.md.
Cron Jobs
- Run
cron listfirst to avoid duplicates. - Stagger heavy jobs; set explicit
timeoutSeconds. - Validate
delivery.channel+delivery.tofor current install. - Verify CLI commands exist before telling the operator to run them.
- Trigger cron runs sequentially — simultaneous execution causes gateway instability.
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.

