opencode-dcp (llm/opencode-dcp) Updated: 6 hours ago Add to my watchlist
Dynamic Context Pruning plugin for the OpenCode agentDCP is an OpenCode plugin that reduces token usage by pruning obsolete tool outputs from the conversation context before it is sent to the model, via automatic deduplication and an AI-assisted compress tool. It has no command-line interface of its own: OpenCode loads it in-process through OpenCode's own plugin config (opencode.jsonc). Installing this port gives you a MacPorts-managed, version-pinned copy to point OpenCode at, instead of letting OpenCode fetch @latest from the npm registry itself on every start.
Version: 3.1.15 License: GPL-3
GitHub
| Maintainers | No Maintainer |
| Categories | llm |
| Homepage | https://github.com/Opencode-DCP/opencode-dynamic-context-pruning |
| Platforms | {darwin any >= 19} |
| Variants | - |
"opencode-dcp" depends on
lib (1)
build (2)
Ports that depend on "opencode-dcp"
No ports
Port notes
opencode-dcp is an in-process OpenCode plugin, not a CLI tool: it has no `bin` entry, so this installs under ${prefix}/lib/node_modules/@tarquinen/opencode-dcp without adding anything to PATH. Point OpenCode at the installed copy by editing opencode.jsonc (global: ~/.config/opencode/opencode.jsonc, or project: ./.opencode/opencode.jsonc):
// https://github.com/Opencode-DCP/opencode-dynamic-context-pruning
"plugin": [
"${prefix}/lib/node_modules/@tarquinen/opencode-dcp/dist/index.js"
],
This replaces the npm spec, which OpenCode would otherwise resolve itself at every start regardless of what MacPorts has installed. From here, bumping this port's version and checksums and running 'port upgrade opencode-dcp' is how you control which release you're running, in place of an automatic @latest pull.
Port Health:
Loading Port Health