mcpField
M
memory-manager

memory-manager

github.com/adaptationioAgent workflows47 installs
Repository

About memory-manager

memory-manager is a persistent project memory skill for autonomous coding sessions. It stores several kinds of knowledge, including error-to-solution chains, and retrieves similar past errors.

Key features

  1. 01Persistent project memory
  2. 02Episodic, procedural, semantic, and causal memory
  3. 03Store error-to-solution chains
  4. 04Retrieve solutions to similar errors
  5. 05JSON files under .claude/memory

Use cases

  1. 01Carry project knowledge across coding sessions
  2. 02Reuse a fix for a recurring API error
  3. 03Save session summaries and coding patterns

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/adaptationio/skrillz --skill memory-manager

After installing, type/memory-managerin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
MEMORY-TYPES.md
scripts/
causal_memory.py
memory_manager.py
semantic_store.py

Details

From the project README

Memory Manager

External persistent memory system for maintaining knowledge across autonomous coding sessions.

Quick Start

Store a Memory
from scripts.memory_manager import MemoryManager

memory = MemoryManager(project_dir)
memory.store(
    key="auth_solution",
    value="Added User-Agent header to fix 403",
    memory_type="causal"
)
Store Causal Chain (Error→Solution)
memory.store_causal_chain(
    error="403 Forbidden on API call",
    solution="Add User-Agent header to requests"
)
Retrieve Similar Errors
solutions = memory.get_similar_errors("403 error calling API")
# Returns: [{"error": "403 Forbidden...", "solution": "Add User-Agent..."}]

Memory Types

┌─────────────────────────────────────────────────────────────┐
│                    MEMORY TYPES                              │
├─────────────────────────────────────────────────────────────┤
│                                                              │
│  EPISODIC                                                    │
│  ├─ Past events and outcomes                                │
│  ├─ "Last time we deployed, X happened"                     │
│  └─ Session summaries                                       │
│                                                              │
│  PROCEDURAL                                                  │
│  ├─ Learned skills and patterns                             │
│  ├─ "How to set up database migrations"                     │
│  └─ Working code patterns                                   │
│                                                              │
│  SEMANTIC                                                    │
│  ├─ Factual knowledge about project                         │
│  ├─ "Database uses PostgreSQL"                              │
│  └─ Architecture decisions                                  │
│                                                              │
│  CAUSAL                                                      │
│  ├─ Error → Solution chains                                 │
│  ├─ "403 error → Add User-Agent header"                     │
│  └─ Self-healing patterns                                   │
│                                                              │
└─────────────────────────────────────────────────────────────┘

Storage Location

project/
└── .claude/
    └── memory/
        ├── episodic.json
        ├── procedural.json
        ├── semantic.json
        └── causal.json

Causal Memory Pattern

# Traditional error handling:
# Error occurs → Unclear response

# Causal memory:
# Error: 403 Forbidden
# Memory: [403] → [missing User-Agent] → [added header] → [success]
# Response: "Adding User-Agent header (learned from previous error)"

Integration Points

  • error-recoverer: Uses causal memory for self-healing
  • context-compactor: Stores summaries in episodic memory
  • coding-agent: Stores procedural patterns

References

  • references/MEMORY-TYPES.md - Detailed type documentation
  • references/RETRIEVAL-PATTERNS.md - Search patterns

Scripts

  • scripts/memory_manager.py - Core MemoryManager
  • scripts/semantic_store.py - Keyword-based storage
  • scripts/causal_memory.py - Error→Solution chains
  • scripts/knowledge_base.py - Project knowledge

Comments

Markdown supported