@rohirik/pi-ltm 2.16.0 → 2.16.2
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 +21 -14
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @rohirik/pi-ltm
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
OpenLTM long-term memory extension for the [Pi coding agent](https://pi.dev). Shares the local memory database with Claude Code and OpenCode.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -8,31 +8,38 @@ Long-Term Memory (LTM) native extension for [Pi](https://pi.ai) coding agent —
|
|
|
8
8
|
pi install npm:@rohirik/pi-ltm
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
If Pi is already running, use `/reload` to load the extension. Pi records the package in `~/.pi/agent/settings.json`; use `pi install --local npm:@rohirik/pi-ltm` for a project-scoped install.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
Find the extension in the [Pi package catalog](https://pi.dev/packages/@rohirik/pi-ltm). The npm package declares the `pi-package` discovery keyword and a `pi.extensions` manifest pointing to its compiled entrypoint.
|
|
14
|
+
|
|
15
|
+
## Requirements
|
|
16
|
+
|
|
17
|
+
Install [Bun](https://bun.sh) and make it available on `PATH`. Pi loads the extension under Node; the extension runs OpenLTM's core MCP server in a Bun child process, avoiding direct Node imports of `bun:sqlite`. The core package is installed as a dependency.
|
|
17
18
|
|
|
18
19
|
## What it does
|
|
19
20
|
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
21
|
+
- Registers the memory tools returned by OpenLTM's core MCP server, including recall, learn, forget, project context, and memory relationships.
|
|
22
|
+
- On Pi's `before_agent_start` event, waits for the core connection and appends relevant project memories as a `## Prior Knowledge (LTM)` block.
|
|
23
|
+
- Uses a local SQLite database shared with the other OpenLTM adapters. If Bun or the core server cannot be found, the extension currently skips registration.
|
|
24
|
+
|
|
25
|
+
The current Pi adapter does not register a compaction hook.
|
|
23
26
|
|
|
24
27
|
## Shared memory
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
Default database path:
|
|
27
30
|
|
|
28
|
-
```
|
|
31
|
+
```text
|
|
29
32
|
~/.claude/plugins/data/OpenLtm-openltm/openltm.db
|
|
30
33
|
```
|
|
31
34
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
## Custom DB path
|
|
35
|
+
Override it before starting Pi:
|
|
35
36
|
|
|
36
37
|
```bash
|
|
37
38
|
export LTM_DB_PATH="/custom/path/openltm.db"
|
|
38
39
|
```
|
|
40
|
+
|
|
41
|
+
A memory learned in Pi is available to another OpenLTM adapter using the same database.
|
|
42
|
+
|
|
43
|
+
## Privacy and license
|
|
44
|
+
|
|
45
|
+
Memory is stored locally. Optional embedding or janitor providers can send memory content to the provider you configure; see the [repository's security notes](https://github.com/RohiRIK/OpenLtm#security-notes). MIT licensed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rohirik/pi-ltm",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.2",
|
|
4
4
|
"description": "LTM (Long-Term Memory) native extension for Pi \u2014 share memories with Claude Code and OpenCode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"url": "https://github.com/RohiRIK/OpenLtm"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|
|
32
|
+
"pi-package",
|
|
32
33
|
"pi",
|
|
33
34
|
"pi-coding-agent",
|
|
34
35
|
"ltm",
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"access": "public"
|
|
41
42
|
},
|
|
42
43
|
"dependencies": {
|
|
43
|
-
"@rohirik/openltm-core": "^2.16.
|
|
44
|
+
"@rohirik/openltm-core": "^2.16.2"
|
|
44
45
|
},
|
|
45
46
|
"peerDependencies": {
|
|
46
47
|
"bun-types": ">=1.0.0"
|