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
Copy file name to clipboardExpand all lines: CONFIGURATION.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,7 @@ Higher-tier models with longer cache windows benefit from a longer TTL. Setting
110
110
|`commit_cluster_trigger`|`object`| See below | Controls the commit-cluster historian trigger. |
111
111
|`system_prompt_injection`|`object`| See below | Controls whether and where Magic Context augments the system prompt; lets you opt specific agents out. |
112
112
|`keep_subagents`|`boolean`|`false`| Debug: keep the child sessions Magic Context spawns for its own subagents (historian, dreamer, sidekick, memory-migration) instead of deleting them on success, so their full transcript stays in the host session store for inspection. Kept sessions accumulate until cleared manually — leave `false` for normal use. |
113
+
|`todowrite`|`object`| See below |**Pi only.** Controls Magic Context's built-in `todowrite` tool and persistent task overlay. OpenCode has its own built-in `todowrite`, so this setting has no effect there. |
113
114
|`sqlite`|`object`| See below | Per-connection SQLite tuning for Magic Context's own `context.db`. |
114
115
115
116
### `language`
@@ -162,6 +163,26 @@ Controls whether and where Magic Context augments the system prompt (its guidanc
162
163
-**`enabled`** — when `false`, NO injection happens for ANY agent. Global escape hatch; Magic Context's transform and compaction still run, but nothing is added to the system prompt.
163
164
-**`skip_signatures`** — substring opt-out list. If an agent's system prompt contains any of these strings, Magic Context skips ALL injection for that call. Use it to exempt a specific custom agent by putting the signature (e.g. the default `<!-- magic-context: skip -->`) in that agent's prompt.
164
165
166
+
### `todowrite` (Pi only)
167
+
168
+
Pi does not ship a built-in `todowrite` tool, so Magic Context registers an OpenCode-parity task-list tool by default. Disable it if another Pi extension already provides todo UX:
169
+
170
+
```jsonc
171
+
{
172
+
"todowrite": {
173
+
"enabled":true, // default: true
174
+
"overlay":true// default: true
175
+
}
176
+
}
177
+
```
178
+
179
+
| Field | Type | Default | Description |
180
+
|-------|------|---------|-------------|
181
+
|`enabled`|`boolean`|`true`| Register Magic Context's Pi `todowrite` tool and `/todos` command. Set `false` when using another todo extension. |
182
+
|`overlay`|`boolean`|`true`| Show the persistent todo overlay above the editor while tasks are active. |
183
+
184
+
Pi registers tools, slash commands, and widgets once at extension boot. If you `/cd` into a project with a different `todowrite.enabled` value, run `/reload` or restart Pi for the tool surface to change.
185
+
165
186
### `sqlite`
166
187
167
188
Per-connection PRAGMAs applied to Magic Context's own `context.db` at open. These tune SQLite's runtime behaviour only — they do not change the schema or what is stored, and they do not touch OpenCode's or Pi's databases.
Copy file name to clipboardExpand all lines: assets/magic-context.schema.json
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1209,6 +1209,26 @@
1209
1209
"description": "Debug: keep the child sessions Magic Context spawns for its own subagents (historian, dreamer, sidekick, memory-migration) instead of deleting them on success. Useful for short-term inspection/data collection — their full transcript (prompt, tool calls, token usage, output) stays in the host session store. Kept sessions accumulate until manually cleared; leave false for normal use. Requires a restart to take effect.",
1210
1210
"type": "boolean"
1211
1211
},
1212
+
"todowrite": {
1213
+
"default": {
1214
+
"enabled": true,
1215
+
"overlay": true
1216
+
},
1217
+
"description": "Pi-only todowrite tool and overlay controls. Pi registers tools and widgets at extension boot, so changing this after /cd requires /reload or restart.",
1218
+
"type": "object",
1219
+
"properties": {
1220
+
"enabled": {
1221
+
"default": true,
1222
+
"description": "Pi only: register Magic Context's todowrite task-list tool. Disable if you use your own todo extension. OpenCode ships its own built-in todowrite; this setting has no effect there.",
1223
+
"type": "boolean"
1224
+
},
1225
+
"overlay": {
1226
+
"default": true,
1227
+
"description": "Pi only: show the persistent todo overlay above the editor while tasks are active.",
1228
+
"type": "boolean"
1229
+
}
1230
+
}
1231
+
},
1212
1232
"smart_drops": {
1213
1233
"default": false,
1214
1234
"description": "Content-aware reclaim of provably-superseded tool output, layered on the existing execute-pass auto-drop. When on: superseded todowrite (keep newest 1), spent ctx_reduce (keep newest 5), and zero-value meta (bash_status, bash_kill, ctx_note read/dismiss) outputs are dropped; older edits to a file are compressed to a filePath-preserving marker while the newest edit per file stays full. Only acts on passes already busting the cache, so it never originates a cache bust. Honors the protected-tag reserve. Experimental: opt-in, default off until cache stability is proven; when off the wire is byte-identical to the positional-only reclaim. Requires a restart.",
Copy file name to clipboardExpand all lines: packages/docs/src/content/docs/reference/configuration.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,9 @@ Global on/off switches for the plugin and its agent-facing surface.
36
36
|`language`| string | — | Output language for Magic Context's generated content and guidance, as a 2-letter ISO 639-1 code (e.g. "tr", "es", "de", "ja", "pt"). When set, the historian, dreamer, sidekick, and the agent-guidance block instruct the model to write its PROSE in this language while keeping all structural tokens (XML tags, the five memory category names, code identifiers, file paths) in English. USER-LEVEL ONLY (ignored in project config for security). Unset = today's behavior (model mirrors the conversation; English scaffolding). Changing it triggers one cache re-materialization; existing compartments/memories keep their original language until naturally rewritten. |
37
37
|`auto_update`| boolean | — | Enable automatic npm self-update checks for the OpenCode plugin. Security: USER-only in config loader, so hostile project configs cannot suppress updates. |
38
38
|`keep_subagents`| boolean |`false`| Debug: keep the child sessions Magic Context spawns for its own subagents (historian, dreamer, sidekick, memory-migration) instead of deleting them on success. Useful for short-term inspection/data collection — their full transcript (prompt, tool calls, token usage, output) stays in the host session store. Kept sessions accumulate until manually cleared; leave false for normal use. Requires a restart to take effect. |
39
+
|`todowrite`| object | — | Pi-only todowrite tool and overlay controls. Pi registers tools and widgets at extension boot, so changing this after /cd requires /reload or restart. |
40
+
|`todowrite.enabled`| boolean |`true`| Pi only: register Magic Context's todowrite task-list tool. Disable if you use your own todo extension. OpenCode ships its own built-in todowrite; this setting has no effect there. |
41
+
|`todowrite.overlay`| boolean |`true`| Pi only: show the persistent todo overlay above the editor while tasks are active. |
0 commit comments