{"skill":{"slug":"memory-hygiene","displayName":"Memory Hygiene","summary":"Audit, clean, and optimize Clawdbot's vector memory (LanceDB). Use when memory is bloated with junk, token usage is high from irrelevant auto-recalls, or setting up memory maintenance automation.","description":"---\nname: memory-hygiene\ndescription: Audit, clean, and optimize Clawdbot's vector memory (LanceDB). Use when memory is bloated with junk, token usage is high from irrelevant auto-recalls, or setting up memory maintenance automation.\nhomepage: https://github.com/xdylanbaker/memory-hygiene\n---\n\n# Memory Hygiene\n\nKeep vector memory lean. Prevent token waste from junk memories.\n\n## Quick Commands\n\n**Audit:** Check what's in memory\n```\nmemory_recall query=\"*\" limit=50\n```\n\n**Wipe:** Clear all vector memory\n```bash\nrm -rf ~/.clawdbot/memory/lancedb/\n```\nThen restart gateway: `clawdbot gateway restart`\n\n**Reseed:** After wipe, store key facts from MEMORY.md\n```\nmemory_store text=\"<fact>\" category=\"preference|fact|decision\" importance=0.9\n```\n\n## Config: Disable Auto-Capture\n\nThe main source of junk is `autoCapture: true`. Disable it:\n\n```json\n{\n  \"plugins\": {\n    \"entries\": {\n      \"memory-lancedb\": {\n        \"config\": {\n          \"autoCapture\": false,\n          \"autoRecall\": true\n        }\n      }\n    }\n  }\n}\n```\n\nUse `gateway action=config.patch` to apply.\n\n## What to Store (Intentionally)\n\n✅ Store:\n- User preferences (tools, workflows, communication style)\n- Key decisions (project choices, architecture)\n- Important facts (accounts, credentials locations, contacts)\n- Lessons learned\n\n❌ Never store:\n- Heartbeat status (\"HEARTBEAT_OK\", \"No new messages\")\n- Transient info (current time, temp states)\n- Raw message logs (already in files)\n- OAuth URLs or tokens\n\n## Monthly Maintenance Cron\n\nSet up a monthly wipe + reseed:\n\n```\ncron action=add job={\n  \"name\": \"memory-maintenance\",\n  \"schedule\": \"0 4 1 * *\",\n  \"text\": \"Monthly memory maintenance: 1) Wipe ~/.clawdbot/memory/lancedb/ 2) Parse MEMORY.md 3) Store key facts to fresh LanceDB 4) Report completion\"\n}\n```\n\n## Storage Guidelines\n\nWhen using memory_store:\n- Keep text concise (<100 words)\n- Use appropriate category\n- Set importance 0.7-1.0 for valuable info\n- One concept per memory entry\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":25243,"installsAllTime":841,"installsCurrent":249,"stars":19,"versions":1},"createdAt":1769621830815,"updatedAt":1778987302585},"latestVersion":{"version":"1.0.0","createdAt":1769621830815,"changelog":"Version 1.0.0 – Initial Release\n\n- Introduces memory-hygiene for auditing, cleaning, and optimizing Clawdbot's vector memory (LanceDB).\n- Provides quick commands for memory audit, wipe, and reseed.\n- Details configuration for disabling auto-capture to prevent junk memories.\n- Lists guidelines on what types of information to store or avoid storing in memory.\n- Includes instructions for setting up monthly automated maintenance.","license":null},"metadata":null,"owner":{"handle":"dylanbaker24","userId":"s1790ahdsrwjxt9yf6dcagjqz188556t","displayName":"dylanbaker24","image":"https://avatars.githubusercontent.com/u/208568310?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1779917327213}}