Letta (formerly MemGPT) agent harness for stateful agents that learn from experience, with terminal, desktop and web apps.
Letta (formerly MemGPT) agent harness for stateful agents that learn from experience, with terminal, desktop and web apps.
Letta Code
Letta Code is a stateful agent harness for creating agents that are more like people than tools. Letta Code agents have memory, identity, and a sense of experience over time. They learn and evolve over long horizons through rewriting their own memory, skills, prompts, and even the harness itself (through mods).
Letta Code can be used interactively, or to power always-on agents that work proactively. Interact with agents through:
• A local CLI
• Your browser, including mobile, at chat.letta.com
• Messaging integrations, including Telegram, Slack, Discord, and custom channels
TIP:
Letta Code agents are designed to be self-configuring. If you want to configure something (e.g. skills, behavior, hooks, permissions), try asking your agent to do it for you.
| Feature | Description |
| Self-improvement & Learning | Agents programmatically rewrite their context to improve and adapt over time, including system prompt learning (through memory blocks) and skill learning. Configure periodic dreaming with /sleeptime, investigate agent behavior with /doctor [symptom], and view memory with /palace |
| Message search | Search across all messages and agents with /search. Agent can also search their own conversations or the conversations of other agents |
| MemFS | All context (including memory blocks) is tracked via git. Sync context to a custom GitHub repository by setting /memory-repository set git@github.com:... |
| Skills | Loads global skills (~/.letta), project-scoped skills (.agents/skills), and agent-scoped skills (stored in MemFS). View skills with /skills and create with /skill-creator |
| Subagents & Multi-agent | Call built-in subagents (general-purpose, forked, recall) in the background. Agents can call any other agent (including themselves) as subagents |
| Messaging Integrations | Chat with the same agent from Slack, Telegram, your browser (chat.letta.com) including mobile, and through custom channels |
| Hooks | Run custom scripts at key points of agent execution to automate workflows |
| Permissions | Set permission modes and customize what actions are auto-approved or auto-denied |
| Crons & Schedules | Configure heartbeats and crons, and let agents work across time with self-managed schedules |
| Remote computers (requires signing in with Letta) | Agents work across multiple computers. Connect any machine by running letta server --computer-name "..." |
| Secrets (requires signing in with Letta) | Make secrets available as environment variables (across machines) while obfuscating their values from context |
Automatic client-side dreaming is disabled by default on native Windows, including when saved /sleeptime settings enable it. Manual /dream and /reflect commands remain available. To opt in, set LETTA_ENABLE_WINDOWS_AUTO_REFLECTION=1 in the environment of the Letta Code process. This does not affect macOS, Linux (including WSL), or server-side dreaming.
See the full list of slash commands in our documentation.
Install the package via npm:
npm install -g @letta-ai/letta-code
Alternatively, install with uv or pipx (Node.js is bundled):
uv tool install letta
pipx install letta …
Agent framework · Agent frameworks / Stateful agents · Open Source · Apache-2.0 · TypeScript
Website https://www.letta.com/agent · Repo https://github.com/letta-ai/letta-code
3,820 stars · 473 forks · 346 open issues · pushed 2026-11-12 · verified 2026-11-12
Tags: ai-agents, framework, stateful-agents
What is Letta? Letta is a coding tool listed on Scriptiii AI Tools. Letta (formerly MemGPT) agent harness for stateful agents that learn from experience, with terminal, desktop and web apps. Pricing: Free. Free to use. Best for: ai-agents, framework, stateful-agents.
Everything you need to know about Letta
Similar tools in Coding
Open-source vector database that stores objects and vectors with hybrid search and filtering.
Coding·Free