DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@goodandready/dsh-context-lens

Context Lens

用于语义 AST 代码骨架化以及测试/构建日志压缩的 DSH 插件

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @goodandready/dsh-context-lens@0.1.35
README兼容性版本

兼容性与来源证明

Context Lens 以 @goodandready/dsh-context-lens 发布,当前版本为 0.1.35。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/11/4

版本

0.1.35stable
2026/10/23
0.1.34stable
2026/10/19
0.1.33stable
2026/10/13
查看其余 32 个版本收起版本
0.1.32stable
2026/10/12
0.1.31stable
2026/10/12
0.1.30stable
2026/10/9
0.1.29stable
2026/10/5
0.1.28stable
2026/9/29
0.1.27stable
2026/9/28
0.1.26stable
2026/9/26
0.1.25stable
2026/9/25
0.1.24stable
2026/9/24
0.1.23stable
2026/9/22
0.1.22stable
2026/9/19
0.1.21stable
2026/9/18
0.1.20stable
2026/9/18
0.1.19stable
2026/9/18
0.1.18stable
2026/9/16
0.1.17stable
2026/9/13
0.1.16stable
2026/9/10
0.1.15stable
2026/9/9

相关插件

正在加载相关插件…

最新版
0.1.35
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
94.4 kB
文件数
13
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 4
周下载
1,587
安全扫描
✓ v0.1.35 扫描通过
最近提交
2026/10/23
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
0.1.14stable
2026/9/8
0.1.13stable
2026/9/6
0.1.12stable
2026/9/6
0.1.10stable
2026/9/4
0.1.9stable
2026/9/4
0.1.8stable
2026/9/2
0.1.7stable
2026/9/1
0.1.6stable
2026/8/31
0.1.5stable
2026/8/31
0.1.4stable
2026/8/31
0.1.3stable
2026/8/31
0.1.2stable
2026/8/31
0.1.1stable
2026/8/31
0.1.0stable
2026/8/31

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

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Client Ui Git Graph@linxin666/dsh-client-ui-git-graph外部 dsh Web GUI 插件:空会话 Git 分支选择器和 Git 图,包含实际的主机端 Git 操作与防护,作为 dsh 配置文件包Ssh@linxin666/dsh-sshdsh Web GUI 的远程 SSH 操作:主机配置存储(~/.dsh/dsh-ssh.json,可从 ~/.ssh/config 导入)、支持跳板主机的持久化 ssh2 连接池、exec / PTY Web 终端 / SFTP 传输 / 本地端口转发隧道 / 集群执行Opsdsh-ops适用于 Windows x64、Linux x64 和 macOS arm64/x64 的原生文件和 PTC 工具;仅限 Windows 的可选 Bash 负载和主机 PowerShell 集成Update@linxin666/dsh-update用于 dsh Web GUI 的自更新插件:探测 npm 上是否有更新的系列版本,并在原地运行所属配置的 pnpm 更新;可通过设置图标旁侧边栏中的触发器启动,并显示发布说明面板