letta-code — core abstractions and who depends on whom

letta-code — core abstractions and who depends on whom An architecture diagram generated by Archify. Skill · SKILL.md folder · client harness (execution) · metadata only Skill SKILL.md folder metadata only Turn loop · headless · TUI · listener · client harness (execution) Turn loop headless · TUI · listener StreamProcessor · chunks → approvals · client harness (execution) StreamProcessor chunks → approvals Permission checker · allow · deny · ask · client harness (execution) Permission checker allow · deny · ask Tool registry · defineTool + snapshot · client harness (execution) Tool registry defineTool + snapshot Subagent config · md + frontmatter · client harness (execution) Subagent config md + frontmatter Backend · interface + capabilities · Architecture component Backend interface + capabilities APIBackend · Letta Cloud client · Architecture component APIBackend Letta Cloud client HeadlessBackend · runs · replay · settle · in-process local backend HeadlessBackend runs · replay · settle LocalBackend · prompt cache · compaction · in-process local backend LocalBackend prompt cache · compaction LocalStore · transcript + in-context ids · in-process local backend LocalStore transcript + in-context ids HeadlessTurnExecutor · one model step · in-process local backend HeadlessTurnExecutor one model step PiStreamAdapter · pi-ai Context + retries · in-process local backend PiStreamAdapter pi-ai Context + retries MemFS · git repo → core memory · in-process local backend MemFS git repo → core memory stream() drain client_skills classify allowed calls Agent tool implements implements extends owns execute() adapter compile client harness (execution) in-process local backend Legend Frontend Backend Database Security External