repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

opencode/dcp.jsonc

Raw
{
	"$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json",
	// Protect from pruning for <turns> message turns past tool invocation
	"turnProtection": {
		"enabled": true,
		"turns": 7
	},
	// Unified context compression tool and behavior settings
	"compress": {
		// Soft upper threshold: above this, DCP keeps injecting strong
		// compression nudges (based on nudgeFrequency), so compression is
		// much more likely. Accepts: number or "X%" of model context window.
		"maxContextLimit": "85%",
		// Soft lower threshold for reminder nudges: below this, turn/iteration
		// reminders are off (compression less likely). At/above this, reminders
		// are on. Accepts: number or "X%" of model context window.
		"minContextLimit": "75%",
		// Optional per-model override for maxContextLimit by providerID/modelID.
		// If present, this wins over the global maxContextLimit.
		// Accepts: number or "X%".
		// Example:
		// "modelMaxLimits": {
		//     "openai/gpt-5.3-codex": 120000,
		//     "anthropic/claude-sonnet-4.6": "80%"
		// },
		// Optional per-model override for minContextLimit.
		// If present, this wins over the global minContextLimit.
		// "modelMinLimits": {
		//     "openai/gpt-5.3-codex": 50000,
		//     "anthropic/claude-sonnet-4.6": "25%"
		// },
		// How often the context-limit nudge fires (1 = every fetch, 5 = every 5th)
		"nudgeFrequency": 7
	}
}