@cortexkit/pi-magic-context 0.41.4 → 0.42.0
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 +3 -5
- package/dist/{index-jc59f2q7.js → index-yb21jtfd.js} +25733 -23390
- package/dist/index.js +9218 -8042
- package/dist/subagent-entry.js +3 -5
- package/package.json +1 -1
- package/dist/index-147qn1yq.js +0 -466
- package/dist/prompt-context-g3abnc66.js +0 -76
- package/dist/safe-notification-target-em2xnn1k.js +0 -41
package/README.md
CHANGED
|
@@ -17,7 +17,6 @@ Magic Context is a context engine that keeps long Pi sessions productive by:
|
|
|
17
17
|
| **`<session-history>` injection** | Prepends compressed history into the system prompt every turn so the agent never loses context |
|
|
18
18
|
| **Project memories** | Persistent cross-session knowledge store with embedding-based semantic search |
|
|
19
19
|
| **Dreamer** | Scheduled background subagent that consolidates, verifies, archives, and improves stored memories |
|
|
20
|
-
| **`/ctx-aug`** | On-demand sidekick that augments the next turn with relevant memories |
|
|
21
20
|
| **Auto-search hint** | When user prompts mention previously-discussed topics, appends a compact memory hint |
|
|
22
21
|
| **Note nudges** | Surface deferred intentions at natural work boundaries (commit, todo completion, historian publication) |
|
|
23
22
|
| **Cross-harness sharing** | Memories written from OpenCode appear in Pi (and vice versa) for the same project |
|
|
@@ -35,7 +34,7 @@ npx @cortexkit/magic-context@latest setup --harness pi
|
|
|
35
34
|
This handles everything for you:
|
|
36
35
|
1. Adds `npm:@cortexkit/pi-magic-context` to Pi's `packages` array in `~/.pi/agent/settings.json` (the same place `pi install` writes to)
|
|
37
36
|
2. Creates `~/.config/cortexkit/magic-context.jsonc` with defaults
|
|
38
|
-
3. Prompts you for historian, dreamer,
|
|
37
|
+
3. Prompts you for historian, dreamer, and embedding model choices
|
|
39
38
|
4. Warns about provider-specific gotchas (e.g. GitHub Copilot reasoning models need an explicit `thinking_level`)
|
|
40
39
|
|
|
41
40
|
If you'd rather register the Pi extension package directly with Pi (skipping the wizard), use Pi's own installer:
|
|
@@ -74,7 +73,7 @@ Verify with:
|
|
|
74
73
|
npx @cortexkit/magic-context@latest doctor --harness omp
|
|
75
74
|
```
|
|
76
75
|
|
|
77
|
-
OMP's legacy Pi loader maps `@earendil-works/*` imports to its bundled `@oh-my-pi/*` runtime. Magic Context identifies OMP from `@oh-my-pi/pi-utils`'s in-process `APP_NAME` through the running host's module graph, not from an executable basename, so compiled and symlinked launches behave the same. It also re-invokes the current host executable for historian
|
|
76
|
+
OMP's legacy Pi loader maps `@earendil-works/*` imports to its bundled `@oh-my-pi/*` runtime. Magic Context identifies OMP from `@oh-my-pi/pi-utils`'s in-process `APP_NAME` through the running host's module graph, not from an executable basename, so compiled and symlinked launches behave the same. It also re-invokes the current host executable for historian and dreamer children, so OMP children remain OMP processes.
|
|
78
77
|
|
|
79
78
|
---
|
|
80
79
|
|
|
@@ -109,7 +108,7 @@ Session discovery follows the active host. Relative `pi.subagent_extensions` are
|
|
|
109
108
|
|
|
110
109
|
OMP uses `historian.omp ?? historian.pi` and `dreamer.omp ?? dreamer.pi`; leaving the OMP blocks absent preserves existing Pi-compatible configuration. OMP supports `off`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max`, `inherit`, and `auto` thinking levels.
|
|
111
110
|
|
|
112
|
-
For the full configuration reference (including dreamer,
|
|
111
|
+
For the full configuration reference (including dreamer, auto-search, and experimental features), see [CONFIGURATION.md](https://github.com/cortexkit/magic-context/blob/master/CONFIGURATION.md) in the main repository — OpenCode, Pi, and OMP share the same schema.
|
|
113
112
|
|
|
114
113
|
---
|
|
115
114
|
|
|
@@ -124,7 +123,6 @@ All commands trigger `triggerTurn: false` (never sent to the LLM):
|
|
|
124
123
|
| `/ctx-recomp` | Rebuild compartments from raw history (heavy operation) |
|
|
125
124
|
| `/ctx-wrapup [messages_to_keep]` | Compact older live history while keeping the newest N messages raw |
|
|
126
125
|
| `/ctx-dream` | Trigger a dream run on demand |
|
|
127
|
-
| `/ctx-aug` | Augment your next prompt with sidekick-retrieved memories |
|
|
128
126
|
|
|
129
127
|
---
|
|
130
128
|
|