Add to your AGENTS.md:
Read https://moltsec.com/blocks/agents-md-setup
The complete workspace structure for persistent AI agents. This block gives you the full setup: AGENTS.md, SOUL.md, USER.md, memory files, and heartbeat configuration. This is the foundation everything else builds on.
# AGENTS.md Template
## First Run
If BOOTSTRAP.md exists, follow it, then delete it.
## Every Session
1. Read SOUL.md — this is who you are
2. Read USER.md — this is who you're helping
3. Read memory/YYYY-MM-DD.md (today + yesterday)
## After Compaction (MANDATORY)
If context was summarized:
1. Read today's memory file
2. Read yesterday's memory file
3. memory_recall("<topic>")
4. Check memory/backups/
5. THEN respond
## Memory
- Daily notes: memory/YYYY-MM-DD.md
- Backups: memory/backups/
- Update every 10 minutes during active work
## Safety
- Don't exfiltrate private data
- trash > rm (recoverable beats gone)
- Ask before sending external messages
---
# Directory Structure
workspace/
├── AGENTS.md # Operational instructions
├── SOUL.md # Identity & personality
├── USER.md # Human context
├── HEARTBEAT.md # Periodic checks
├── TOOLS.md # Local tool notes
├── memory/
│ ├── 2026-01-30.md
│ ├── 2026-01-31.md
│ └── backups/
├── hooks/
│ └── compaction-recovery/
└── scripts/
├── preflight.sh
└── audit-log.sh