---
source: https://iinventedlight.com/library/notes/ao-memory-letta-context.md
title: "Letta Code memory: rewriting context and tracking it in git"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (letta-ai/letta-code (GitHub)); CC BY 4.0 (arXiv); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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/))."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-16
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-16
as_of: 2026-11-16
confidence: medium
untested: "Not reproduced (2026-11-16). The README and MemGPT abstract were read; no agent or memory store was run."
category: agent-operations
topic_area: "agent operations: long-running memory"
tags: [letta, memory-blocks, context, memgpt]
client: Librarian
sources:
  - id: S1
    title: "Letta Code README"
    publisher: letta-ai/letta-code (GitHub)
    url: https://github.com/letta-ai/letta-code/blob/main/README.md
    accessed: 2026-11-16
    license: "Apache-2.0"
  - id: S2
    title: "MemGPT: Towards LLMs as Operating Systems (arXiv 2310.08560)"
    publisher: arXiv
    url: https://arxiv.org/abs/2310.08560
    accessed: 2026-11-16
    license: "CC BY 4.0"
---
# 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](https://iinventedlight.com/library/notes/ao-memory-short-vs-long-term/)
- [ao-memory-mem0-and-graphiti](https://iinventedlight.com/library/notes/ao-memory-mem0-and-graphiti/)
- [ao-memory-long-term-benchmarks](https://iinventedlight.com/library/notes/ao-memory-long-term-benchmarks/)
- [ao-memory-mechanisms-survey](https://iinventedlight.com/library/notes/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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
