You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use bunx --bun to avoid node shebang delegation, add min-release-age detection, promote compaction_markers to stable config, respect pinned plugin versions in doctor
Copy file name to clipboardExpand all lines: CONFIGURATION.md
+3-10Lines changed: 3 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ The setup wizard adds this automatically.
19
19
If something isn't working, run the doctor to auto-detect and fix common issues:
20
20
21
21
```bash
22
-
bunx @cortexkit/opencode-magic-context@latest doctor
22
+
bunx --bun @cortexkit/opencode-magic-context@latest doctor
23
23
```
24
24
25
25
Doctor checks: OpenCode installation, plugin registration, `magic-context.jsonc` existence, conflicts (compaction, DCP, OMO hooks), and TUI sidebar configuration. It auto-fixes what it can.
@@ -71,6 +71,7 @@ Higher-tier models with longer cache windows benefit from a longer TTL. Setting
71
71
|`compartment_token_budget`|`number`|`20000`| Token budget for historian input chunks. |
72
72
|`historian_timeout_ms`|`number`|`300000`| Timeout per historian call (ms). |
73
73
|`history_budget_percentage`|`number` (0–1) |`0.15`| Fraction of usable context reserved for the history block. Triggers compression when exceeded. |
74
+
|`compaction_markers`|`boolean`|`true`| Inject compaction boundaries into OpenCode's DB after historian publishes. Reduces transform input size for long sessions. |
74
75
|`commit_cluster_trigger`|`object`| See below | Controls the commit-cluster historian trigger. |
75
76
76
77
### `commit_cluster_trigger`
@@ -268,14 +269,6 @@ It is useful when starting a new session. It's better to choose a fast and cheap
When enabled, after historian publishes compartments a compaction boundary is injected into OpenCode's message/part tables. This causes `filterCompacted` to stop at the boundary, dramatically reducing the number of messages processed per transform pass.
278
-
279
272
### `experimental_user_memories`
280
273
281
274
| Key | Type | Default |
@@ -332,6 +325,7 @@ When enabled, dreamer analyzes which files each session's agent reads most frequ
332
325
"protected_tags":10,
333
326
"auto_drop_tool_age":50,
334
327
"history_budget_percentage":0.15,
328
+
"compaction_markers":true,
335
329
336
330
"historian": {
337
331
"model":"github-copilot/gpt-5.4",
@@ -364,7 +358,6 @@ When enabled, dreamer analyzes which files each session's agent reads most frequ
@@ -136,21 +136,21 @@ The setup wizard handles this automatically if it detects an oh-my-openagent or
136
136
Already installed but something isn't working? Run the doctor to check and auto-fix configuration issues:
137
137
138
138
```bash
139
-
bunx @cortexkit/opencode-magic-context@latest doctor
139
+
bunx --bun @cortexkit/opencode-magic-context@latest doctor
140
140
```
141
141
142
142
Doctor checks for conflicts (compaction, DCP, OMO hooks), ensures the TUI sidebar is configured, verifies the plugin is registered, and checks the npm cache — fixing what it can automatically.
143
143
144
144
Use `--force` to force-clear the plugin cache even when versions match (fixes broken transitive dependencies):
145
145
146
146
```bash
147
-
bunx @cortexkit/opencode-magic-context@latest doctor --force
147
+
bunx --bun @cortexkit/opencode-magic-context@latest doctor --force
148
148
```
149
149
150
150
Hit a real bug? Use `--issue` to collect environment, sanitized config, and the last 200 log lines into a ready-to-submit report. It can also open the issue directly via `gh` if you have it installed:
151
151
152
152
```bash
153
-
bunx @cortexkit/opencode-magic-context@latest doctor --issue
153
+
bunx --bun @cortexkit/opencode-magic-context@latest doctor --issue
154
154
```
155
155
156
156
---
@@ -312,7 +312,7 @@ The TUI plugin is configured automatically by the setup wizard and the `doctor`
312
312
313
313
### Startup conflict detection
314
314
315
-
On startup, Magic Context checks for common configuration problems — OpenCode's built-in compaction being enabled, DCP plugin being active alongside Magic Context, or conflicting oh-my-openagent hooks. When conflicts are detected, it warns the active session with a fix suggestion pointing to `bunx @cortexkit/opencode-magic-context@latest doctor`.
315
+
On startup, Magic Context checks for common configuration problems — OpenCode's built-in compaction being enabled, DCP plugin being active alongside Magic Context, or conflicting oh-my-openagent hooks. When conflicts are detected, it warns the active session with a fix suggestion pointing to `bunx --bun @cortexkit/opencode-magic-context@latest doctor`.
{key: "enabled",label: "Enabled",type: "boolean",description: "Enable the magic-context plugin",section: "General"},
66
66
{key: "ctx_reduce_enabled",label: "Agent Controlled Reduction",type: "boolean",description: "Enable agent controlled reductions via ctx_reduce tool. When enabled, agent is prompted and nudged to choose what messages and tool calls to drop periodically. If disabled the system still works via auto drops based on message ages.",section: "General"},
67
67
{key: "drop_tool_structure",label: "Drop Tool Structure",type: "boolean",description: "When enabled, dropped tool calls are fully removed. When disabled, tool input/output is truncated in place so tool structure stays visible.",section: "General",defaultValue: false},
68
+
{key: "compaction_markers",label: "Compaction Markers",type: "boolean",description: "Inject boundary into OpenCode's DB so transform only processes the live tail after historian compaction. Significantly reduces transform input size for long sessions.",section: "General",defaultValue: true},
68
69
// Thresholds
69
70
// cache_ttl and execute_threshold_percentage are rendered as custom PerModelField components
70
71
{key: "nudge_interval_tokens",label: "Nudge Interval (tokens)",type: "number",description: "Token interval between rolling ctx_reduce nudges.",section: "General"},
@@ -853,12 +854,10 @@ function ConfigForm(props: {
0 commit comments