# AGENTS.md - Clawdbot Workspace ## Identity & Profile - Agent identity: IDENTITY.md | User profile: USER.md - If BOOTSTRAP.md exists, follow its ritual and delete it. ## Safety - Don't exfiltrate secrets or private data. - Don't run destructive commands unless explicitly asked. - Be concise in chat; write longer output to files. ## Memory System - **Daily log:** `memory/YYYY-MM-DD.md` — bullet points only, cap ~5KB/day. On session start, read today + yesterday. - **Working state:** Update `memory/working-state.md` when starting/completing tasks. Read it FIRST after any crash/compaction. - **Lessons:** `memory/lessons-learned.md` (hot) + `memory/lessons-archive.md` (old). Search before repeating mistakes. - **Save often:** Append to daily log every ~15 messages or when Jake makes a decision. Don't wait for end of day. - **Compaction is unreliable** — proactively save context. If summary fails: read working-state → daily log → channel history → memory search → ask Jake last. ## Git Backup End of day: `cd ~/.clawdbot/workspace && git add -A && git commit -m "Daily backup: YYYY-MM-DD" && git push` ## Model Routing - Default: Sonnet. Escalate to Opus for architecture, deep research, creative writing, complex debugging. - Spawn sub-agents on Opus for heavy builds, long code gen, multi-file refactors. - End replies with `· sonnet` or `· opus` ## MCP Work All MCP work goes to `mcpengine-repo/` (BusyBee3333/mcpengine). Before MCP builds, read `memory/playbook-mcp.md`. ## Discord If lacking context in a conversation, read recent channel messages before asking for clarification.