Releases: Opencode-DCP/opencode-dynamic-context-pruning
Releases · Opencode-DCP/opencode-dynamic-context-pruning
v3.1.5 - Bug fixes and injection improvements
What's Changed
- Fix: Check
hasContentbefore appending nudge to assistant text parts - Refactor: Inject assistant message IDs into last part instead of every part
- Fix: Clarify DCP ID span semantics in compress prompts
Full Changelog: v3.1.4...v3.1.5
v3.1.4 - Harden injection and pruning logic
What's Changed
- Tighten deny handling during message processing.
- Harden assistant injection guards to prevent unsafe message injection.
- Simplify hallucination stripping and add regression coverage for hook permissions and message priority.
Full Changelog: v3.1.3...v3.1.4
v3.1.3 - Bug fix and code cleanup
What's Changed
- Fix: Skip message ID injection on empty assistant messages (#463)
- Refactor: Simplify hooks imports
- Refactor: Move manual trigger handling out of hooks
Full Changelog: v3.1.2...v3.1.3
v3.1.2 - improve compression reporting and XML tag cleanup
What's Changed
- Improved compress notifications with net savings and compression ratio details.
- Hardened hallucination stripping to remove stray dcp-prefixed XML tags more reliably.
- Refined token usage formatting helpers and aligned OpenCode SDK/plugin dependencies.
Full Changelog: v3.1.0...v3.1.2
v3.1.1 - Fix hallucination stripping for dcp-prefixed XML tags
What's Changed
- Fix: Broadened hallucination stripping to catch all dcp-prefixed XML tags instead of only specific ones
Full Changelog: v3.1.0...v3.1.1
v3.1.0 - Add experimental message-mode compression
What's Changed
- Add experimental
compress.mode: "message", which lets DCP compress individual raw messages instead of only full ranges. - Prioritize compression targets by message size, keep protected refs and completed compress calls visible, and preserve IDs across multipart content for more reliable message-mode behavior.
- Improve
rangemode with multi-range compression support and addcompress.summaryBufferso active summaries can extend the effectivemaxContextLimitin long sessions. - Fix stale token and message-id handling after native
/compact, count tool arguments more accurately, and clean up prompt/schema/config behavior. - Add the
scripts/opencode-message-token-countsinspector, expand compression and token-usage test coverage, and add GitHub issue templates.
Full Changelog: v3.0.4...v3.1.0
v3.0.4 - Bug fixes and config improvements
What's Changed
- config: Raise default compress thresholds for better context management
- compress: Ignore invalid block placeholders instead of erroring
- prompts: Fix override tag parsing
Full Changelog: v3.0.3...v3.0.4
v3.0.3 - Fix compress subagent refs and metadata tag leaking
What's Changed
- Fix compress tool to rebuild message refs when operating in subagent context
- Add instruction to prevent model from outputting injected XML metadata tags
- Add compress subagent integration test
Full Changelog: v3.0.2...v3.0.3
v3.0.2 - Fix host permissions compatibility
What's Changed
- Replace
findLastwith compatible alternative in host permissions for broader runtime support
Full Changelog: v3.0.1...v3.0.2
v3.0.1 - Prompt and permissions improvements
What's Changed
- Update context management guidance in compress prompts
- Align compress gating with opencode host permissions
- Standardize dcp-system-reminder XML naming convention
- Update demo readme images
Full Changelog: v3.0.0...v3.0.1