Introduction¶
In the DeepSeek Harness (DSH) plugin ecosystem, high context usage and high Token consumption when handling long-running tasks are common problems. dsh-brain-compaction is a Cordis-based composite plugin that aims to integrate multiple community context compression plugins into a unified, verifiable system, significantly reducing context occupancy and consumption for long-running tasks.
Core Features¶
This plugin mainly addresses the following issues:
- Integrates multiple community plugins: Consolidates multiple community plugins such as
dsh-argp,dsh-memory-vault,dsh-mcp-lens,dsh-routing-suite, anddsh-context-doctorinto a single system. - Unified management and verification: Provides a unified configuration entry point, tool coordination mechanism, and verification workflow to avoid fragmented configuration across individual plugins.
- Intelligent routing (We-Need): Integrates
dsh-routing-suiteto provide an intelligent routing chain with zero additional LLM calls, selecting different processing strategies based on task type (such as fix, diagnose, build) and reducing redundant exploration. - Cross-session memory: Supports memory storage and retrieval across sessions.
Installation and Enabling¶
Installing this plugin requires a DeepSeek Harness 0.1.5 environment. When installing, you must use the file: or github: protocol; do not use link:, otherwise sub-plugin dependencies cannot be resolved.
- Run the following command to install the plugin:
dsh plugin --profile web add "github:Lsc-91-69/dsh-brain-compaction"
- After installation, you must restart
dsh webfor the changes to take effect.
Configuration and Usage¶
After installation and restart, you can use the features provided by this plugin in the following ways:
- View system status: Use the
brain_statuscommand to check the current running status of the system. - Verify configuration: Use the
brain_verifycommand to verify whether the plugin configuration has been loaded correctly. - Unified configuration: In the DSH settings panel, go to Plugins -> Brain Compaction to configure multiple namespaces in a single interface.
Compatibility and Notes¶
During use, pay attention to the following compatibility limitations:
- Version requirement: DeepSeek Harness 0.1.5 must be used.
dsh-compaction-instantunavailable: Due to upstream API changes,dsh-compaction-instantis not available on DSH 0.1.5. This component is disabled by default and requires waiting for an upstream fix.- Local dependency requirements:
dsh-headroomrequires local proxy support.dsh-sgmerequires gateway support.
- Dependency cleanup: If you previously installed the standalone version of this plugin, remove it first before using this integrated version.
Summary¶
dsh-brain-compaction links multiple context compression plugins together to provide a coordinated, unified solution. It is especially suitable for developers who need to handle complex long-running tasks and want fine-grained control over Token consumption. For more details, see the GitHub repository.