agent-memory-os
Stop agents from "forgetting, mixing projects, and rotting over time" by giving them a practical memory operating system: global memory, project memory, promotion rules, validation cases, and a maintenance loop.
Best use case
agent-memory-os is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Stop agents from "forgetting, mixing projects, and rotting over time" by giving them a practical memory operating system: global memory, project memory, promotion rules, validation cases, and a maintenance loop.
Teams using agent-memory-os should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/agent-memory-os/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How agent-memory-os Compares
| Feature / Agent | agent-memory-os | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Stop agents from "forgetting, mixing projects, and rotting over time" by giving them a practical memory operating system: global memory, project memory, promotion rules, validation cases, and a maintenance loop.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
AI Agent for Product Research
Browse AI agent skills for product research, competitive analysis, customer discovery, and structured product decision support.
SKILL.md Source
# Agent Memory OS **Build an agent that gets more organized over time instead of more chaotic.** Turn an agent's memory from **"a pile of chat history"** into a **long-term working memory operating system**. ## What problem this solves A lot of agents look impressive in short conversations, then collapse under real work: - they forget what matters - active projects pollute long-term memory - useful lessons never become reusable rules - the system looks good for a week, then decays This skill exists to fix that. It helps the agent move from: - "I remember fragments" to: - **"I have a stable global brain, project-specific working brains, reusable lessons, validation logic, and a maintenance loop that keeps the whole system healthy."** ## What makes this different This is not just: - note-taking guidance - a vector-search recipe - a memory dump strategy It is a workflow for building an agent memory **system** with: - separation of concerns - promotion paths for reusable knowledge - validation cases - operational maintenance rules ## Use this skill when The user says or implies things like: - "My agent keeps forgetting" - "Once projects pile up, everything gets messy" - "I want long-term memory for my AI agent" - "I need project memory separated from global memory" - "I want reusable lessons, not just logs" - "I want to share or standardize an agent memory setup" ## Example trigger prompts This skill should feel natural on prompts like: - "Help me design long-term memory for my coding agent." - "My AI assistant keeps mixing projects and forgetting context." - "I need a reusable memory architecture for multi-project agents." - "How do I separate durable agent memory from active project memory?" - "Help me turn chat history into a reusable working-memory system." ## What the user gets By the end of this workflow, the user should have: 1. a memory architecture that separates global and project concerns 2. a minimum project-memory structure 3. routing and promotion rules 4. validation cases to prove the system works 5. a maintenance runbook so it does not decay immediately ## Privacy and publishing rule When using this skill for sharable/public output: - never expose real user names, private IDs, workspace-specific secrets, session paths, internal message IDs, or private document URLs - rewrite examples into generalized patterns - replace personal/project-specific references with neutral placeholders - do not bundle private memories, raw chat excerpts, or personally identifying workflow traces into the skill If the user explicitly wants a public/shareable version, treat **privacy-preserving abstraction** as mandatory, not optional. ## Recommended workflow ### Step 0 — Decide whether to use a full memory system Not every agent needs this full setup. Read `references/architecture-decision-guide.md` when the user is unsure whether they need a full global / project / bridge system, or whether a simpler setup is enough. ### Step 1 — Diagnose the real memory problem Classify the user's issue before proposing architecture. Typical failure modes: - **single-brain overload**: everything is dumped into one place - **project pollution**: local project state contaminates long-term memory - **retrieval confusion**: the agent doesn't know where to look first - **knowledge stagnation**: lessons never graduate into reusable rules - **maintenance decay**: the structure exists but slowly becomes stale Read `references/failure-modes.md` when you need a sharper diagnosis rubric. ### Step 2 — Choose the architecture Default recommendation: a **three-part system** - **global memory** for durable rules, preferences, SOPs, stable principles - **project memory** for local complexity and active work - **bridge/promotions** for candidate → promoted → canonical evolution Read `references/architecture.md` when you need the design rationale. ### Step 3 — Create the minimum working structure For each project, start with 5 files: - `PROJECT.md` - `STATUS.md` - `DECISIONS.md` - `ASSETS.md` - `LESSONS.md` Use the bundled templates in: - `assets/project-templates/` - `assets/bridge-templates/` ### Step 4 — Define routing and promotion rules Make sure the agent knows: - what belongs to global memory - what stays project-local - what becomes a candidate for reuse - what evidence is required before promotion Read: - `references/routing.md` - `references/promotion.md` ### Step 5 — Validate with concrete cases Do not stop at design. Test the system with at least 3 case types: - **continuous project execution** - **interruption and recovery** - **cross-project reuse** Use measurable criteria: recovery accuracy, unnecessary follow-up questions, reuse success, structure completeness, etc. Read `references/validation.md` for a compact validation model. ### Step 6 — Add a maintenance runbook A memory system is not done when designed. It is done when it can be maintained. Define: - when to update daily logs - when to update project status - when to record lessons - when candidates get promoted - when to deprecate outdated rules - how often to review global/project/bridge memory Read `references/maintenance.md` when writing or reviewing the runbook. ## Minimal success path A good first run of this skill usually looks like: 1. identify the dominant failure mode 2. choose the global/project/bridge architecture 3. create the 5 core project files 4. define one promotion rule and one routing rule 5. validate with one interruption-recovery case and one reuse case 6. write a simple maintenance rhythm If the agent can recover better, reuse more, and stay cleaner over time, the system is working. ## Packaging guidance Keep the public skill: - short in SKILL.md - practical in workflow - generalized in examples - private details removed Do **not** include: - personal identifiers - real workspace paths tied to an individual - raw private conversation excerpts - internal-only document links - unredacted project-specific evidence Read `references/publish-checklist.md` before publishing or sharing widely. ## Output style for public-facing use If the user wants something that attracts attention, write with this shape: - start from a painful, recognizable problem - name the failure mode clearly - present the architecture as a relief pattern - show a small, concrete workflow - prove it with validation cases - end with operational simplicity, not abstract theory Make it feel like a **usable system**, not an academic essay.
Related Skills
Agent Memory Architecture
Complete zero-dependency memory system for AI agents — file-based architecture, daily notes, long-term curation, context management, heartbeat integration, and memory hygiene. No APIs, no databases, no external tools. Works with any agent framework.
memory-cache
High-performance temporary storage system using Redis. Supports namespaced keys (mema:*), TTL management, and session context caching. Use for: (1) Saving agent state, (2) Caching API results, (3) Sharing data between sub-agents.
Memory
Infinite organized memory that complements your agent's built-in memory with unlimited categorized storage.
auto-memory
Indestructible agent memory — permanently stored, never lost. Save decisions, identity, and context as a memory chain on the Autonomys Network. Rebuild your full history from a single CID, even after total state loss.
Triple-Layer Memory System
三层记忆系统 - 解决 AI Agent 长对话记忆丢失和上下文管理问题
benos-memory-core
Core runtime/volatile memory module for BenOS agent environment. Use to: store and retrieve active session state, open loops, decisions, and scratch notes at runtime.
elite-longterm-memory
Ultimate AI agent memory system with WAL protocol, vector search, git-notes, and cloud backup. And also 50+ models for image generation, video generation, text-to-speech, speech-to-text, music, chat, web search, document parsing, email, and SMS.
memory-agent
维护用户审美偏好与创作历史,为其他 Agent 提供可复用的风格参考。当开始新任务或用户表达喜好时触发。
bamdra-memory-upgrade-operator
Safely install, uninstall, reinstall, or upgrade the Bamdra OpenClaw memory suite when stale config, existing plugin directories, or partial installs break normal `openclaw plugins install` flows.
hierarchical-memory
Manage and navigate a multi-layered, branch-based memory system. This skill helps organize complex agent context into Root, Domain, and Project layers to prevent context bloat. It includes a helper script `add_branch.py` which creates local markdown files and directories to structure your memory.
agentmemory
End-to-end encrypted cloud memory for AI agents. 100GB free storage. Store memories, files, and secrets securely.
fsxmemory
Structured memory system for AI agents. Context death resilience (checkpoint/recover), structured storage, Obsidian-compatible markdown, and local semantic search.