Skip to content

v1.2.0 — The Memory Activation Release

MeowKit's memory system was designed in v1.0.0 but never activated — zero sessions captured. This release fixes the capture pipeline, enriches the schema with insights from 6 external frameworks, and adds consolidation tooling for when memory reaches scale.

The Problem

MeowKit's memory files have been empty since launch:

lessons.md:     Header template only
patterns.json:  { "patterns": [], "sessions_captured": 0 }
decisions.md:   Empty placeholder

Root cause: The post-session.sh Stop hook fires at session end but writes an HTML comment placeholder. No agent is alive during the hook to extract actual learnings. The placeholder is invisible to future sessions.

What Changed

Fixed Session Capture Pipeline

The capture pipeline now uses a retroactive capture pattern:

  1. Stop hook writes structured markers (timestamp + file count) instead of HTML comments
  2. Phase 0 retroactive capture processes pending markers (max 3, 2-min budget)
  3. Phase 5 live capture preserves WHY decisions were made (retroactive can only recover WHAT)

Enriched Learning Format

Learnings are now captured in 3 categories (inspired by Khuym compounding):

CategoryWhat Gets Captured
PatternsReusable approaches, code patterns, architecture decisions
DecisionsChoices with rationale, tagged as GOOD_CALL / BAD_CALL / SURPRISE / TRADEOFF
FailuresMistakes with root cause analysis and prevention rules

Enriched patterns.json Schema

Three new optional fields (backward compatible):

json
{
  "id": "always-validate-dto",
  "type": "success",
  "category": "pattern",           // NEW: pattern | decision | failure
  "severity": "critical",          // NEW: critical | standard
  "applicable_when": "Creating any API endpoint that accepts user input",  // NEW
  "scope": "packages/api",
  "context": "NestJS endpoint development",
  "pattern": "Always create a DTO with class-validator decorators",
  "frequency": 5,
  "lastSeen": "2026-03-25"
}

Existing entries without new fields remain valid. Missing severity defaults to "standard".

Stronger Promotion Criteria

Patterns are now promoted to CLAUDE.md when ALL criteria are met:

CriterionBefore (v1.1.0)After (v1.2.0)
Frequency≥ 3≥ 3
SeverityMust be critical OR frequency ≥ 5
GeneralizableMust apply beyond one feature
Time savingsMust save ≥ 30 min if known in advance
Human approvalRequiredRequired (unchanged)

Consolidation Rubric

New consolidation.md reference with a 4-branch classification system (inspired by Khuym dream):

ClassificationConditionAction
Clear matchOne existing entry owns the lessonAuto-merge
AmbiguousMultiple plausible ownersAsk user to choose
No matchNew durable lessonCreate new entry
No durable signalTransient or noiseSkip

Invoke manually when memory reaches thresholds: 20+ sessions, 50+ patterns, 500+ cost entries.

Comprehensive Documentation

New docs/memory-system.md covers: architecture, activation, session capture, pattern promotion, consolidation, schema reference, FAQ, limitations, and migration.

Cross-Framework Research

Six frameworks were analyzed for memory-related features:

FrameworkRelevanceKey Takeaway
KhuymHighestCategory split, consolidation rubric, promotion criteria
GSDModerateSession persistence patterns (HANDOFF.json, STATE.md)
CKEModerateL1-L5 layered memory architecture (L3-L5 deferred)
SuperpowersLowStateless by design — no memory
gstackLowObservability only, no agent learning
BMADLowArtifact-driven state, no consolidation

What's Deferred (v1.3+)

FeatureWhy Deferred
meow:dream background consolidationMemory empty — nothing to consolidate yet
Git-as-memory-log (CKE pattern)Useful for skill refinement loops, not urgent
L3-L5 layered memory (vector DB)Only justified at 1000+ memories
Automatic cross-machine syncComplexity not justified

Updated Flow Diagram

Files Changed

FileChange
session-capture.md3-category extraction + enriched schema
pattern-extraction.mdStronger promotion criteria
consolidation.mdNEW — Khuym-style rubric
SKILL.md (memory)Updated references + schema notes
post-session.shStructured NEEDS_CAPTURE markers
CLAUDE.mdPhase 0 retroactive + Phase 5 live capture
auto-dream-reference.mdDeferred to v1.3+
docs/memory-system.mdNEW — comprehensive guide

Released under the MIT License.