letta-code — memory lifecycle: writers → git → prompt

letta-code — memory lifecycle: writers → git → prompt A data-flow diagram generated by Archify. 01 / Writers 02 / Write gates 03 / MemFS state 04 / Compile 05 / Context Primary agent · Edit + git commit · 01 / Writers Primary agent Edit + git commit Memory worker · background sub-agent · 01 / Writers Memory worker background sub-agent Reflection · reads transcript slice · 01 / Writers Reflection reads transcript slice Pre-commit hook · frontmatter · limits · 02 / Write gates Pre-commit hook frontmatter · limits Private worktree · merged under lock · 02 / Write gates Private worktree merged under lock memory/ (main) · git HEAD · 03 / MemFS state memory/ (main) git HEAD Letta Cloud git · push after turn · 03 / MemFS state Letta Cloud git push after turn Compiled prompt · core files + index · 04 / Compile Compiled prompt core files + index <memory_update> · next call only · 04 / Compile <memory_update> next call only Model · system + messages · 05 / Context Model system + messages git commit valid commit edit + commit edit + commit merge cloud mode HEAD new revision system once Legend primary data conditional (cloud mode / one call) data store data flow