DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@goodandready/dsh-context-lens

Context Lens

DSH plugin for semantic AST code skeletonization and test/build log compression

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add @goodandready/dsh-context-lens@0.1.35
READMECompatibilityVersions

Compatibility and provenance

Context Lens is published as @goodandready/dsh-context-lens and currently resolves to version 0.1.35. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
11/4/2026

Versions

0.1.35stable
10/23/2026
0.1.34stable
10/19/2026
0.1.33stable
10/13/2026
Show 32 more versionsCollapse versions
0.1.32stable
10/12/2026
0.1.31stable
10/12/2026
0.1.30stable
10/9/2026
0.1.29stable
10/5/2026
0.1.28stable
9/29/2026
0.1.27stable
9/28/2026
0.1.26stable
9/26/2026
0.1.25stable
9/25/2026
0.1.24stable
9/24/2026
0.1.23stable
9/22/2026
0.1.22stable
9/19/2026
0.1.21stable
9/18/2026
0.1.20stable
9/18/2026
0.1.19stable
9/18/2026
0.1.18stable
9/16/2026
0.1.17stable
9/13/2026
0.1.16stable
9/10/2026
0.1.15stable
9/9/2026

Related plugins

Loading related plugins…

Latest
0.1.35
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
94.4 kB
Files
13
Surface
web
License
MIT
Source
npm
GitHub
★ 4
Weekly downloads
1,587
Security scan
✓ v0.1.35 scan passed
Last push
10/23/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
0.1.14stable
9/8/2026
0.1.13stable
9/6/2026
0.1.12stable
9/6/2026
0.1.10stable
9/4/2026
0.1.9stable
9/4/2026
0.1.8stable
9/2/2026
0.1.7stable
9/1/2026
0.1.6stable
8/31/2026
0.1.5stable
8/31/2026
0.1.4stable
8/31/2026
0.1.3stable
8/31/2026
0.1.2stable
8/31/2026
0.1.1stable
8/31/2026
0.1.0stable
8/31/2026

Related plugins

More verified plugins in developer-tools.

Client Ui Git Graph@linxin666/dsh-client-ui-git-graphExternal dsh web GUI plugin: a blank-session git branch selector + Git graph, with real host-side git operations and guards, as a dsh profile bundleSsh@linxin666/dsh-sshRemote SSH operations for the dsh web GUI: host config store (~/.dsh/dsh-ssh.json, import from ~/.ssh/config), a persistent ssh2 connection pool with jump-host support, exec / PTY web terminal / SFTP transfer / local port-forward tunnels / cluster executiOpsdsh-opsNative file and PTC tools for DSH on Windows x64, Linux x64 and macOS arm64/x64; Windows-only optional Bash payload and host PowerShell integrationUpdate@linxin666/dsh-updateSelf-update plugin for the dsh web GUI: probes npm for newer family releases and runs the owning profile's pnpm update in place, from a sidebar trigger beside the settings seat with a release-notes panel

README

📦 @goodandready/dsh-context-lens

Semantic AST Code Skeletonizer & Test Log Condenser for DeepSeek Harness

🇬🇧 English • 🇷🇺 Русский • 🇨🇳 中文说明

⭐ If you like this plugin, please star it on GitHub — it shows me that the plugin is useful to you and motivates me to keep developing it.

🐛 If you find a bug or would like to request a feature, open a GitHub issue in any language — I will review your proposal and implement useful suggestions in a future plugin version.

⚡ Overview & Semantic Compression Focus

Note on DSH Core vs Plugin Responsibility:
Context budgeting, token counting, tool result pruning (head/middle/tail), and spilling long results to disk (dsh-spill-policy, dsh-compaction-tool-result-pruner, dsh-token-meter) are natively managed by the DSH core (>= 0.1.5).
dsh-context-lens focuses strictly on what the core does not do — semantic compression:

  1. AST Code Skeletons: Signatures, interfaces, exported types, and doc comments instead of whole function/method bodies across 9+ languages.
  2. Path-Based Focus: Full code for active editing targets while surrounding workspace files remain skeletonized.
  3. Test & Build Log Compression: Failures, errors, stack traces, and test summary instead of raw multi-megabyte terminal streams.
