@letta-ai/letta-code 0.32.5 → 0.32.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-code",
3
- "version": "0.32.5",
3
+ "version": "0.32.6",
4
4
  "lettaStartupLogProtocol": 1,
5
5
  "description": "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
6
6
  "type": "module",
@@ -15,7 +15,7 @@
15
15
  "src/cli/components/InputRich.tsx": 2225,
16
16
  "src/cli/components/ModelSelector.tsx": 1259,
17
17
  "src/cli/components/ProviderSelector.tsx": 1692,
18
- "src/cli/components/ToolCallMessageRich.tsx": 1109,
18
+ "src/cli/components/ToolCallMessageRich.tsx": 1013,
19
19
  "src/cli/helpers/accumulator.ts": 1592,
20
20
  "src/cli/helpers/reflection-transcript.ts": 1926,
21
21
  "src/cli/mods/local-mod-loader.test.ts": 1043,
@@ -38,12 +38,10 @@
38
38
  "src/tools/manager.ts": 2897,
39
39
  "src/tools/tool-execution-context.test.ts": 1136,
40
40
  "src/types/protocol_v2.ts": 2595,
41
- "src/websocket/listen-client-concurrency.test.ts": 2685,
42
- "src/websocket/listen-client-protocol.test.ts": 5819,
41
+ "src/websocket/listen-client-concurrency.test.ts": 2683,
42
+ "src/websocket/listen-client-protocol.test.ts": 5762,
43
43
  "src/websocket/listener/commands/memory.ts": 1114,
44
44
  "src/websocket/listener/file-commands.ts": 1053,
45
- "src/websocket/listener/lifecycle.ts": 1048,
46
45
  "src/websocket/listener/protocol-inbound.ts": 2143,
47
- "src/websocket/listener/protocol-outbound.ts": 1025,
48
- "src/websocket/listener/turn.ts": 1050
46
+ "src/websocket/listener/protocol-outbound.ts": 1025
49
47
  }
@@ -15,8 +15,8 @@ The important part is choosing the right layer. Do not smear a preference into d
15
15
  | Layer | Use it for | How to change it |
16
16
  | --- | --- | --- |
17
17
  | Memory and identity | Facts worth retaining, style preferences, persona changes, project knowledge, reusable skills | Edit `$MEMORY_DIR` files and sync the memory repo |
18
- | Server agent fields | Default model, model settings, context limit, system prompt, compaction, agent name, description | Patch `/v1/agents/{agent_id}` |
19
- | Server conversation fields | Temporary model/context experiments for one conversation | Patch `/v1/conversations/{conversation_id}` |
18
+ | Server agent fields | Agent default model (only on explicit request), context limit, system prompt, compaction, agent name, description | Patch `/v1/agents/{agent_id}` |
19
+ | Server conversation fields | Model/context changes for the current conversation (the normal target) | Patch `/v1/conversations/{conversation_id}` |
20
20
  | Local settings | Permissions, environment variables, UI/runtime preferences, pinned agents, toolset overrides, reflection cadence | Edit `~/.letta/settings.json`, `./.letta/settings.json`, or `./.letta/settings.local.json` |
21
21
  | Mods | New deterministic tools, slash commands, providers, statusline behavior, or lightweight UI | Load `creating-mods`, `customizing-commands`, or `customizing-statusline` |
22
22
  | Skills | Reusable procedural knowledge or bundled scripts | Load `creating-skills` or `acquiring-skills` |
@@ -28,7 +28,7 @@ Decision rule: if the model should remember and reason about it, use memory. If
28
28
 
29
29
  ## Safe workflow
30
30
 
31
- 1. Identify scope: current conversation, current agent, project, or global user config.
31
+ 1. Identify scope: current conversation, current agent, project, or global user config. Model changes target the current conversation unless the user asks about the agent default.
32
32
  2. Inspect current state first and save the relevant safe fields as a rollback patch. Do not copy secrets or full compiled prompts into backups.
33
33
  3. Prefer a dry run for API patches and scripts.
34
34
  4. Apply the smallest change that satisfies the request.
@@ -50,7 +50,7 @@ If a broken model or prompt prevents the agent from completing a turn, recover o
50
50
  Local settings, server state, and the current process are different sources of truth. Inspect the layer you intend to change before writing it.
51
51
 
52
52
  - `letta model list [--byok | --hosted]` lists available models.
53
- - `letta model set [model_handle] [--reasoning <reasoning-option>] [--default]` overrides the current conversation's model or reasoning; `--default` overrides the agent's default instead.
53
+ - `letta model set [model_handle] [--reasoning <reasoning-option>] [--default]` changes the current conversation's model or reasoning; add `--default` only when the user asks for the agent default.
54
54
  - `letta model get [--default]` gets the current model configuration; `--default` gets the agent's default configuration.
55
55
 
56
56
  Use the secret-safe local/runtime report for harness settings, permissions, and backend diagnostics:
@@ -103,7 +103,7 @@ Do not use API system-prompt replacement for ordinary learning. That can clobber
103
103
 
104
104
  ## Server-side agent and conversation settings
105
105
 
106
- Server fields control model execution and agent metadata. Use the agent endpoint for persistent defaults. Use the conversation endpoint for scoped experiments.
106
+ Server fields control model execution and agent metadata. Use the conversation endpoint for model changes. Use the agent endpoint only when the user asks for the agent default.
107
107
 
108
108
  Required environment for live API writes:
109
109
 
@@ -122,7 +122,7 @@ The scripts in this skill default to `AGENT_ID`, `CONVERSATION_ID`, and `LETTA_B
122
122
  npx tsx <SKILL_DIR>/scripts/update-agent-settings.ts --help
123
123
  ```
124
124
 
125
- Patch the current conversation first when testing a risky model/settings change:
125
+ Patch the current conversation for a model/settings change:
126
126
 
127
127
  ```bash
128
128
  npx tsx <SKILL_DIR>/scripts/update-agent-settings.ts \
@@ -133,7 +133,7 @@ npx tsx <SKILL_DIR>/scripts/update-agent-settings.ts \
133
133
  --dry-run
134
134
  ```
135
135
 
136
- Patch the agent default after the user confirms the change should persist:
136
+ Patch the agent default only when the user asks for it:
137
137
 
138
138
  ```bash
139
139
  npx tsx <SKILL_DIR>/scripts/update-agent-settings.ts \