Skip to content
Back to skills

Os Memory Manager

ASecurity

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.

  • 7 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
ai-agentspythonbash

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned October 3, 2026

npx -y skills add richfrem/agent-plugins-skills --skill os-memory-manager --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Os Memory Manager?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Os Memory Manager
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-os-memory-manager/badge)](https://www.skillsdirectory.com/skills/richfrem-os-memory-manager)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: os-memory-manager
plugin: agent-agentic-os
description: >
  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.
allowed-tools: Bash, Read, Write
---

# Session Memory Manager (`os-memory-manager`)

Manages the three tiers of agent memory in an Agentic OS environment: Auto-memory (`MEMORY.md`), Long-term facts (`context/memory.md`), and Session logs (`context/memory/YYYY-MM-DD.md`).

## Contents

- [Critical Constraints](#critical-constraints)
- [Quick start](#quick-start)
- [Workflow](#workflow)
- [Verification](#verification)
- [References](#references)

## Critical Constraints

1. **Conflict Resolution**: Never overwrite `context/memory.md` with conflicting facts without prompt and resolution.
2. **Enduring Facts Only**: Do not promote ephemeral error messages, test noise, or single-use bash commands.
3. **Lock Release**: Always release `memory` lock upon completion or error recovery.

## Quick start

Check current memory file size and status:

```bash
wc -c context/memory.md
```

## Workflow

1. **Acquire Lock**: Acquire `memory` lock via `kernel.py`:
   ```bash
   python3 scripts/kernel.py acquire_lock memory
   ```
2. **Record Session Log**: Write dated session summary to `context/memory/YYYY-MM-DD.md`.
3. **Promote Long-Term Facts**: Append vetted architectural decisions to `context/memory.md` with conflict checks.
4. **Enforce Size Limits**: If `context/memory.md` exceeds 50,000 bytes, prune or archive oldest entries to `context/memory/archive/`.
5. **Release Lock**:
   ```bash
   python3 scripts/kernel.py release_lock memory
   ```

## Verification

Confirm memory update is persisted and lock is released:

```bash
python3 scripts/kernel.py state_read
```

## References

- [detailed-reference.md](references/detailed-reference.md) — Tiered memory architectures and promotion protocols.
- [acceptance-criteria.md](references/acceptance-criteria.md) — Acceptance criteria for memory promotions.
- [fallback-tree.md](references/fallback-tree.md) — Recovery procedures when locks fail or collisions occur.

Files in this skill

  • SKILL.md10.3 KB
  • acceptance-criteria.md1.6 KB
  • evals/evals.json1.7 KB
  • evals/results.tsv60 B
  • kernel.py28 B
  • references/acceptance-criteria.md42 B
  • references/architecture.md35 B
  • references/architecture/claude-md-hierarchy.md58 B
  • references/architecture/context-folder-patterns.md62 B
  • references/memory-promotion-guide.md45 B
  • references/memory/post_run_survey.md48 B
  • requirements.txt22 B
  • scripts/kernel.py26 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…