Memory Diff (Git-Backed)
Git-backed change tracking for memory. Every sync is committed to a snapshot ledger, so the agent can ask "what changed since I last looked?"
It's a git repository
Memory-diff concept
Git primitive
The snapshot model
mem_tree_chunks (authoritative)
|
| sync finishes for source A
v
take_snapshot(A) items grouped, one blob per item
|
v
ββββββββββββββββββββββββββββββββββββββββββββββββ
β commit_snapshot β
β β
β root tree = parent tree β
β βββ src_A/ β rebuilt from new items β
β βββ src_B/ β carried forward unchanged β
β βββ src_C/ β carried forward unchanged β
β β
β message trailers: Source-Id, Trigger, β¦ β
βββββββββββββββββββββββββ¬ββββββββββββββββββββββββ
v
HEAD ββΊ commit (= snapshot id / SHA)What the agent uses it for
Param
Effect
Checkpoints and cross-source diffs
Why this matters to you
See also
Last updated