What it is
Letta (formerly MemGPT) builds agents with persistent memory: instead of forgetting everything after each conversation, a Letta agent keeps an identity, memories and skills that it rewrites itself as it learns. It started as MemGPT, a 2023 UC Berkeley research project that treated the LLM's context window like an operating system's memory, and became a company in 2024. In 2026 Letta moved from its original Python API server to Letta Code, an open-source TypeScript agent harness with git-tracked memory, usable from a CLI, the browser, chat apps, or the Letta Agent SDK; the old server was archived in August 2026.
How it works
An agent's context is split into labelled memory blocks (for example, facts about the user and the agent's own persona) that stay in the prompt and that the agent can edit with memory tools. Everything outside the window is searchable history. In Letta Code all context, including memory blocks, is tracked in git (MemFS), and background "sleep-time" or dreaming runs let the agent consolidate what it learned while idle. Agent state can live locally or in Letta Cloud, so the same agent can run across laptops, sandboxes and servers.
Key concepts
- Stateful agent
- An agent whose memory, identity and history persist and evolve across sessions instead of resetting.
- Memory block
- A labelled, size-limited, persisted section of the context window (e.g. "human", "persona") that the agent can rewrite.
- Self-editing memory
- The MemGPT idea that the agent itself decides what to store, update or forget using memory tools.
- Sleep-time compute
- Using idle time to reflect on information and update memory before the next interaction.
- MemFS
- Letta Code's git-tracked store for all agent context, including memory blocks and skills.
Use it when
- You want long-lived assistants or per-user agents that remember and personalize over months.
- You want to study or use the MemGPT approach to memory management in practice.
- You want an always-on agent reachable from CLI, browser, Slack, Telegram or Discord.
Look elsewhere when
- You need the old Python Letta server or REST client for new projects; both are retired or deprecated.
- Your workflow is stateless request/response, where persistent memory adds cost and complexity.
Who uses it
Milestones
- Legacy Letta V1 Python server archived; active source moves to letta-ai/letta-code (github.com)
- "Letta's Next Phase": refocus on Letta Code, a client-side harness, and deprecation of many server-side features (letta.com)
- MemGPT project renamed Letta as the company emerged from stealth with a $10M seed round (techcrunch.com)
- MemGPT paper published by UC Berkeley researchers (arxiv.org)
Start learning
docs.letta.com
github.com
arxiv.org
letta.com