rlpatrao/claude_harness_forge/memory-os
Claude Code and agent skill by rlpatrao/claude_harness_forge
- community
Checking that the SKILL.md file is still in the repository.
Three-tier memory (core / recall / archival) backed by the filesystem. Adopts the MemGPT/Letta pattern using ripgrep + structured markdown — no vector DB in v3.1.11 (that's v3.1.12). Use for cross-session facts, prior-session recall, and self-managed archival notes.
Install
npx vskill@latest install rlpatrao/claude_harness_forge/memory-osSKILL.md
The same SKILL.md was published earlier as rlpatrao/claude_harness_forge/memory-os.
memory-os — Three-tier filesystem memory
Adopts the MemGPT/Letta "memory OS" pattern (core / recall / archival) per BRD v3.1 §4 (v3.1.11). Backed by structured Markdown + ripgrep — no vector DB yet. Vector backend interface at `vector-backend.md` (v3.1.12).
The three tiers
| Tier | Purpose | Behavior | Storage | |
|---|---|---|---|---|
| Core | Always-in-context — like RAM. Agent-writable working blocks. | Read + Write per turn. Merged into system reminder by hooks/session-start.js. | state/memory/core-blocks/*.md | |
| Recall | Searchable prior-session summaries. | Read (on demand). Written by compactor. | state/memory/sessions/*.jsonl | |
| Archival | Long-term notes the agent writes to itself. Searchable. | Read + Write. Grepped via ripgrep + BM25-ish ranking. | state/memory/archival/*.md |
Distinct from what already exists
- `learnings/` (v2, cross-project) = human-curated stack decisions, failure patterns. Different scope: cross-project. Memory-OS is within-project.
- `instincts/` (v3.0, 3-tier promotion) = derived rules extracted from failures. Memory-OS is raw — the agent's own notes, not distilled patterns.
- `harness-progress.txt` = append-only cross-session bridge. Memory-OS augments this with block-structured RAM + searchable archives.
Tools (invoked via Bash)
Core memory
Block names: [a-z][a-z0-9-]*. Common blocks: current-goal, open-questions, known-users, decisions-this-week, never-forget-this.
Core-memory content is loaded into every SessionStart system reminder (via `hooks/session-start.js`) up to a size cap — anything past 4KB per block is truncated with a […] marker.
Recall memory
recall-search.js greps state/memory/sessions/*.jsonl (post-compaction summaries written by agents/compactor.md — v3.0 §4.3). Each JSONL line is a summarized turn or session-end note. Ranking is TF-IDF-ish over term overlap.
Archival memory
Archival notes are written by the agent (proactively — "I'll remember this for later") or by hooks. They persist across sessions and land under state/memory/archival/<slug>.md.
When to use each
| Situation | Use | |
|---|---|---|
| Fact you'll need next turn | Core memory (current-goal block) | |
| "What did we decide 3 sessions ago?" | Recall memory (search prior sessions) | |
| "Remind me why we chose X" (weeks-old) | Archival memory (write it once, search later) | |
| Cross-project pattern | learnings/ (not memory-OS) | |
| Failure-derived rule | instincts/pending/ (not memory-OS) |
SessionStart integration
hooks/session-start.js (extended for v3.1.11) reads state/memory/core-blocks/*.md and appends a "Core memory" section to the SessionStart system reminder — so the agent starts every session with its working blocks already in context.
Gate
- [ ] All three tier directories exist under
state/memory/ - [ ] Any core block referenced by another block exists
- [ ] Archival slug follows
YYYY-MM-DD-<kebab-title>convention (script enforces this) - [ ] recall/archival search never returns raw content — always digest with
path#Lncitations
Not covered in v3.1.11
- Vector search — deferred to v3.1.12 (
archival_searchbackend swap to Mem0/Letta MCP) - Automatic promotion of archival → instinct — deferred
- Cross-project memory — memory-OS is per-project;
learnings/covers cross-project - Session-history exported as recall — this depends on the compactor writing
state/memory/sessions/*.jsonl, which is a v3.0 flow not yet wired to memory-OS. v3.1.11 provides the SEARCH interface; the WRITE path from compactor is a separate task (added to feature_list.json)
Ownership
- Core memory: agent + human. Both can read/write.
- Recall memory: compactor writes, agent reads.
- Archival memory: agent writes for itself, agent reads.
References
- Letta (formerly MemGPT) walkthrough: https://sureprompts.com/blog/letta-memgpt-walkthrough
- Mem0 architecture: https://vectorize.io/articles/mem0-vs-letta
- 2026 vendor landscape: https://agentmarketcap.ai/blog/2026/04/10/agent-memory-vendor-landscape-2026-letta-zep-mem0-langmem
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/memory-os/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rlpatrao/claude_harness_forge/memory-os)