← ClaudeAtlas

os-memory-managerlisted

Trigger with "remember this", "update memory", "what should we record from this session", "capture learnings", "write a session log", or when closing a session. Guides agents on managing memory hygiene across sessions, deciding what to write to dated memory logs, what to promote to long-term memory.md, and when to archive. <example> User: I'm done for the day, can you write up a session log? Agent: <Bash> python context/kernel.py emit_event --agent os-memory-manager --type intent --action promote_memory python context/kernel.py state_update active_agent os-memory-manager </Bash> </example> <example> User: That's all, logging off now. Agent: <Bash> python context/kernel.py acquire_lock memory </Bash> </example> <example> User: How does the memory system work? Agent: <Read> ./references/architecture/context-folder-patterns.md </Read> </example>
richfrem/agent-plugins-skills · ★ 3 · AI & Automation · score 67
Install: claude install-skill richfrem/agent-plugins-skills
## Prerequisites This skill requires the **Agentic OS to be initialized first**. It calls `context/kernel.py`, `context/memory.md`, and `context/.locks/` — files that only exist after running the `os-init` skill in your project. If you have not yet initialized the OS, run: ``` os-init ``` --- ## Dependencies This skill requires **Python 3.8+** and standard library only. No external packages needed. **To install this skill's dependencies:** ```bash pip-compile ./requirements.in pip install -r ./requirements.txt ``` See `./requirements.txt` for the dependency lockfile (currently empty — standard library only). --- # Session Memory Manager Manages the three tiers of agent memory in an Agentic OS environment. ## Memory Tiers | Tier | File | Written By | When Loaded | |------|------|-----------|-------------| | Auto-memory | `MEMORY.md` | Claude automatically | Every session (Anthropic native) | | Long-term facts | `context/memory.md` | You (curated) | @imported in CLAUDE.md | | Session logs | `context/memory/YYYY-MM-DD.md` | Agent at session close | On demand | ## Execution Flow Execute these phases in order. Do not skip phases. ### Phase 0: Intent Emission (Event Bus) Before taking any actions, you MUST publish your intent to the Event Bus. Use the `Bash` tool to run: `python context/kernel.py emit_event --agent os-memory-manager --type intent --action promote_memory` ### Phase 1: Acquire OS State and Lock 1. **Update OS State**: Run `python context/kernel.py s