@letta-ai/letta-code 0.23.2 → 0.23.3

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.23.2",
3
+ "version": "0.23.3",
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": {
@@ -1,125 +0,0 @@
1
- ---
2
- name: searching-messages
3
- description: Search past messages to recall context. Use when you need to remember previous discussions, find specific topics mentioned before, pull up context from earlier in the conversation history, or find which agent discussed a topic.
4
- ---
5
-
6
- # Searching Messages
7
-
8
- This skill helps you search through past conversations to recall context that may have fallen out of your context window.
9
-
10
- ## When to Use This Skill
11
-
12
- - User asks "do you remember when we discussed X?"
13
- - You need context from an earlier conversation
14
- - User references something from the past that you don't have in context
15
- - You want to verify what was said before about a topic
16
- - You need to find which agent discussed a specific topic (use with `finding-agents` skill)
17
-
18
- ## CLI Usage
19
-
20
- ```bash
21
- letta messages search --query <text> [options]
22
- ```
23
-
24
- ### Options
25
-
26
- | Option | Description |
27
- |--------|-------------|
28
- | `--query <text>` | Search query (required) |
29
- | `--mode <mode>` | Search mode: `vector`, `fts`, `hybrid` (default: hybrid) |
30
- | `--start-date <date>` | Filter messages after this date (ISO format) |
31
- | `--end-date <date>` | Filter messages before this date (ISO format) |
32
- | `--limit <n>` | Max results (default: 10) |
33
- | `--all-agents` | Search all agents, not just current agent |
34
- | `--agent <id>` | Explicit agent ID (overrides LETTA_AGENT_ID) |
35
- | `--agent-id <id>` | Alias for `--agent` |
36
-
37
- ### Search Modes
38
-
39
- - **hybrid** (default): Combines vector similarity + full-text search with RRF scoring
40
- - **vector**: Semantic similarity search (good for conceptual matches)
41
- - **fts**: Full-text search (good for exact phrases)
42
-
43
- ## Companion Command: messages list
44
-
45
- Use this to expand around a found needle by message ID cursor:
46
-
47
- ```bash
48
- letta messages list [options]
49
- ```
50
-
51
- | Option | Description |
52
- |--------|-------------|
53
- | `--after <message-id>` | Get messages after this ID (cursor) |
54
- | `--before <message-id>` | Get messages before this ID (cursor) |
55
- | `--order <asc\|desc>` | Sort order (default: desc = newest first) |
56
- | `--limit <n>` | Max results (default: 20) |
57
- | `--agent <id>` | Explicit agent ID (overrides LETTA_AGENT_ID) |
58
- | `--agent-id <id>` | Alias for `--agent` |
59
-
60
- ## Search Strategies
61
-
62
- ### Strategy 1: Needle + Expand (Recommended)
63
-
64
- Use when you need full conversation context around a specific topic:
65
-
66
- 1. **Find the needle** - Search with keywords to discover relevant messages:
67
- ```bash
68
- letta messages search --query "flicker inline approval" --limit 5
69
- ```
70
-
71
- 2. **Note the message_id** - Find the most relevant result and copy its `message_id`
72
-
73
- 3. **Expand before** - Get messages leading up to the needle:
74
- ```bash
75
- letta messages list --before "message-xyz" --limit 10
76
- ```
77
-
78
- 4. **Expand after** - Get messages following the needle (use `--order asc` for chronological):
79
- ```bash
80
- letta messages list --after "message-xyz" --order asc --limit 10
81
- ```
82
-
83
- ### Strategy 2: Date-Bounded Search
84
-
85
- Use when you know approximately when something was discussed:
86
-
87
- ```bash
88
- letta messages search --query "topic" --start-date "2025-12-31T00:00:00Z" --end-date "2025-12-31T23:59:59Z" --limit 15
89
- ```
90
-
91
- Results are sorted by relevance within the date window.
92
-
93
- ### Strategy 3: Broad Discovery
94
-
95
- Use when you're not sure what you're looking for:
96
-
97
- ```bash
98
- letta messages search --query "vague topic" --mode vector --limit 10
99
- ```
100
-
101
- Vector mode finds semantically similar messages even without exact keyword matches.
102
-
103
- ### Strategy 4: Find Which Agent Discussed Something
104
-
105
- Use with `--all-agents` to search across all agents and identify which one discussed a topic:
106
-
107
- ```bash
108
- letta messages search --query "authentication refactor" --all-agents --limit 10
109
- ```
110
-
111
- Results include `agent_id` for each message. Use this to:
112
- 1. Find the agent that worked on a specific feature
113
- 2. Identify the right agent to ask follow-up questions
114
- 3. Cross-reference with the `finding-agents` skill to get agent details
115
-
116
- **Tip:** Load both `searching-messages` and `finding-agents` skills together when you need to find and identify agents by topic.
117
-
118
- ## Search Output
119
-
120
- Returns search results with:
121
- - `message_id` - Use this for cursor-based expansion
122
- - `message_type` - `user_message`, `assistant_message`, `reasoning_message`
123
- - `content` or `reasoning` - The actual message text
124
- - `created_at` - When the message was sent (ISO format)
125
- - `agent_id` - Which agent the message belongs to