dsh-context-lens
Run the following command in DeepSeek Harness:
dsh plugin install GooDAnDReaDY/dsh-context-lens
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install GooDAnDReaDY/dsh-context-lens in your terminal (source code at https://github.com/GooDAnDReaDY/dsh-context-lens), then restart the DSH Web UI to activate the context compression tools.
About this plugin
When an AI agent confronts a multi-file repository or a wall of test and build output, the context window fills up with boilerplate function bodies, passing test lines, and build chatter. The result is inflated inference cost, model distraction, and frequent rate-limit hits. dsh-context-lens exists to fix exactly this problem.
The plugin delivers three layers of optimization. First, a multi-language AST code skeletonizer covering TypeScript, JavaScript, Python, Go, Rust, and Java: it preserves class definitions, function signatures, type declarations, and export statements while stripping internal implementations, loops, and repetitive boilerplate. Second, a fast O(n) heuristic log condenser targets outputs from Jest, Vitest, Pytest, Go test, Maven, Cargo, and more, retaining stack traces and assertion failures while filtering out PASS markers and build notices, with raw, balanced, and aggressive modes for different noise levels. Third, an active path focus mechanism lets the agent designate the files and directories it is currently editing; everything outside that focus list is automatically presented as a lightweight AST skeleton. Real-time token savings tracking, cumulative efficiency percentage badges, and a budget guard that warns at 90% completion round out the experience, cutting overall context consumption by up to 85% while keeping 100% of essential architectural interfaces and failure traces intact.
If you are driving DeepSeek Harness agents through cross-package architecture reviews, multi-file collaborative refactoring, or large-scale test debugging, and you want the model to stay locked onto key interfaces and failure paths without loading every line of implementation, dsh-context-lens is a lightweight context-optimization layer worth adding to your workflow.
Use Cases
- Agent reviewing cross-package architectures without loading every implementation line
- Filtering large Jest, Pytest, or Go test output down to failure stacks and assertion diffs
- Tracking real-time token savings and enforcing budget guards during long inference sessions
Best For
- Engineers driving multi-file collaborative development or large-scale test triage with DeepSeek Harness
- Teams focused on inference cost control and per-request context budget optimization
- Developers working in polyglot repositories mixing Rust, Go, Python, and JS/TS with AI-assisted workflows
Related Plugins
A unified suite combining hot runtime injection, task-aware thinking-mode routing, and a graded session protocol with red-team gates to sustain model diligence across long-horizon inference.
ModLens is a vision plugin for DeepSeek Harness that gives text-only models sight by reading images pasted directly into chat, with zero-config setup and multiple vision engines.
On-demand vision for text-only DeepSeek Harness agents: built-in free keyless vision chain and 14 vision tools, routing image turns as tool calls to vision models with pixel fidelity, no Python needed, one-command install.
Give text-only models in DeepSeek Harness eyes, enabling image Q&A, long-screenshot OCR, UI restoration, and GUI visual tasks.