@letta-ai/letta-code 0.34.31 → 0.34.33
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/cursor-worker.js +49 -16
- package/dist/mcp-client.js +2 -2
- package/dist/mcp-client.js.map +1 -1
- package/dist/mcp-oauth.js +2 -2
- package/dist/mcp-oauth.js.map +1 -1
- package/dist/types/agent/message.d.ts.map +1 -1
- package/dist/types/agent/subagents/subagent-process.d.ts +2 -0
- package/dist/types/agent/subagents/subagent-process.d.ts.map +1 -1
- package/dist/types/backend/dev/pi-request-headers.d.ts +3 -1
- package/dist/types/backend/dev/pi-request-headers.d.ts.map +1 -1
- package/dist/types/backend/dev/pi-stream-adapter.d.ts.map +1 -1
- package/dist/types/backend/local/compaction.d.ts.map +1 -1
- package/dist/types/cli/subcommands/mcp-io.d.ts.map +1 -1
- package/dist/types/tools/impl/codex-app-server.d.ts.map +1 -1
- package/dist/types/tools/impl/cursor-start-retry.d.ts +3 -0
- package/dist/types/tools/impl/cursor-start-retry.d.ts.map +1 -0
- package/dist/types/tools/impl/cursor-worker.d.ts.map +1 -1
- package/dist/types/utils/package-manager-spawn.d.ts +12 -0
- package/dist/types/utils/package-manager-spawn.d.ts.map +1 -1
- package/dist/types/utils/stdin.d.ts +3 -0
- package/dist/types/utils/stdin.d.ts.map +1 -0
- package/letta.js +928 -850
- package/npm-shrinkwrap.json +90 -90
- package/package.json +2 -2
- package/skills/context-doctor/references/auditing-memory.md +6 -3
- package/skills/creating-skills/SKILL.md +22 -1
- package/skills/initializing-memory/SKILL.md +29 -13
- package/skills/maintaining-core-memory/SKILL.md +22 -1
- package/skills/maintaining-deferred-memory/SKILL.md +22 -2
- package/skills/managing-shared-memory/SKILL.md +22 -7
- package/skills/syncing-memory-filesystem/SKILL.md +1 -1
|
@@ -23,13 +23,7 @@ ls "$MEMORY_DIR/../" # attached repositories appear here by
|
|
|
23
23
|
cat "$MEMORY_DIR/../<repo-name>/<path>" # read like any file
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
Edit files with your normal file tools, then commit
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
cd "$MEMORY_DIR/../<repo-name>"
|
|
30
|
-
git add <files>
|
|
31
|
-
git commit -m "describe the change"
|
|
32
|
-
```
|
|
26
|
+
Edit files with your normal file tools, then commit from the mount (`cd "$MEMORY_DIR/../<repo-name>"`) using [Commit memory changes](#commit-memory-changes). The mount's origin and credentials are already configured. Other agents read this history, so the sources matter as much as in your own memory.
|
|
33
27
|
|
|
34
28
|
The harness pushes clean commits from read/write attached repositories after the turn. If a push collides with another agent's work, it pulls with rebase and retries once. Dirty files and conflicts are not changed automatically; the harness adds a reminder to the next turn instead.
|
|
35
29
|
|
|
@@ -85,6 +79,27 @@ letta shared-memory history shared-notes --path docs/plan.md
|
|
|
85
79
|
- **Permission denied under another agent's directory** — shared repositories mount per-agent. Only your own mount (under your agent directory) is accessible; another agent's mount of the same repository is walled off by the cross-agent guard. Run `letta shared-memory sync` to get your own mount.
|
|
86
80
|
- **Shared-memory conflict reminder** — resolve the conflict in the named repository, finish the rebase or commit, and leave the repository clean. The harness retries the push after a future turn.
|
|
87
81
|
|
|
82
|
+
## Commit memory changes
|
|
83
|
+
|
|
84
|
+
Every memory commit must let someone reading `git log` or `git blame` on a memory or skill line trace back to the events that justified it. Commit each learning separately; a learning may touch several files. When a turn produces several learnings, finish and commit one before editing for the next. From the repository root, stage only that learning's files and commit in one shell call:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
git add <changed files> && git commit -m "memory(<origin>): <what was learned>
|
|
88
|
+
|
|
89
|
+
<what happened: the events that led to this learning and why it should persist>
|
|
90
|
+
|
|
91
|
+
Sources:
|
|
92
|
+
- <conversation ID> (<message IDs>), <who>, <date>: <what happened there>"
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
- `<origin>` is `self` when you edit your own memory during a conversation, or `dream` when you are a reflection or dream subagent reviewing past transcripts.
|
|
96
|
+
- Provenance belongs in the commit, not the memory file: who said or did it (name and ID), when, the quote, and the incident go in the body and `Sources:`. The memory line states only the resulting rule or fact. For example, the file says "Be concise" and the commit says "feedback 'talk more concisely' from Charles <id> on <date>". Git dates the commit, not the event, so write the event date.
|
|
97
|
+
- The subject states the learning itself, such as `memory(self): Sarah wants one commit per learning`, not the file edit.
|
|
98
|
+
- The body tells the story: what the user said or corrected, what failed or succeeded, or what pattern recurred, and why it generalizes beyond that moment. A reader should understand why the memory exists without opening the sources.
|
|
99
|
+
- `Sources:` lists the evidence precisely enough to find again, with one line on what happened at each: a conversation ID with the message IDs where it happened, a transcript or session ID, a file path, a URL, PR, or issue, or a commit hash. When the user explicitly asked for the change, cite that request. Resolve values such as `$CONVERSATION_ID` before writing them; never commit a literal variable name.
|
|
100
|
+
- Do not invent a source. If the origin cannot be identified, write `Sources: unknown` and say why in the body.
|
|
101
|
+
- Never include secrets.
|
|
102
|
+
|
|
88
103
|
## Notes and Limits
|
|
89
104
|
|
|
90
105
|
- Shared memory is not part of your system prompt. Writing to it does not change your in-context memory — for that, edit your memory blocks or MemFS files.
|
|
@@ -5,7 +5,7 @@ description: Diagnose and repair MemFS repository setup, remote sync, authentica
|
|
|
5
5
|
|
|
6
6
|
# MemFS Repository Repair
|
|
7
7
|
|
|
8
|
-
Use this skill when the Git repository behind an agent's memory is not setting up or syncing correctly. Before editing memory, load the relevant skills: `maintaining-core-memory` for root/core files, `maintaining-deferred-memory` for deferred files, and `creating-skills` for skills. Then make the edit directly with ordinary file tools so the agent with the context applies the memory guidance. Stage only changed files by explicit path and commit in the same shell call. Verify the repair before reporting success. While the harness reports a repair in progress, leave memory files and Git state to that repair worker, which edits `$MEMORY_DIR` in place.
|
|
8
|
+
Use this skill when the Git repository behind an agent's memory is not setting up or syncing correctly. Before editing memory, load the relevant skills: `maintaining-core-memory` for root/core files, `maintaining-deferred-memory` for deferred files, and `creating-skills` for skills. Then make the edit directly with ordinary file tools so the agent with the context applies the memory guidance. Stage only changed files by explicit path and commit in the same shell call, using the commit format in their *Commit memory changes* section. Verify the repair before reporting success. While the harness reports a repair in progress, leave memory files and Git state to that repair worker, which edits `$MEMORY_DIR` in place.
|
|
9
9
|
|
|
10
10
|
## Current Model
|
|
11
11
|
|