Skip to content
  1. Home
  2. AI tools
  3. Dynamic Context Pruning

Dynamic Context Pruning

Plugin that trims conversation context to save tokens

What it is

An OpenCode plugin that prunes the conversation as it grows, removing material that is no longer needed so long sessions use fewer tokens. The maintainer says new work has moved to a separate proxy called Sleev, but the plugin remains available.

Good for

  • Cut token use in long sessions
  • Keep context focused on the current task

Install or run

opencode plugin add @tarquinen/opencode-dcp@latest

Command as given in the project README. Read the repository before you run anything on your machine.

Worth knowingMaintenance mode; the author recommends its successor for new features. AGPL-3.0 licensed.

Sources

The summary is ours, written from the README. Spotted an error? See how we work.

More for coding

See the topic →
  • opencode

    anomalyco/opencode

    Open-source AI coding agent with a terminal UI and desktop app

    ToolGitHub stars: 227k
  • Claude Code

    anthropics/claude-code

    Anthropic's terminal coding agent; this repo hosts issues and plugins

    ToolGitHub stars: 156k
  • Spec Kit

    github/spec-kit

    GitHub's toolkit for spec-driven development with coding agents

    ToolGitHub stars: 150k
  • Codex CLI

    openai/codex

    OpenAI's terminal coding agent that runs locally on your machine

    ToolGitHub stars: 135k