freshcrate
Home > AI Agents > letta-code

letta-code

The memory-first coding agent

Description

The memory-first coding agent

README

Letta Code

npmDiscordLetta Code is a memory-first coding harness, built on top of the Letta API. Instead of working in independent sessions, you work with a persisted agent that learns over time and is portable across models (Claude Sonnet/Opus, GPT/Codex, Gemini, GLM, Kimi, and more).

Read more about how to use Letta Code on the official docs page.

Get started

Install the package via npm:

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

Navigate to your project directory and run letta (see various command-line options on the docs).

Run /connect to configure your own LLM API keys (OpenAI, Anthropic, etc.), and use /model to swap models.

Note

By default, Letta Code will to connect to the Letta API. Use /connect to use your own LLM API keys and coding plans (Codex, zAI, Minimax) for free. Set LETTA_BASE_URL to connect to an external Docker server.

Philosophy

Letta Code is built around long-lived agents that persist across sessions and improve with use. Rather than working in independent sessions, each session is tied to a persisted agent that learns.

Claude Code / Codex / Gemini CLI (Session-Based)

  • Sessions are independent
  • No learning between sessions
  • Context = messages in the current session + AGENTS.md
  • Relationship: Every conversation is like meeting a new contractor

Letta Code (Agent-Based)

  • Same agent across sessions
  • Persistent memory and learning over time
  • /clear starts a new conversation (aka "thread" or "session"), but memory persists
  • Relationship: Like having a coworker or mentee that learns and remembers

Agent Memory & Learning

If you’re using Letta Code for the first time, you will likely want to run the /init command to initialize the agent’s memory system:

> /init

Over time, the agent will update its memory as it learns. To actively guide your agents memory, you can use the /remember command:

> /remember [optional instructions on what to remember]

Letta Code works with skills (reusable modules that teach your agent new capabilities in a .skills directory), but additionally supports skill learning. You can ask your agent to learn a skill from its current trajectory with the command:

> /skill [optional instructions on what skill to learn]

Read the docs to learn more about skills and skill learning.

Community maintained packages are available for Arch Linux users on the AUR:

yay -S letta-code # release
yay -S letta-code-git # nightly

Made with πŸ’œ in San Francisco

Release History

VersionChangesUrgencyDate
v0.23.9## What's Changed * feat(client): add x-letta-node header opt-in via LETTA_NODE env var by @jnjpng in https://github.com/letta-ai/letta-code/pull/1835 * feat: add k2.6 by @AriWebb in https://github.com/letta-ai/letta-code/pull/1851 * feat: create hidden conversations for agent-to-agent and forked-subagent paths by @sarahwooders in https://github.com/letta-ai/letta-code/pull/1838 * feat(permissions): add cross-agent memory guard by @devanshrj in https://github.com/letta-ai/letta-code/pull/1852 * High4/21/2026
v0.23.8## What's Changed * fix(channels): recover pending channel approvals after reconnect by @cpacker in https://github.com/letta-ai/letta-code/pull/1833 * feat(reflection): support AUTO_MEMORY model override by @cpacker in https://github.com/letta-ai/letta-code/pull/1836 * chore: bump version to 0.23.8 by @github-actions[bot] in https://github.com/letta-ai/letta-code/pull/1837 **Full Changelog**: https://github.com/letta-ai/letta-code/compare/v0.23.7...v0.23.8High4/18/2026
v0.23.4## What's Changed * fix(channels): scope MessageChannel to bound conversations by @cpacker in https://github.com/letta-ai/letta-code/pull/1793 * chore: bump version to 0.23.4 by @github-actions[bot] in https://github.com/letta-ai/letta-code/pull/1795 **Full Changelog**: https://github.com/letta-ai/letta-code/compare/v0.23.3...v0.23.4High4/14/2026
v0.23.2## What's Changed * feat: indexing should initiate upon app load by @shelleypham in https://github.com/letta-ai/letta-code/pull/1785 * fix(slack): resolve Bolt App constructor from bundled runtime by @cpacker in https://github.com/letta-ai/letta-code/pull/1784 * chore: bump version to 0.23.2 by @github-actions[bot] in https://github.com/letta-ai/letta-code/pull/1786 **Full Changelog**: https://github.com/letta-ai/letta-code/compare/v0.23.1...v0.23.2High4/14/2026
v0.22.4## What's Changed * fix(auth): suppress repeated keychain read warnings on Linux by @cpacker in https://github.com/letta-ai/letta-code/pull/1663 * fix(cli): dispatch subcommands before TUI initialization by @cpfiffer in https://github.com/letta-ai/letta-code/pull/1725 * fix(server): initialize settings before telemetry in listen subcommand by @cpfiffer in https://github.com/letta-ai/letta-code/pull/1752 * feat(channels): add markdown formatting for outbound Telegram messages by @cpfiffer in httpHigh4/11/2026
v0.21.18## What's Changed * fix(memfs): recover from missing cwd during memory git clone/pull by @sarahwooders in https://github.com/letta-ai/letta-code/pull/1700 * fix: allow SDK request timeout override via LETTA_REQUEST_TIMEOUT_MS by @cpfiffer in https://github.com/letta-ai/letta-code/pull/1696 * feat(web): add history tab search filters by @kianjones9 in https://github.com/letta-ai/letta-code/pull/1681 * feat(memory-palace): show conversation source + allow commands during execution by @kianjones9 iHigh4/8/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

nanoclawA lightweight alternative to OpenClaw that runs in containers for security. Connects to WhatsApp, Telegram, Slack, Discord, Gmail and other messaging apps,, has memory, scheduled jobs, and runs directmain@2026-04-21
capitaineCapitaine β€” fork a repo, click Codespaces, the agent is alive. The repo IS the agent.master@2026-04-21
ralphy-openspecπŸ€– Enhance AI coding with ralphy-openspec, a spec-driven tool that enables iterative execution for predictable, efficient development.main@2026-04-21
uix-ai-agentπŸ€– Generate UI & UX flows for web and mobile apps using natural language prompts with UIX AI Agent, your intelligent design assistant.main@2026-04-21
20xSelf-improving Agent orchestrator for all knowledge workv0.0.68