letta-code vs pi
Programmable capabilities
Reusable computation marks differ
3 letta-code Workflow script, args and journal saved, re-run by scriptPath; crons hold prompts, no scheduled workflow or typed params2 pi Skills with scripts persist; codemode scripts not saved; pi-durable journal replay is not unit re-run (level 3 unmet)Capability transfer
2 letta-code Skill install and MemFS restore are [D]; fork type carries conversation; no dependency checking (level 3 unmet)2 pi Pi package install (npm/git/local) documented [D]; fork/clone exist; no dependency checking (level 3 unmet)Evidence and memory
Durable evidence
2 letta-code Cloud messages server-side [D] plus client transcript copy; no retention policy; local file rewritten on fork2 pi Append-only JSONL trees with tool calls; no retention policy, manual delete only (level 3 unmet)Context recovery marks differ
2 ↑3 letta-code opt: experimental local backend Cloud compaction/search [D] caps D; local mode keeps rows with default BM25 search and recall subagent2 pi Originals in JSONL; recovery via file lists and temp-file paths only; no transcript search tool (level 3 unmet)Memory maintenance marks differ
4 letta-code MemFS auto-enabled on Cloud (index.ts:1808); reflection every 25 steps; rebase-retry/backoff; git versioning (not Windows/detached headless)0 pi No learned-memory facility and no maintenance instruction; AGENTS.md and skills are guidance filesSpecialist collaboration
Specialist definition marks differ
3 letta-code Markdown frontmatter sets tools, model, prompt; L4 unmet: child forced --permission-mode unrestricted, widening when parent interactive1 pi Subagents exist only as shipped example extension; example code does not count toward BContinuation marks differ
2 letta-code Follow-ups via agent_id reuse child conversation; live state in memory; unresolved: resume of ephemeral API children after restart0 ↑3 pi alt: pi-durable checkpointed child tasks No subagents in core CLI (example only); pi-durable checkpointed children with restart limit 5Coordination marks differ
3 letta-code Depth 2, 32 concurrent tasks, process-group cancel; L4 unmet: no tree-wide budget for Task children (messaging server-side [D])0 ↑1 pi alt: pi-durable No subagents in core CLI; pi-durable children and signals exist; unresolved: pi-durable depth/concurrency caps, cancellationExecution controls
Confinement marks differ
2 letta-code OS sandbox default-on only for memory subagents; main shell unconfined under unrestricted mode; network never isolated0 ↑2 pi alt: Docker / OpenShell / Gondolin (documented) No approvals or OS boundary in the CLI; documented alternative deployments count at B but are capped at 2 (rule 1)Credential handling
1 letta-code Full env inherited plus injected LETTA_API_KEY; only exact-match redaction and Bun keychain; L2 unmet: no denylist1 pi Full env to bash; only inheritEnv:false for MCP and !command keychain lookups; L2 unmet: no denylistBudget enforcement marks differ
2 letta-code Workflow maxCostUsd is a per-call parameter of a default tool (R1); post-step, per run; main agent reporting only1 ↑2 pi alt: pi-durable maxTurns CLI reports usage only with a 3-retry cap; the pi-durable stack enforces a maxTurns work limit when set (R3); no cost admissionProduct integration
Embedding interfaces
4 letta-code Headless stream-json plus a WebSocket app server with typed protocol, abort,can_use_tool control requests and an external-tool-call handler4 pi In-process createAgentSession (with customTools) plus RPC JSONL with prompt/steer/follow_up/abort/fork; typed eventsDeclarative configuration
1 letta-code JSON spread over defaults; no schema; unknown keys pass through1 pi Settings files explicitly not validated at runtime despite published schemas; onlymodels.json is type-checkedDurable execution marks differ
2 letta-code Cloud background runs and busy handling are server-side [D], so the evidence cap is 2. Local mode loses runs on a crash2 ↑3 pi alt: pi-durable CLI rejects concurrent prompts; orphaned calls get only synthetic transform-time errors, not recorded. pi-durable resumes or settles failed; unresolved: disconnectOperations and verification
Service dependencies marks differ
X * letta-code Default API mode needs a reachable Letta server every turn; the local backend uses provider endpoints onlyE pi Single Node process, no daemon or DB; MCP and fd/rg run as childrenExecution records marks differ
1 letta-code Local transcript/debug files; background failures often only in the debug log; tool-error recording unresolved; server records [D]2 pi JSONL includes tools, failures and retries, but the telemetry contract ships no exporter, so level-3 optional telemetry is unmetResult checks
2 letta-code Hooks: exit 2 blocks, but errors and timeouts fail open; Stop-hook re-prompts have no stated cap2 pi Extension hooks can block or force another turn, with no stated cap; arguments are validated structurallyletta-code vs codexgoosehermes-agentnullclawopenclawopencodesoftware-agent-sdkspore
pi vs codexgoosehermes-agentnullclawopenclawopencodesoftware-agent-sdkspore