@henryqw/pi-session-recall 0.2.4 → 0.2.5
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/README.md +24 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# `@henryqw/pi-session-recall`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Find decisions and context in past Pi sessions through a local FTS5 index with no model calls.
|
|
4
4
|
|
|
5
|
-
The
|
|
5
|
+
The bundled `pi-session-pattern-miner` skill finds repeated work that may deserve automation.
|
|
6
6
|
|
|
7
7
|
## Why
|
|
8
8
|
|
|
9
|
-
- **Created for**:
|
|
10
|
-
- **Advantage**:
|
|
9
|
+
- **Created for**: Pi users who need earlier decisions without carrying every transcript in current context.
|
|
10
|
+
- **Advantage**: Search stays local and adds no standing prompt cost.
|
|
11
11
|
|
|
12
12
|
## Install
|
|
13
13
|
|
|
@@ -17,6 +17,26 @@ pi install npm:@henryqw/pi-session-recall
|
|
|
17
17
|
|
|
18
18
|
## Use
|
|
19
19
|
|
|
20
|
+
Start discovery with a distinctive query:
|
|
21
|
+
|
|
22
|
+
```json
|
|
23
|
+
{ "query": "database migration rollback" }
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
`session_search` returns ranked sessions. The top result includes nearby messages and session bookends.
|
|
27
|
+
|
|
28
|
+
Use IDs from that result to ask for more context:
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
{
|
|
32
|
+
"sessionId": "<returned sessionId>",
|
|
33
|
+
"aroundMessageId": "<returned message entryId>",
|
|
34
|
+
"window": 10
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The follow-up returns up to ten messages before and after that anchor on the selected branch.
|
|
39
|
+
|
|
20
40
|
| Surface | Type | Purpose |
|
|
21
41
|
| --- | --- | --- |
|
|
22
42
|
| `session_search` | tool | Search past sessions or inspect one. |
|
package/package.json
CHANGED