Skip to content

Commit c6ab698

Browse files
authored
Merge pull request #278 from nowledge-co/dev_0902
Dev 0902
2 parents ac4059e + d69096d commit c6ab698

8 files changed

Lines changed: 622 additions & 20 deletions

File tree

integrations.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -671,32 +671,33 @@
671671
"id": "pi",
672672
"name": "Pi",
673673
"category": "coding",
674-
"type": "skills",
675-
"version": "0.7.1",
674+
"type": "plugin",
675+
"version": "0.8.0",
676676
"directory": "nowledge-mem-pi-package",
677-
"transport": "cli",
677+
"transport": "plugin+cli",
678678
"capabilities": {
679679
"workingMemory": true,
680680
"search": true,
681681
"distill": true,
682682
"autoRecall": false,
683-
"autoCapture": false,
683+
"autoCapture": true,
684684
"graphExploration": false,
685685
"status": true
686686
},
687687
"threadSave": {
688-
"method": "handoff-only",
689-
"note": "Pi does not have a native transcript importer; save-thread creates a structured handoff summary"
688+
"method": "plugin-capture",
689+
"note": "The Pi extension syncs completed session branches as Mem threads; save-thread remains available for curated handoff summaries."
690690
},
691691
"autonomy": {
692692
"bootstrap": "guided",
693693
"recall": "guided",
694694
"distill": "guided",
695-
"threads": "handoff-only",
695+
"threads": "automatic-capture",
696696
"bestResultRequires": [
697697
"Install the Pi package",
698698
"Keep nmem available on this machine",
699-
"Treat save-thread in Pi as a handoff summary, not transcript import"
699+
"Restart Pi after install or update so the extension is loaded",
700+
"Use save-thread only when you want an extra curated handoff summary"
700701
]
701702
},
702703
"install": {
@@ -711,7 +712,7 @@
711712
},
712713
"toolNaming": {
713714
"convention": "cli-direct",
714-
"note": "Skills teach agent to invoke nmem CLI directly"
715+
"note": "Skills teach agent to invoke nmem CLI directly; the extension handles automatic thread capture."
715716
},
716717
"skills": ["read-working-memory", "search-memory", "distill-memory", "save-thread", "status"],
717718
"slashCommands": []

nowledge-mem-pi-package/AGENTS.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,11 @@ nmem --json m update <memory_id> -c "updated content"
6767

6868
One strong memory is better than three weak ones.
6969

70-
## Thread Save Honesty
70+
## Thread Capture
7171

72-
Pi does not have a native transcript importer. When the user asks to save the session, create a structured handoff summary using `nmem --json t create`. Be transparent: this is a curated summary, not a verbatim transcript. Include goals, decisions, files touched, risks, and next steps.
72+
The Nowledge Mem Pi package includes an extension that automatically syncs completed Pi conversations as Mem threads. It captures the active Pi session branch after completed agent turns and at session boundaries.
73+
74+
When the user explicitly asks for a checkpoint or handoff, create a curated summary with `nmem --json t create`. Be clear that this is a focused handoff in addition to automatic transcript sync. Include goals, decisions, files touched, risks, and next steps.
7375

7476
```bash
7577
nmem --json t create \

nowledge-mem-pi-package/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to the Nowledge Mem Pi package will be documented in this fi
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.8.0] - 2026-06-10
9+
10+
### Added
11+
12+
- Added a native Pi extension that automatically syncs completed Pi sessions into Nowledge Mem threads.
13+
- Session capture is idempotent: the plugin writes stable Pi entry IDs and appends only new transcript messages.
14+
- Added final flushes for session switches, compaction, and shutdown so `/new`, resume, and exit keep thread history complete.
15+
816
## [0.7.1] - 2026-06-07
917

1018
### Changed

nowledge-mem-pi-package/README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ Cross-tool memory for Pi. Your decisions, preferences, and procedures persist ac
44

55
## What You Get
66

7-
Pi gains five skills that connect it to your Nowledge Mem knowledge base:
7+
Pi gains a native extension plus five skills:
8+
9+
- Completed Pi conversations sync into Nowledge Mem as searchable threads
10+
- Context Bundle / Working Memory, search, and distillation stay available through skills
11+
- Remote Mem works through `~/.nowledge-mem/config.json` or `NMEM_API_URL` / `NMEM_API_KEY`
812

913
| Skill | What it does |
1014
|-------|-------------|
1115
| `read-working-memory` | Loads your daily briefing at session start: focus areas, priorities, recent changes |
1216
| `search-memory` | Searches past decisions, procedures, and preferences when context would help |
1317
| `distill-memory` | Saves decisions, insights, and procedures as durable memories |
14-
| `save-thread` | Creates a structured handoff summary of the session |
18+
| `save-thread` | Creates a curated handoff summary when you explicitly want one |
1519
| `status` | Checks Nowledge Mem server connectivity |
1620

1721
## Prerequisites
@@ -37,14 +41,18 @@ pi install npm:nowledge-mem-pi
3741

3842
**Manual install:**
3943

40-
Copy the `skills/` directory into your Pi skills location:
44+
Copy the `skills/` directory and extension into your Pi config:
4145

4246
```bash
4347
# Global skills
4448
cp -r skills/* ~/.pi/agent/skills/
49+
mkdir -p ~/.pi/agent/extensions
50+
cp extensions/nowledge-mem.ts ~/.pi/agent/extensions/
4551

4652
# Or project-local skills
4753
cp -r skills/* .pi/skills/
54+
mkdir -p .pi/extensions
55+
cp extensions/nowledge-mem.ts .pi/extensions/
4856
```
4957

5058
## Verify
@@ -57,6 +65,12 @@ Start a Pi session and check connectivity:
5765

5866
Pi should run `nmem --json status` and report the server connection.
5967

68+
Then have a short Pi exchange and check recent threads:
69+
70+
```bash
71+
nmem t list --source pi -n 5
72+
```
73+
6074
## Update
6175

6276
```bash
@@ -83,7 +97,7 @@ That keeps your custom behavior durable across package updates.
8397

8498
**Server not running:** Start the Nowledge Mem desktop app, or run `nmem serve` on your server.
8599

86-
**Remote setup:** Create `~/.nowledge-mem/config.json` with `{"apiUrl": "...", "apiKey": "..."}`, or set `NMEM_API_URL` and `NMEM_API_KEY` environment variables.
100+
**Remote setup:** Create `~/.nowledge-mem/config.json` with `{"apiUrl": "...", "apiKey": "..."}`, or set `NMEM_API_URL` and `NMEM_API_KEY` environment variables. The extension uses the same config for automatic thread sync.
87101

88102
**Check status:** Ask Pi to run the `status` skill, or run `nmem status` directly.
89103

0 commit comments

Comments
 (0)