You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Claude Code subagents support memory: user | project | local — a persistent per-agent directory whose MEMORY.md head is injected at startup, letting a specialist accumulate domain knowledge across sessions. Factory's Knowledge Droid is the same idea taken further. mecatl agent defs (.mecatl/agents/*.md) have no memory field; every child starts cold. (docs/harnesses/09-agent-primitives-evaluation.md, field-gap #4.)
Shape
New frontmatter field on AgentDef: memory: user | project (skip local initially), validated like the other fields.
Composition resolves the directory (xdgconfig for user tier; workspace-relative for project tier, trust-gated like other project-tier artifacts) and injects a bounded MEMORY.md excerpt into the def's prompt layer (cache-stable StablePrefix discipline).
Write path: either the existing six memory tools scoped to the agent's directory for that child, or read-only v1 (injection only) with writes deferred — decide in design.
The memory store cross-process locking lesson applies (gofrs/flock) if children write concurrently.
Why
Specialist defs (reviewers, architects) re-derive the same project facts every invocation; this is the highest-leverage cold-start fix for the def ecosystem.
Shipped in 31d716e (on main, CI green): per-agent persistent memory via the memory: frontmatter field (read-only v1). Auto-close was missed because the commit used a bare (#33) reference instead of Closes #33.
Activity
feat(agents): per-agent persistent memory via memory: frontmatter (#33)
JAORMX commentedon Jun 14, 2026
Shipped in 31d716e (on main, CI green): per-agent persistent memory via the
memory:frontmatter field (read-only v1). Auto-close was missed because the commit used a bare(#33)reference instead ofCloses #33.docs(design): sync cloud-native Phase 0 inventory/ledger with post-f1…
docs(usage): make the operator guide user-friendly (#187)