@letta-ai/letta-code 0.2.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -3
- package/letta.js +40712 -27830
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
A self-improving, stateful coding agent that can learn from experience and improve with use.
|
|
4
4
|
|
|
5
|
-
https://github.com/user-attachments/assets/
|
|
5
|
+
<img width="1713" height="951" alt="letta-code" src="https://github.com/user-attachments/assets/ae546e96-368a-4a7b-9397-3963a35c8d6b" />
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## What is Letta Code?
|
|
10
10
|
|
|
11
|
-
Letta Code is a command-line harness around the stateful Letta
|
|
11
|
+
Letta Code is a command-line harness around the stateful [Letta API](https://docs.letta.com/api-reference/overview). You can use Letta Code to create and connect with any Letta agent (even non-coding agents!) - Letta Code simply gives your agents the ability to interact with your local dev environment, directly in your terminal.
|
|
12
12
|
|
|
13
13
|
Letta Code is model agnostic, and supports Sonnet 4.5, GPT-5, Gemini 2.5, GLM-4.6, and more.
|
|
14
14
|
|
|
@@ -152,7 +152,7 @@ letta -p "Use the custom skills" --skills ~/my-skills
|
|
|
152
152
|
letta # Auto-resume project agent (or create new if first time)
|
|
153
153
|
letta --new # Create new agent with new memory blocks
|
|
154
154
|
letta --agent <id> # Use specific agent ID
|
|
155
|
-
letta --model <model> # Specify model (e.g., claude-sonnet-4.5, gpt-4o)
|
|
155
|
+
letta --model <model> # Specify model (e.g., claude-opus-4.5, claude-sonnet-4.5, gpt-4o)
|
|
156
156
|
letta -m <model> # Short form of --model
|
|
157
157
|
letta --continue # Resume global last agent (deprecated, use project-based)
|
|
158
158
|
|
|
@@ -168,6 +168,8 @@ letta --agent <id> --unlink # Remove Letta Code tools from agent, then start
|
|
|
168
168
|
While in a session, you can use these commands:
|
|
169
169
|
- `/agent` - Show current agent link
|
|
170
170
|
- `/model` - Switch models
|
|
171
|
+
- `/toolset` - Switch toolsets (codex/default)
|
|
172
|
+
- `/rename` - Rename the current agent
|
|
171
173
|
- `/stream` - Toggle token streaming on/off
|
|
172
174
|
- `/link` - Attach Letta Code tools to current agent (enables Read, Write, Edit, Bash, etc.)
|
|
173
175
|
- `/unlink` - Remove Letta Code tools from current agent
|
|
@@ -193,6 +195,36 @@ letta --agent <id> --unlink # Remove Letta Code tools
|
|
|
193
195
|
|
|
194
196
|
When you attach tools with `/link` or `--link`, they are added to the agent with approval rules enabled (human-in-the-loop). This means the agent can use these tools, but you'll be prompted to approve each tool call. Use permission modes to control approval behavior (see Permissions section below).
|
|
195
197
|
|
|
198
|
+
### Toolsets
|
|
199
|
+
|
|
200
|
+
Letta Code includes different toolsets optimized for different model providers:
|
|
201
|
+
|
|
202
|
+
1. **Default Toolset** (Anthropic-optimized, best for Claude models)
|
|
203
|
+
2. **Codex Toolset** (OpenAI-optimized, best for GPT models)
|
|
204
|
+
3. **Gemini Toolset** (Google-optimized, best for Gemini models)
|
|
205
|
+
|
|
206
|
+
**Automatic Selection:**
|
|
207
|
+
When you specify a model, Letta Code automatically selects the appropriate toolset:
|
|
208
|
+
```bash
|
|
209
|
+
letta --model haiku # Loads default toolset
|
|
210
|
+
letta --model gpt-5-codex # Loads codex toolset
|
|
211
|
+
letta --model gemini-3-pro # Loads gemini toolset
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
**Manual Override:**
|
|
215
|
+
You can force a specific toolset regardless of model:
|
|
216
|
+
```bash
|
|
217
|
+
# CLI flag (at startup)
|
|
218
|
+
letta --model haiku --toolset codex # Use Codex-style tools with Claude Haiku
|
|
219
|
+
letta --model gpt-5-codex --toolset gemini # Use Gemini-style tools with GPT-5-Codex
|
|
220
|
+
letta --toolset gemini # Use Gemini tools with default model
|
|
221
|
+
|
|
222
|
+
# Interactive command (during session)
|
|
223
|
+
/toolset # Opens toolset selector
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
The `/model` command automatically switches toolsets when you change models. Use `/toolset` if you want to manually override the automatic selection.
|
|
227
|
+
|
|
196
228
|
### Headless Mode
|
|
197
229
|
```bash
|
|
198
230
|
letta -p "Run bun lint and correct errors" # Auto-resumes project agent
|