github Opencode-DCP/opencode-dynamic-context-pruning v2.1.0
v2.1.0 - Manual mode, model-specific limits, and compress fixes

latest releases: v3.1.7, v3.1.6, v3.2.4-beta0...
one month ago

What's Changed

New Features

  • Manual Mode Controls - New manual mode for context management tools, giving users direct control over when DCP tools run. Includes /dcp commands with focus arguments, ephemeral trigger prompts via chat transform, and configurable manual mode settings
  • Model-Specific Context Limits - New toolSettings.modelLimits config allows per-model context limits as absolute token values or percentages, with contextLimit as fallback (#366)

Fixes

  • Compress boundary matching - Fix compress tool to correctly search transformed message views for start/end boundary strings (#375)
  • Compress token calculation - Fix bugs related to compress tool calculating tokens incorrectly
  • Compress multi-match error - Fix compress tool incorrectly finding multiple start and end strings then erroring out
  • Map null assertions - Fix unsafe non-null assertions in Map operations (#369)

Improvements

  • Refactor: use pre-computed token counts in prune state instead of re-scanning messages
  • Refactor: simplify manual trigger return type for cleaner control interface
  • Refactor: internalize manual-mode guards into strategies
  • Docs: add manual mode config and commands to README

Contributors

Full Changelog: v2.0.2...v2.1.0

Don't miss a new opencode-dynamic-context-pruning release

NewReleases is sending notifications on new releases.