@letta-ai/letta-code 0.1.7 → 0.1.8
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 +36 -3
- package/letta.js +521 -246
- package/package.json +4 -1
- package/vendor/ink-text-input/build/index.js +1 -7
package/README.md
CHANGED
|
@@ -2,12 +2,16 @@
|
|
|
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/5561a3ff-afd9-42a9-8601-55d245946394
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
5
9
|
## What is Letta Code?
|
|
6
10
|
|
|
7
11
|
Letta Code is a command-line harness around the stateful Letta [Agents 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.
|
|
8
12
|
|
|
9
13
|
> [!IMPORTANT]
|
|
10
|
-
> Letta Code is a **research preview** in active development, and may have bugs or unexpected issues. To learn more about the roadmap and chat with the dev team, visit our Discord
|
|
14
|
+
> Letta Code is a **research preview** in active development, and may have bugs or unexpected issues. To learn more about the roadmap and chat with the dev team, visit our [Discord](https:/discord.gg/letta). Contributions welcome, join the fun.
|
|
11
15
|
|
|
12
16
|
## Quickstart
|
|
13
17
|
|
|
@@ -28,12 +32,41 @@ Then run `letta` to start Letta Code (see various command-line options below):
|
|
|
28
32
|
letta
|
|
29
33
|
```
|
|
30
34
|
|
|
35
|
+
Any of the agents you create in Letta Code will be viewable (and fully interactable!) inside the [Agent Development Environment](https://app.letta.com).
|
|
36
|
+
|
|
37
|
+
## Persistence
|
|
38
|
+
|
|
39
|
+
All agents in Letta are **stateful**: they maintain context forever and can self-edit their own [memory blocks](https://www.letta.com/blog/memory-blocks). Agents can share memory blocks across projects—for example, multiple agents can share user coding preferences while maintaining project-specific memories independently.
|
|
40
|
+
|
|
41
|
+
### Memory Configuration
|
|
42
|
+
|
|
43
|
+
Letta Code uses a hierarchical memory system with both global and local blocks:
|
|
44
|
+
|
|
45
|
+
**Global** (`~/.letta/settings.json`)
|
|
46
|
+
- `persona` block - defines agent behavior
|
|
47
|
+
- `human` block - stores user coding preferences
|
|
48
|
+
|
|
49
|
+
**Local** (`./.letta/settings.json`)
|
|
50
|
+
- `project` block - stores project-specific context
|
|
51
|
+
|
|
52
|
+
### Starting Letta
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
letta # New agent (attaches to existing memory blocks or creates new)
|
|
56
|
+
letta --continue # Resume last agent session
|
|
57
|
+
letta --agent <id> # Resume specific agent session
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
When you start a new agent, it automatically connects to existing memory block IDs from your settings files. If none exist, it creates them.
|
|
61
|
+
|
|
62
|
+
Memory blocks are highly configurable — see our [docs](https://docs.letta.com/guides/agents/memory-blocks) for advanced configuration options. Join our [Discord](https://discord.gg/letta) to share feedback on persistence patterns for coding agents.
|
|
63
|
+
|
|
31
64
|
## Usage
|
|
32
65
|
|
|
33
66
|
### Interactive Mode
|
|
34
67
|
```bash
|
|
35
|
-
letta # Start new session
|
|
36
|
-
letta --continue # Resume last session
|
|
68
|
+
letta # Start new session (new agent with shared memory blocks)
|
|
69
|
+
letta --continue # Resume last session (last recently used agent)
|
|
37
70
|
letta --agent <id> # Open specific agent
|
|
38
71
|
```
|
|
39
72
|
|