File tree Expand file tree Collapse file tree 2 files changed +29
-29
lines changed
Expand file tree Collapse file tree 2 files changed +29
-29
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,17 @@ DCP uses its own config file (`~/.config/opencode/dcp.jsonc` or `.opencode/dcp.j
7070 " pruneThinkingBlocks" : {
7171 " enabled" : false
7272 },
73+ // Exposes a prune tool to your LLM to call when it determines pruning is necessary
74+ " pruneTool" : {
75+ " enabled" : true ,
76+ // Additional tools to protect from pruning
77+ " protectedTools" : [],
78+ // Nudge the LLM to use the prune tool (every <frequency> tool results)
79+ " nudge" : {
80+ " enabled" : true ,
81+ " frequency" : 10
82+ }
83+ },
7384 // (Legacy) Run an LLM to analyze what tool calls are no longer relevant on idle
7485 " onIdle" : {
7586 " enabled" : false ,
@@ -81,17 +92,6 @@ DCP uses its own config file (`~/.config/opencode/dcp.jsonc` or `.opencode/dcp.j
8192 " strictModelSelection" : false ,
8293 // Additional tools to protect from pruning
8394 " protectedTools" : []
84- },
85- // Exposes a prune tool to your LLM to call when it determines pruning is necessary
86- " pruneTool" : {
87- " enabled" : false ,
88- // Additional tools to protect from pruning
89- " protectedTools" : [],
90- // Nudge the LLM to use the prune tool (every <frequency> tool results)
91- " nudge" : {
92- " enabled" : true ,
93- " frequency" : 10
94- }
9595 }
9696 }
9797}
Original file line number Diff line number Diff line change @@ -240,19 +240,19 @@ const defaultConfig: PluginConfig = {
240240 pruneThinkingBlocks : {
241241 enabled : false
242242 } ,
243- onIdle : {
244- enabled : false ,
245- showModelErrorToasts : true ,
246- strictModelSelection : false ,
247- protectedTools : [ ...DEFAULT_PROTECTED_TOOLS ]
248- } ,
249243 pruneTool : {
250- enabled : false ,
244+ enabled : true ,
251245 protectedTools : [ ...DEFAULT_PROTECTED_TOOLS ] ,
252246 nudge : {
253247 enabled : true ,
254248 frequency : 10
255249 }
250+ } ,
251+ onIdle : {
252+ enabled : false ,
253+ showModelErrorToasts : true ,
254+ strictModelSelection : false ,
255+ protectedTools : [ ...DEFAULT_PROTECTED_TOOLS ]
256256 }
257257 }
258258}
@@ -326,6 +326,17 @@ function createDefaultConfig(): void {
326326 "pruneThinkingBlocks": {
327327 "enabled": false
328328 },
329+ // Exposes a prune tool to your LLM to call when it determines pruning is necessary
330+ "pruneTool": {
331+ "enabled": true,
332+ // Additional tools to protect from pruning
333+ "protectedTools": [],
334+ // Nudge the LLM to use the prune tool (every <frequency> tool results)
335+ "nudge": {
336+ "enabled": true,
337+ "frequency": 10
338+ }
339+ },
329340 // (Legacy) Run an LLM to analyze what tool calls are no longer relevant on idle
330341 "onIdle": {
331342 "enabled": false,
@@ -337,17 +348,6 @@ function createDefaultConfig(): void {
337348 "strictModelSelection": false,
338349 // Additional tools to protect from pruning
339350 "protectedTools": []
340- },
341- // Exposes a prune tool to your LLM to call when it determines pruning is necessary
342- "pruneTool": {
343- "enabled": false,
344- // Additional tools to protect from pruning
345- "protectedTools": [],
346- // Nudge the LLM to use the prune tool (every <frequency> tool results)
347- "nudge": {
348- "enabled": true,
349- "frequency": 10
350- }
351351 }
352352 }
353353}
You can’t perform that action at this time.
0 commit comments