@letta-ai/letta-code 0.13.6 → 0.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-code",
3
- "version": "0.13.6",
3
+ "version": "0.13.8",
4
4
  "description": "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -30,7 +30,7 @@
30
30
  "access": "public"
31
31
  },
32
32
  "dependencies": {
33
- "@letta-ai/letta-client": "^1.7.2",
33
+ "@letta-ai/letta-client": "1.7.5",
34
34
  "glob": "^13.0.0",
35
35
  "ink-link": "^5.0.0",
36
36
  "open": "^10.2.0",
@@ -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 `<system-reminder>
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
- </system-reminder>
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 `<system-reminder>
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
- </system-reminder>
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
- bun install # or npm install, pip install, etc.
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 in new worktrees (`npm install`, `bun install`, `pip install`, etc.)
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