Skip to content

Commit cf51637

Browse files
committed
Update documentation to reflect new log structure
- Update debug logging description to reference log directory - Document daily/ and ai-context/ subdirectories in config comments - Clarify what each log output contains
1 parent 670196d commit cf51637

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Restart OpenCode. The plugin will automatically start optimizing your sessions.
4646
### Available Options
4747

4848
- **`enabled`** (boolean, default: `true`) - Enable/disable the plugin
49-
- **`debug`** (boolean, default: `false`) - Enable detailed logging to `~/.config/opencode/logs/dcp/YYYY-MM-DD.log`
49+
- **`debug`** (boolean, default: `false`) - Enable detailed logging to `~/.config/opencode/logs/dcp/`
5050
- **`model`** (string, optional) - Specific model for analysis (e.g., `"anthropic/claude-haiku-4-5"`). Uses session model or smart fallbacks when not specified.
5151
- **`showModelErrorToasts`** (boolean, default: `true`) - Show notifications when model selection falls back
5252
- **`pruningMode`** (string, default: `"smart"`) - Pruning strategy:

lib/config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ function createDefaultConfig(): void {
8989
// Enable or disable the Dynamic Context Pruning plugin
9090
"enabled": true,
9191
92-
// Enable debug logging to ~/.config/opencode/logs/dcp/YYYY-MM-DD.log
92+
// Enable debug logging to ~/.config/opencode/logs/dcp/
93+
// Outputs include:
94+
// - daily/YYYY-MM-DD.log (plugin activity, decisions, errors)
95+
// - ai-context/*.json (messages sent to AI after pruning)
9396
"debug": false,
9497
9598
// Optional: Specify a model to use for analysis instead of the session model

0 commit comments

Comments
 (0)