graph LR
    subgraph AgentInvocation [Agent Tool Invocations]
        CodeTool["context_lens_code(filePath / code)"] --> Lens[dsh-context-lens Semantic Engine]
        LogTool["context_lens_log(text, auto: true)"] --> Lens
    end

    subgraph Lens [Semantic Processing]
        Lens --> Focus{Path Focus Check}
        Focus -->|File in Focus| FullCode[Direct Read: Full Implementation]
        Focus -->|Surrounding Files| AST[Direct Read / AST Skeletonizer]
        Lens --> LogCompress[Log Condenser: Errors, Stack & Summary]
    end

    subgraph Output [Optimized Context]
        FullCode --> Agent[🤖 AI Agent Context]
        AST --> Agent
        LogCompress --> Agent
    end

    style AgentInvocation fill:#1e1e2e,stroke:#89b4fa,stroke-width:2px,color:#cdd6f4
    style Lens fill:#181825,stroke:#cba6f7,stroke-width:2px,color:#cdd6f4
    style Output fill:#11111b,stroke:#a6e3a1,stroke-width:2px,color:#cdd6f4

✨ Features

1. 🧬 Multi-Language AST Structural Skeletonizer

  • Supported Languages: TypeScript, JavaScript, Python, Go, C/C++, Rust, Java, and SQL DDL.
  • Structural Preservation: Retains imports, classes, structs, interfaces, exported types, function signatures, and doc comments while discarding inner implementation bodies.
  • Multiline Signature Support: Seamlessly accumulates complex multiline generic arguments, return types, and parameter lists up to block delimiters.
  • Pure Regex Implementation: Zero heavy native dependencies or binary parser overhead; runs lightning-fast across any platform.

2. 📋 Intelligent Test & Build Log Condenser

  • Supported Test Runners & Tools: Jest, Vitest, Pytest, node --test, Go test, Cargo, Webpack, Vite, TSC, Maven, Gradle.
  • Targeted Extraction: Identifies and preserves critical error messages, stack traces, assertion differences (Expected ... Received ...), and failure context windows.
  • Successful Run Summarization: Automatically collapses passing runs (0 failures) into concise summary lines.
  • Auto-Mode Discrimination: Evaluates command context and text signatures to ensure normal non-test outputs are preserved untouched for core pruning.
  • 3 Aggressiveness Modes:
    • raw: Removes noise lines while keeping general execution order.
    • balanced: Preserves failure sections with surrounding context windows (default).
    • aggressive: Extracts strictly error lines and stack frames.

3. 🎯 Path Focus Management

  • Designate specific files or folders as active working targets for the current task.
  • Files in focus bypass AST skeletonization, returning complete implementation code.
  • Focus state is strictly scoped per session (sessionId).

🛠️ Agent Tools Reference (Consolidated to 2 Tools)

All tools strictly conform to the DeepSeek Harness tool specification by providing output.render returning structured ContentBlock[] arrays ([{ type: 'text', text: ... }]), ensuring 100% session stability.

Tool NameAction / ModeParametersDescription
context_lens_codeaction: "skeleton" (default)filePath?, code?, language?, maxDepth?, sessionId?Generates a clean structural AST skeleton directly from filePath (reading file without preliminary read_file token waste) or from code. If file is in active session focus, returns full implementation
context_lens_codeaction: "focus"paths: string[], sessionId?Sets active focus file paths or patterns for the current session
context_lens_codeaction: "get_focus"sessionId?Retrieves active focus paths for the session
context_lens_codeaction: "clear_focus"sessionId?Clears focus paths for the session
context_lens_logN/Atext (or log), mode?, maxLines?, auto?, command?Compresses test and build output logs, preserving failures, stack traces, and summary. In auto: true, only runs on recognized test/build outputs

⚙️ Configuration Schema

Configured via the DSH Settings page (plugins.row.config / plugins.item):

PropertyTypeDefaultDescription
compressionModestring'balanced'Log compression aggressiveness (raw, balanced, aggressive)
astSkeletonMaxDepthnumber3Max depth for AST skeleton generation
autoCompressThresholdnumber4000Character threshold for auto-compressing test/build logs when invoking context_lens_log with auto: true (0 to disable)

📄 License

MIT © GooDAnDReaDY