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
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,11 @@ LLM providers like Anthropic and OpenAI cache prompts based on exact prefix matc
43
43
44
44
## Configuration
45
45
46
-
DCP uses its own config file (`~/.config/opencode/dcp.jsonc` or `.opencode/dcp.jsonc`), created automatically on first run.
46
+
DCP uses its own config file:
47
+
48
+
- Global: `~/.config/opencode/dcp.jsonc` (or `dcp.json`), created automatically on first run
49
+
- Custom config directory: `$OPENCODE_CONFIG_DIR/dcp.jsonc` (or `dcp.json`), if `OPENCODE_CONFIG_DIR` is set
50
+
- Project: `.opencode/dcp.jsonc` (or `dcp.json`) in your project’s `.opencode` directory
47
51
48
52
<details>
49
53
<summary><strong>Default Configuration</strong> (click to expand)</summary>
@@ -108,7 +112,9 @@ The `protectedTools` arrays in each strategy add to this default list.
108
112
109
113
### Config Precedence
110
114
111
-
Settings are merged in order: **Defaults** → **Global** (`~/.config/opencode/dcp.jsonc`) → **Project** (`.opencode/dcp.jsonc`). Each level overrides the previous, so project settings take priority over global, which takes priority over defaults.
115
+
Settings are merged in order:
116
+
Defaults → Global (`~/.config/opencode/dcp.jsonc`) → Config Dir (`$OPENCODE_CONFIG_DIR/dcp.jsonc`) → Project (`.opencode/dcp.jsonc`).
117
+
Each level overrides the previous, so project settings take priority over config-dir and global, which take priority over defaults.
0 commit comments