Agents · Letta Code

letta code with persistent multi-agent sessions

TL;DR

Letta Code is a stateful agent harness from Letta, the team behind MemGPT: its agents keep memory, identity and history across sessions, stored in Letta Cloud by default or locally. Pane runs several Letta Code agents in parallel, each on its own worktree and branch, and brings your panes back after a restart while Letta keeps each agent's memory. One Letta agent is enough when your work stays on one branch.

Most coding agents forget everything when a session ends. Letta Code's agents don't. Pairing that memory with a worktree per agent lets several of them build up knowledge in parallel without stepping on each other's code.

What is Letta Code?

Letta Code is an open source agent harness for agents that remember: memory, identity and a sense of experience over time. You can use it interactively, or run always-on agents that work on their own. It's Apache-2.0 licensed and ships frequent releases.

Letta Cloud is the default place agents' memory lives; on first launch you can sign in or choose to run locally. Agents can also run on another machine and be reached from yours.

Quickstart

Install Letta Code, create a pane, open a terminal, type letta.

  1. 1Install Letta Code

    Letta Code (needs Node.js)

    npm install -g @letta-ai/letta-code

    Start a new agent

    letta --new-agent
  2. 2Create a pane

    Press Ctrl+N (⌘N on a Mac), pick the repo and branch, and create it. Pane makes a worktree for the pane.
  3. 3Start Letta Code

    Open a terminal in the pane with Ctrl+Alt+1 (⌘⌥1 on a Mac), or pick Terminal from the Ctrl+T menu, and type letta. To launch it with one keystroke next time, save it as a custom command; your first four custom commands get shortcuts.
Creating a pane for a new taskThe same dialog works for every agent. Letta Code runs in the terminal of the pane it creates.Pane 2.4.155 on Windows 11, repo inside WSL2

What works with Letta Code in Pane

Everything Pane does around the terminal works. Agent-specific extras are for its three built-in agents.

✓Letta Code in a Pane terminalIt runs in a pane like in any shell, with your Letta Cloud or local setup.
✓Agent memory across restartsLetta keeps each agent's memory itself; Pane brings the pane, its layout and terminal output back.
✓Its own worktree and branchEach pane is a separate git worktree, so several sessions never touch each other's files.
✓Diff view and git actionsSee what changed, commit, push, rebase and open a pull request from the pane.
✓Ports and env per paneEach pane gets its own port block in PANE_PORT, and .env files are copied into new worktrees.
~Status in the sidebarPane shows terminal activity. Detailed working, waiting and done states are tuned for Claude Code, Codex and Cursor.
~Resume after restartLayout and terminal output come back. Add a custom resume template if the agent can resume a conversation by ID.
✕Usage and cost trackingPane tracks usage for Claude Code and Codex only.

Several agents, each with its own memory and branch

Memory per agent, worktree per agent.

Run one Letta agent per task, each in its own pane. Each builds its own memory of the work, and each commits to its own branch, so you can review and merge them separately.

When one Letta agent is enough

If your work stays on one branch with one agent, run Letta Code on its own. Pane helps once you run several agents at once, or Letta next to Claude Code or Codex.

Sources

What we ran
  • → Pane 2.4.155 on Windows 11 and WSL2; Letta Code details checked against its own repo and docs in October 2026
Corrections
If anything here is wrong or out of date, tell us and we'll fix it and update the date at the top. Open an issue on GitHub
Sources

frequently asked questions

or
Download*
Windows SmartScreen warningDirect downloads can show a SmartScreen warning while Pane is unsigned. Pane is fully open source, so you can audit the code and build from source yourself.1. Click More info2. Click Run anyway3. Continue the installerThe PowerShell install downloads the official release directly and avoids most browser download friction.npm global install
Paste that in PowerShell.Linux

By Parsa Khazaeepoul, co-founder of Pane. .