@letta-ai/letta-code 0.13.6 → 0.13.7
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/dist/types/protocol.d.ts +1 -1
- package/dist/types/protocol.d.ts.map +1 -1
- package/letta.js +4848 -2476
- package/package.json +1 -1
- package/skills/messaging-agents/scripts/continue-conversation.ts +6 -2
- package/skills/messaging-agents/scripts/start-conversation.ts +6 -2
- package/skills/working-in-parallel/SKILL.md +16 -2
package/package.json
CHANGED
|
@@ -22,6 +22,10 @@ import { readFileSync } from "node:fs";
|
|
|
22
22
|
import { createRequire } from "node:module";
|
|
23
23
|
import { homedir } from "node:os";
|
|
24
24
|
import { join } from "node:path";
|
|
25
|
+
import {
|
|
26
|
+
SYSTEM_REMINDER_CLOSE,
|
|
27
|
+
SYSTEM_REMINDER_OPEN,
|
|
28
|
+
} from "../../../../constants";
|
|
25
29
|
|
|
26
30
|
// Use createRequire for @letta-ai/letta-client so NODE_PATH is respected
|
|
27
31
|
// (ES module imports don't respect NODE_PATH, but require does)
|
|
@@ -92,11 +96,11 @@ function buildSystemReminder(
|
|
|
92
96
|
senderAgentName: string,
|
|
93
97
|
senderAgentId: string,
|
|
94
98
|
): string {
|
|
95
|
-
return
|
|
99
|
+
return `${SYSTEM_REMINDER_OPEN}
|
|
96
100
|
This message is from "${senderAgentName}" (agent ID: ${senderAgentId}), an agent currently running inside the Letta Code CLI (docs.letta.com/letta-code).
|
|
97
101
|
The sender will only see the final message you generate (not tool calls or reasoning).
|
|
98
102
|
If you need to share detailed information, include it in your response text.
|
|
99
|
-
|
|
103
|
+
${SYSTEM_REMINDER_CLOSE}
|
|
100
104
|
|
|
101
105
|
`;
|
|
102
106
|
}
|
|
@@ -22,6 +22,10 @@ import { readFileSync } from "node:fs";
|
|
|
22
22
|
import { createRequire } from "node:module";
|
|
23
23
|
import { homedir } from "node:os";
|
|
24
24
|
import { join } from "node:path";
|
|
25
|
+
import {
|
|
26
|
+
SYSTEM_REMINDER_CLOSE,
|
|
27
|
+
SYSTEM_REMINDER_OPEN,
|
|
28
|
+
} from "../../../../constants";
|
|
25
29
|
|
|
26
30
|
// Use createRequire for @letta-ai/letta-client so NODE_PATH is respected
|
|
27
31
|
// (ES module imports don't respect NODE_PATH, but require does)
|
|
@@ -92,11 +96,11 @@ function buildSystemReminder(
|
|
|
92
96
|
senderAgentName: string,
|
|
93
97
|
senderAgentId: string,
|
|
94
98
|
): string {
|
|
95
|
-
return
|
|
99
|
+
return `${SYSTEM_REMINDER_OPEN}
|
|
96
100
|
This message is from "${senderAgentName}" (agent ID: ${senderAgentId}), an agent currently running inside the Letta Code CLI (docs.letta.com/letta-code).
|
|
97
101
|
The sender will only see the final message you generate (not tool calls or reasoning).
|
|
98
102
|
If you need to share detailed information, include it in your response text.
|
|
99
|
-
|
|
103
|
+
${SYSTEM_REMINDER_CLOSE}
|
|
100
104
|
|
|
101
105
|
`;
|
|
102
106
|
}
|
|
@@ -11,6 +11,16 @@ Git worktrees let you check out multiple branches into separate directories. Eac
|
|
|
11
11
|
|
|
12
12
|
Learn more: [Git worktree documentation](https://git-scm.com/docs/git-worktree)
|
|
13
13
|
|
|
14
|
+
## IMPORTANT: Check Project Setup First
|
|
15
|
+
|
|
16
|
+
Before running ANY commands in a new worktree, check the project's setup instructions:
|
|
17
|
+
|
|
18
|
+
1. **Read the README** - Usually has install/build commands
|
|
19
|
+
2. **Check `claude.md` or `AGENT.md`** - Agent-specific guidance if present
|
|
20
|
+
3. **Review your `project` memory block** - Contains learned project preferences
|
|
21
|
+
|
|
22
|
+
Don't assume `npm` vs `bun` vs `pnpm` - **check the project first!**
|
|
23
|
+
|
|
14
24
|
## Quick Start
|
|
15
25
|
|
|
16
26
|
```bash
|
|
@@ -19,7 +29,10 @@ git worktree add -b fix/my-feature ../repo-my-feature main
|
|
|
19
29
|
|
|
20
30
|
# Work in the worktree
|
|
21
31
|
cd ../repo-my-feature
|
|
22
|
-
|
|
32
|
+
|
|
33
|
+
# CHECK PROJECT SETUP FIRST - then install dependencies
|
|
34
|
+
# Read README.md or check project memory block for correct command
|
|
35
|
+
bun install # Example - verify this is correct for YOUR project!
|
|
23
36
|
|
|
24
37
|
# Make changes, commit, push, PR
|
|
25
38
|
git add <files>
|
|
@@ -48,8 +61,9 @@ git worktree remove <path> # Remove worktree
|
|
|
48
61
|
|
|
49
62
|
## Tips
|
|
50
63
|
|
|
64
|
+
- **Check project setup docs before installing** - README, claude.md, project memory block
|
|
51
65
|
- Name directories clearly: `../repo-feature-auth`, `../repo-bugfix-123`
|
|
52
|
-
- Install dependencies
|
|
66
|
+
- Install dependencies using the project's package manager (check first!)
|
|
53
67
|
- Push changes before removing worktrees
|
|
54
68
|
|
|
55
69
|
## Alternative: Repo Clones
|