Marks / Runtime
letta-code
Programmable capabilities
- 3 Capability interface Mods and host-injected external tools; per-subagent tool lists; MCP not native; no deferral/search (level 4 unmet)
Review finding
Built in. About 30 static client tools are sent per request as
client_toolsand executed locally, not by the Letta server. Other sources are trusted in-process mods and host-injected external tools. MCP is reached through theletta mcpCLI or scripts, not as native model tools. P37P38P39P40P41P42 Note P-3 - 3 Reusable computation Workflow script, args and journal saved, re-run by scriptPath; crons hold prompts, no scheduled workflow or typed params
- 2 Capability transfer Skill install and MemFS restore are [D]; fork type carries conversation; no dependency checking (level 3 unmet)
Evidence and memory
- 2 Durable evidence Cloud messages server-side [D] plus client transcript copy; no retention policy; local file rewritten on fork
Review finding
- 2 ↑3 Context recovery opt: experimental local backend Cloud compaction/search [D] caps D; local mode keeps rows with default BM25 search and recall subagent
- 4 Memory maintenance MemFS auto-enabled on Cloud (index.ts:1808); reflection every 25 steps; rebase-retry/backoff; git versioning (not Windows/detached headless)
Review finding
Specialist collaboration
- 3 Specialist definition Markdown frontmatter sets tools, model, prompt; L4 unmet: child forced --permission-mode unrestricted, widening when parent interactive
Review finding
- 2 Continuation Follow-ups via agent_id reuse child conversation; live state in memory; unresolved: resume of ephemeral API children after restart
- 3 Coordination Depth 2, 32 concurrent tasks, process-group cancel; L4 unmet: no tree-wide budget for Task children (messaging server-side [D])
Review finding
Built in. Task always runs in the background and reports through a queued notification. 32 concurrent tasks per process. Depth 2; the Task tool is removed at the limit. Cancel: SIGINT then SIGKILL to the process group, or server-side cancel. Agent messages use the server enqueue endpoint; authorization is server-side [D] C55–C62.
Execution controls
- 2 Confinement OS sandbox default-on only for memory subagents; main shell unconfined under unrestricted mode; network never isolated
Review finding
Default permission mode
unrestrictedallows every tool once deny/alwaysAskrules and a cross-agent memory guard have run. The main shell has no OS sandbox unlessLETTA_FS_SANDBOX=1(which only shields other agents' memory) or an app-serverworkspace_sandbox(fails closed). Memory subagents get bwrap/Seatbelt by default but launch unconfined if no backend exists. Network is never isolated. X49X50X51X52X53X54X55 - 1 Credential handling Full env inherited plus injected LETTA_API_KEY; only exact-match redaction and Bun keychain; L2 unmet: no denylist
Review finding
Shell inherits the full process env, and the CLI injects
LETTA_API_KEY(session token) andLETTA_BASE_URL. Vault secrets are substituted only when referenced as$NAME. Redaction is exact-match for the Letta key and vault values only, so ambient provider keys are not covered. Keychain only viaBun.secrets; otherwise tokens sit in plaintext~/.letta/settings.json. X56X57X58X59 - 2 Budget enforcement Workflow maxCostUsd is a per-call parameter of a default tool (R1); post-step, per run; main agent reporting only
Review finding
The only $ budget is Workflow
maxCostUsd: per-worker usage is priced from the pi-ai catalog after each step, the workflow aborts once the total reaches the limit (one in-flight step may overshoot), and it stops when cost is unknown.--max-turnsis opt-in and checked after each step. No token/$/time budget for the main agent or Task subagents. X60X61X62
Product integration
- 4 Embedding interfaces Headless stream-json plus a WebSocket app server with typed protocol, abort,
can_use_toolcontrol requests and an external-tool-call handlerReview finding
Built in: headless
-pwith stream-json in/out; local WebSocket app server (defaultws://127.0.0.1:0, non-loopback refused without token auth) with a typed client export. [opt:--openai-api] OpenAI-compatible routes. Letta Agent SDK and Letta REST API are external [D]. No ACP or MCP server. I47I48I49I50I51I52 - 1 Declarative configuration JSON spread over defaults; no schema; unknown keys pass through
Review finding
Built in: JSON settings (global, project, project-local) spread over defaults. No schema validation; unknown keys pass through. A parse error falls back to defaults with a console error. Specialists, skills and mods are Markdown/JS files. I53
- 2 Durable execution Cloud background runs and busy handling are server-side [D], so the evidence cap is 2. Local mode loses runs on a crash
Review finding
Operations and verification
- X * Service dependencies Default API mode needs a reachable Letta server every turn; the local backend uses provider endpoints only
- 1 Execution records Local transcript/debug files; background failures often only in the debug log; tool-error recording unresolved; server records [D]
Review finding
Plain files under
~/.letta: transcripts,sessions.jsonl, debug log (5 sessions / 10 MB, TUI). In API mode the server holds the canonical messages [D]. Background failures often appear only in the debug log. With default permissions the agent's own tools can edit these files. O45 - 2 Result checks Hooks: exit 2 blocks, but errors and timeouts fail open; Stop-hook re-prompts have no stated cap
Review finding
Reproducibility
- Repository
- https://github.com/letta-ai/letta-code
- Branch
- main
- Exact revision
52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21- Commit date
- 2026-11-28T07:03:56Z
Metadata
- Exact revision
52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21, committed 2026-11-28T07:03:56Z- Version (source)
@letta-ai/letta-code0.34.72 (package.json) M12- License
- Apache-2.0 (
LICENSE;package.json) M12 - Audited component / deployment
- TS client harness
src/: tools always run on the client; agent loop/state live on the backend. Default backend: Letta Cloud API (server-side claims [D]); alt: self-hosted Letta server; opt: experimental in-tree local backend M13 - Supported runtime platforms
- Node
^22.23.4 || ^24.22.1 || ^26.12.1or Bun ≥1.3.2; prebuilt linux x64/arm64, macOS x64/arm64, win32 x64; Python wheel wrapper; Docker on node 22 bookworm M12M14 - Evidence coverage
- Deep: backend selection, tool registry/permissions, sandbox, secrets, MCP client, hooks, settings, app server, telemetry; local store/subagents via delegated explorers (spot-checked). Skimmed/not:
src/channels(190 files), most ofsrc/websocket/listener, UI, LSP, vendor
Pinned external dependencies (capability-supplying)
- Package@version
@letta-ai/letta-client: bun.lock 1.10.2 root (1.12.1 nested) vs npm-shrinkwrap 1.12.1- Role
- REST/stream client to Letta server
- Package@version
@earendil-works/pi-ai: bun.lock 1.5.2 (patched) vs npm-shrinkwrap 1.7.0; patch file targets 1.5.2, so it may not apply to npm installs- Role
- local-backend providers; pricing catalog
- Package@version
@letta-ai/[email protected](peerletta-code >=0.34.9 <0.35.0);@modelcontextprotocol/[email protected];@cursor/[email protected];@letta-ai/[email protected]- Role
- Workflow tool; MCP client; Cursor worker; trajectory export
- Lockfile / source
npm-shrinkwrap.json:1184-1198;package.json
- Package@version
- Letta server (Cloud or self-hosted)
- Role
- agent loop, state, compaction, search [D]
- Lockfile / source
- no version pin or compatibility range in tree
Specialist collaboration: Supporting table: parent→child authority
- Approval / permission policy passed to child
--permission-mode unrestricted; parent deny list and allow union passed C49- OS-level confinement of child
- Only memory subagents are wrapped; launched unconfined if no backend is available C50
- Widening path found
- Unrestricted mode when the parent is interactive; external codex child runs
approvalPolicy:"never",dangerFullAccessC51
Operations and verification: Notes
- Finished process
- Exit code /
max_steps - Delivered answer
- Stream end
- Structural validity
- Server or workflow schema [D]
- Task correctness
- Opt-in only (see below)
Operations and verification: Notes
- Mechanism
- Workflow
jsonworker O51 - After the check fails
- Marked
failed; no automatic retry at this site.
Part A: platforms, clients, IDE, messaging
- Terminal / web / desktop clients
- Ink TUI; headless
-p; local WS app server A13. Browser/mobile via chat.letta.com (outside audited component; Cloud) [D] A14; Letta Desktop credential hook only A15 - IDE & coding integrations
- External coding-agent workers (claude-code, codex, opencode, cursor, antigravity); GitHub PR watch tools A16; no VS Code extension or ACP in tree
- Messaging channels
- Slack, Telegram, Discord, Signal, WhatsApp, custom (
src/channels/) [S listed; not audited] A17
Part B: voice/media, onboarding/routing, fleet administration
- Voice / media
- Bundled skills for image, speech, music, video generation; channel transcription [S listed] A52
- Onboarding & session routing
- First-run choice of Cloud sign-in or local backend;
/connectprovider keys; profiles and pinned agents [S partial] A53 - Fleet administration
- Remote computers (
letta computers), Cloud sandboxes, Railway/DO/Fly guides: all Cloud features (outside audited component) [D]
Source/doc conflicts
- Conflict
bun.lock(letta-client 1.10.2, pi-ai 1.5.2 + patch) vsnpm-shrinkwrap.json(1.12.1, 1.7.0) M38M39- Which side the audit entry follows
- both reported; npm installs and Bun dev builds may differ
- Conflict
- README calls Cloud the default but first launch prompts; code falls back to
apiwith no preference M13 - Which side the audit entry follows
- code
- Conflict
- Keychain via
Bun.secretsonly, while the npm entry is a Node script - Which side the audit entry follows
- unresolved