letta
Letta is the platform for building stateful agents: AI with advanced memory that can learn and self-improve over time.
Source#
- Repository: letta-ai/letta
- Last source update: 2026-03-01
- Last verified: 2026-03-01
Tags#
Integration notes#
Platform-level abstraction; use worker wrappers for strict I/O schemas and auditable retries.
worker.md example#
Starter worker.md contract mapped from this registry entry. Copy this file and adapt schemas, constraints, and statuses for your task.
---
id: letta-repo-derived-worker
name: letta Repo-Derived Worker
version: 1.0.0
source_registry_url: https://worker.md/registry/letta/
source_repository: https://github.com/letta-ai/letta
repository_default_branch: main
repository_language: Python
repository_license: Apache-2.0
repository_updated_at: 2026-03-01
worker_mode: agent-orchestration-worker
derivation_method: github_repository_metadata_plus_raw_readme
derivation_confidence: 0.95
derived_on: 2026-03-01
tags:
- ai
- ai-agents
- llm
- llm-agent
---
# letta Repo-Derived Worker
## Repo-derived summary
- Registry summary: Letta is the platform for building stateful agents: AI with advanced memory that can learn and self-improve over time.
- Repository description: Letta is the platform for building stateful agents: AI with advanced memory that can learn and self-improve over time.
- Stars (snapshot): 21,346
- Primary language: Python
- Worker mode classification: agent-orchestration-worker
## Extracted from
- https://github.com/letta-ai/letta
- https://github.com/letta-ai/letta/blob/main/README.md
- https://docs.letta.com/letta-code
- https://docs.letta.com/quickstart/
- https://github.com/letta-ai/letta-code
## Evidence notes (from repository text)
- README summary paragraph: Letta is the platform for building stateful agents: AI with advanced memory that can learn and self-improve over time.
- Letta is the platform for building stateful agents: AI with advanced memory that can learn and self-improve over time.
- 1. Install the https://github.com/letta-ai/letta-code CLI tool: `npm install -g @letta-ai/letta-code`
- 2. Run `letta` in your terminal to launch an agent with memory running on your local computer
- When running the CLI tool, your agent help you code and do any task you can do on your computer.
- Use the Letta API to integrate stateful agents into your own applications.
## Installation hints found in README
- `pip install letta-client`
- `npm install -g @letta-ai/letta-code`
- `npm install @letta-ai/letta-client`
## worker.md contract (derived starter)
Purpose: Execute one orchestrated agent task as a bounded worker step.
### Input schema
```json
{
"type": "object",
"additionalProperties": false,
"required": [
"run_id",
"task",
"context"
],
"properties": {
"run_id": {
"type": "string"
},
"task": {
"type": "string"
},
"context": {
"type": "object"
}
}
}
```
### Output schema
```json
{
"type": "object",
"additionalProperties": false,
"required": [
"run_id",
"status",
"result"
],
"properties": {
"run_id": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"ok",
"retryable_error",
"invalid_request",
"invalid_output"
]
},
"result": {
"type": "object"
}
}
}
```
### Constraints
- timeout_seconds: 30
- max_attempts: 2
- idempotency_key: run_id
- status_enum: [ok, retryable_error, invalid_request, invalid_output]
- notes: adapt to concrete APIs/classes documented in this repository before production use
## How this should be used
1. Treat this file as a repo-derived starter profile, not a claim of an official repository API contract.
2. Replace schemas with exact interfaces from code/docs you adopt.
3. Keep execution bounded and auditable using worker protocol constraints.
How to use#
- Save this as a worker spec file (for example:
letta-my-task.worker.md). - Replace the input/output schemas and purpose with your real bounded task.
- Enforce schema validation + timeout + retry policy in your runtime before production use.
Citation#
Reference URL: https://worker.md/registry/letta/
Source URL: https://github.com/letta-ai/letta