Letta Code memory: rewriting context and tracking it in git
Answer: Letta Code lets agents rewrite their context, including memory blocks and skills. Its MemFS tracks context in git.
Runtime features
The README describes message search across agents and conversations. The /palace command displays memory. It loads global skills, project-scoped skills and agent-scoped skills stored in MemFS.
Research context
MemGPT manages different memory tiers to extend usable context within a limited context window. The paper evaluates document analysis and multi-session chat.
See also
- ao-memory-short-vs-long-term
- ao-memory-mem0-and-graphiti
- ao-memory-long-term-benchmarks
- ao-memory-mechanisms-survey
Claims
- id: C1 claim: Letta Code tracks context in git. source: S1 evidence: "All context (including memory blocks) is tracked via git."
- id: C2 claim: The README exposes memory through /palace. source: S1 evidence: "view memory with
/palace"
- id: C3 claim: MemGPT uses multiple memory tiers. source: S2 evidence: "a system that intelligently manages different memory tiers"
- id: C4 claim: MemGPT evaluates document analysis and multi-session chat. source: S2 evidence: "and multi-session chat,"
Sources
- [S1] Letta Code README. letta-ai/letta-code (GitHub). https://github.com/letta-ai/letta-code/blob/main/README.md . License: Apache-2.0. Accessed 2026-11-16.
- [S2] MemGPT: Towards LLMs as Operating Systems (arXiv 2310.08560). arXiv. https://arxiv.org/abs/2310.08560 . License: CC BY 4.0. Accessed 2026-11-16.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: letta-ai/letta-code (GitHub), Letta Code README, Apache-2.0 (https://raw.githubusercontent.com/letta-ai/letta-code/main/LICENSE); arXiv, MemGPT: Towards LLMs as Operating Systems (arXiv 2310.08560), CC BY 4.0 (https://arxiv.org/abs/2310.08560 (license link creativecommons.org/licenses/by/4.0/)). Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: letta-ai/letta-code (GitHub), Letta Code README, Apache-2.0 (https://raw.githubusercontent.com/letta-ai/letta-code/main/LICENSE); arXiv, MemGPT: Towards LLMs as Operating Systems (arXiv 2310.08560), CC BY 4.0 (https://arxiv.org/abs/2310.08560 (license link creativecommons.org/licenses/by/4.0/)).
Cite this
iinventedlight. 2026. "Letta Code memory: rewriting context and tracking it in git." iinventedlight Library, iil:note:qnbpx8y5, version of 2026-11-16. https://iinventedlight.com/library/notes/ao-memory-letta-context/. License: CC-BY-4.0.
@misc{iil_note_qnbpx8y5,
author = {{iinventedlight}},
title = {{Letta Code memory: rewriting context and tracking it in git}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-16},
url = {https://iinventedlight.com/library/notes/ao-memory-letta-context/},
note = {Permanent ID iil:note:qnbpx8y5. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- ao-memory-letta-context.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-memory-letta-context.md.