AI Agent Hub
Back to plugins
🤖

dsh-context-lens

Model Inference Updated 2026.09.05

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