Skip to content

v2.1: Living Memory Files — agents that propose diffs to your CLAUDE.md / memory files #741

Closed

Description

@AmitoVrito

Summary

Memory files today are write-only-by-humans. Make them bidirectional: a MemoryWriter agent observes sessions and proposes signed, reviewable diffs to CLAUDE.md / memory/*.md.

Fits the framework

Design

from synapsekit.memory import LivingMemory, MemoryPatch

mem = LivingMemory(
    paths=[\"./CLAUDE.md\", \"./memory/*.md\"],
    proposer=ReasoningLLM.claude_thinking(),
    require_approval=True,
    sign=True,
)

# After a session
patches: list[MemoryPatch] = await mem.propose_from_session(session_id)
# Each patch: file, before/after, rationale, evidence (linked trace records)

# Review like a PR
mem.review(patches[0])  # opens in $EDITOR with diff + rationale
mem.apply(patches[0])   # signed commit to memory file

Components

  • LivingMemory orchestrator
  • MemoryPatch — file, diff, rationale, evidence refs, signature
  • MemoryReviewer CLI: synapsekit memory review
  • Conflict resolution: human edits vs agent proposals
  • Categorization: routes new facts to the right file (user_*, feedback_*, project_*)
  • Forking: project memory / user memory / team memory with merge semantics

Triggers

  • "You corrected me 3 times about X — should I record it?"
  • "You consistently chose pattern Y — adding as preference?"
  • "This decision was made in conversation but isn't in memory — capture?"

Risks

  • Memory pollution from one-off corrections → require N occurrences before proposal
  • Privacy: don't write secrets observed in sessions → PII filter mandatory
  • Drift: stale memories never get pruned → garbage collector with explainable retention scores

Acceptance

Activity

  1. added this to the v2.1.0 milestone on Jun 25, 2026
  2. added
    enhancement
    agents
    v2.1
    on Jun 25, 2026
  3. added a commit that references this issue on Jul 14, 2026
  4. AmitoVrito commented on Jul 14, 2026

    @AmitoVrito
    CollaboratorAuthor

    Thanks Dhruv, the Living Memory system is in and merged. Appreciate the clean patch/diff design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentsenhancementv2.1

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions