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: README.md
+6-12Lines changed: 6 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,11 +42,13 @@ Prunes inputs from errored tool calls after a configurable number of turns (defa
42
42
43
43
## Configuration
44
44
45
-
DCP uses its own config file:
45
+
DCP uses its own config file, searched in order:
46
46
47
-
- Global: `~/.config/opencode/dcp.jsonc` (or `dcp.json`), created automatically on first run
48
-
- Custom config directory: `$OPENCODE_CONFIG_DIR/dcp.jsonc` (or `dcp.json`), if `OPENCODE_CONFIG_DIR` is set
49
-
- Project: `.opencode/dcp.jsonc` (or `dcp.json`) in your project's `.opencode` directory
47
+
1. Global: `~/.config/opencode/dcp.jsonc` (or `dcp.json`), created automatically on first run
48
+
2. Custom config directory: `$OPENCODE_CONFIG_DIR/dcp.jsonc` (or `dcp.json`), if `OPENCODE_CONFIG_DIR` is set
49
+
3. Project: `.opencode/dcp.jsonc` (or `dcp.json`) in your project's `.opencode` directory
50
+
51
+
Each level overrides the previous, so project settings take priority over global. Restart OpenCode after making config changes.
50
52
51
53
> [!IMPORTANT]
52
54
> Defaults are applied automatically. Expand this if you want to review or override settings.
@@ -208,14 +210,6 @@ The `protectedTools` arrays in `commands` and `strategies` add to this default l
208
210
209
211
For the `compress` tool, `compress.protectedTools` ensures specific tool outputs are appended to the compressed summary. It defaults to an empty array `[]` but always inherently protects `task`, `skill`, `todowrite`, and `todoread`.
210
212
211
-
### Config Precedence
212
-
213
-
Settings are merged in order:
214
-
Defaults → Global (`~/.config/opencode/dcp.jsonc`) → Config Dir (`$OPENCODE_CONFIG_DIR/dcp.jsonc`) → Project (`.opencode/dcp.jsonc`).
215
-
Each level overrides the previous, so project settings take priority over config-dir and global, which take priority over defaults.
216
-
217
-
Restart OpenCode after making config changes.
218
-
219
213
## Impact on Prompt Caching
220
214
221
215
LLM providers cache prompts based on exact prefix matching. When DCP prunes content, it changes messages, which invalidates cached prefixes from that point forward.
0 commit comments