dsh-lens
Real-time code feedback for DeepSeek Harness — LSP, linters, formatters, type-checking, and structural analysis.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:NexusAgentX/dsh-lens说明文档
阅读完整 README ↗dsh-lens
Real-time code feedback for DeepSeek Harness: LSP, linters, formatters, type-checking, and structural analysis while the agent writes.
Current release: dsh-lens@0.2.0.
English | 中文
What it does
This is a host-native port of pi-lens. The analysis engine stays in pi-lens; this plugin is the DeepSeek Harness adapter.
On every write / edit / bash mutation it runs the same pipeline pi-lens uses inside Pi:
- format queue / safe autofix
- LSP file sync and diagnostics
- ast-grep, tree-sitter, fact rules, and language scanners
- cascade diagnostics on likely neighbors
- turn-end blockers and advisories injected into the next model request
It also registers the full agent-facing tool set, the /lens-* commands, bundled pi-lens skills, and a WebUI chip/dock.
Standalone CLI (review graph, same as pi-lens build-graph):
npx dsh-lens build-graph --cwd .
npx dsh-lens status
Install
dsh plugin --profile web add dsh-lens
Or from git:
dsh plugin --profile web add github:NexusAgentX/dsh-lens
Do not also attach pi-lens-mcp / official MCP-wrapped pi-lens against the same workspace — that double-starts language servers.
Tools
Always available:
lens_diagnostics— cached / project diagnostic state (delta/all/full)lsp_diagnostics— file- or directory-scoped LSP diagnosticssymbol_search— ranked identifier searchmodule_report/project_reportread_symbol/read_enclosing
Also registered (dsh has no dynamic-tool API, so they stay visible):
ast_grep_search/ast_grep_replace/ast_grep_outline/ast_grep_dumplsp_navigation