DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-tool-lens

t

dsh-tool-lens

Manifest valid★ 4

Deterministic AST code graph and architecture intelligence tool for call hierarchies, blast radius, circular dependencies, domain slices, and full-stack API contracts.

hasBundlePatch

DeepSeek Lens (@trench-xinxin/dsh-tool-lens)

English | 简体中文

CI npm version npm downloads [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/trench-xinxin/dsh-tool-lens/blob/main/LICENSE)

[![DeepSeek Harness](https://img.shields.io/badge/DeepSeek-Harness%20Plugin-0066FF.svg)](https://github.com/deepseek-ai/deepseek-harness)

DeepSeek Lens is a high-performance, deterministic AST code graph and architectural analysis tool plugin designed for the DeepSeek Harness agent foundation.

It empowers AI Agents with deep codebase topological awareness, enabling instant module dependency exploration, disambiguated symbol call hierarchies, OOP inheritance tracing, circular dependency audits, architectural coupling metrics, Git diff change impact audits, domain architecture slicing, and full-stack API contract tracking.


⚡ Zero-Config All-in-One Launcher (No Extra Setup Required)

💡 Stand-alone Execution: You do NOT need to pre-install @deepseek-ai/dsh, nor do you need to start any background Harness services beforehand.
Running the command below will automatically download the runtime, handle port allocation, and launch the complete Web UI with Lens pre-loaded:

# 🚀 Zero-config launch full Web UI (Out of the box)
npx @trench-xinxin/dsh-tool-lens

# Or execute a one-off prompt directly in terminal
npx @trench-xinxin/dsh-tool-lens "Use lens tool to audit circular dependencies in this workspace"

Once launched, your browser can access the Web UI at the indicated local address (e.g. http://127.0.0.1:3080 or http://127.0.0.1:3081).


🌟 Core Features (v2.0)

  1. 📦 Module & Dependency Topology (dependencies)

    • Precise static analysis of ES and CommonJS import / export declarations.
    • Full Re-export Resolution: Supports export * from './mod' and named aliased re-exports.
    • Path Mapping: Automatically resolves tsconfig.json compilerOptions.paths aliases (e.g., @/*).
  2. 📞 Scope-Disambiguated Call Hierarchies (call_graph)

    • Resolves functions, arrow functions, and class member methods.
    • 4-Tier Scope Awareness: Prioritizes same-file, explicit imports (import { fn }), and namespace imports (Mod.fn), completely eliminating false positives from duplicate function names across the workspace.
    • OOP Heritage Extraction: Extracts extends and implements relations for classes and interfaces.
  3. 💥 Tiered Refactoring Blast-Radius Analysis (impact)

    • Assesses downstream and upstream impact of changing or removing symbols.
    • 3-Tier Risk Classification:
      • 🔴 Tier 0 Direct Breaking: External callers and direct importers breaking on signature changes.
      • 🟡 Tier 1 Internal Cascading: Functions/methods within the same file/class affected by cascade.
      • 🔵 Tier 2 Transitive Importers: Upstream modules transitively importing this file.
  4. 🔄 Circular Dependency Auditing (circular)

    • Tarjan SCC and DFS cycle detection algorithm detects closed loops (e.g. A -> B -> C -> A).
    • Outputs full cycle loops and involved file lists to avoid runtime initialization deadlocks.
  5. 🧭 Shortest Call Path Exploration (action: path)

    • Bidirectional BFS algorithm traces shortest execution paths and intermediate hops between any two symbols.
  6. 🧹 Dead Code & Unused Symbol Audit (action: unused)

    • Discovers unreferenced symbols and orphan files with zero afferent callers ($Ca = 0$).
  7. 🛡 Architecture Layer Governance (action: lint)

    • Enforces architectural boundary rules (e.g. views/** cannot directly import infra/**) to prevent layer decay.
  8. 📝 Git Diff Impact & Test Recommender (action: diff_impact)

    • Scans uncommitted working tree diffs or commit ranges, traces upstream breaking callers, and recommends targeted regression test suites.
  9. 🧩 Domain Architecture Subgraph Slicing (action: slice)

    • Extracts compact, high-cohesion domain slices (Ego-Networks) around seed symbols, computing cohesion scores and boundary dependencies.
  10. 🌐 Full-Stack Cross-Language API Contracts (action: api_contracts)

    • Automatically links frontend HTTP requests (fetch, axios, request) to backend route controllers (Java Spring, Python FastAPI, Go Gin), forming full-stack end-to-end call graphs.
  11. 🌍 Polyglot Ecosystem Drivers (Java / Python / Go / Rust / TS / SFC)

    • Java (.java): package, Maven/Gradle paths, class, interface, extends, implements, and class method invocations.
    • Python (.py): def, class inheritance, self.method(), and relative/absolute package imports.
    • Go (.go): package scopes, go.mod module paths, Struct Embedding, and Receiver methods.
    • Rust (.rs): mod modules, struct, trait, impl Trait for Struct, and method calls.
    • Vue 3 & Svelte (.vue, .svelte): Full support for <script setup> and <template> component references.

📄 License

MIT License © 2026 Trench / DeepSeek Lens Contributors.

Compatibility

DSH 0.2.1-rc.4: failedDSH 0.2.1-rc.3: failedDSH 0.1.7-alpha.2: failed

Versions

Latest versionPublishedSize
0.1.0——
0.1.1——
0.1.2——
0.3.0——
0.3.1——
1.0.0——
1.1.0——
1.2.0——
1.3.0——
1.3.1——
1.3.2——
1.3.3——
1.3.4——
1.3.6——
1.3.7——
1.3.8——
1.3.9——
1.4.0——
2.0.0——
2.0.1——

Comments

Loading…

Similar plugins

dsh-plugin-codegraph

by CC19990113

Structural code intelligence for DeepSeek Harness (dsh) — gives the agent codegraph and codegraph_index tools to find where a symbol is declared, what calls it, and what a change reaches, from a tre

Tools & CapabilitiesManifest valid

★ 13

MIT

TypeScript

Aug 24, 2026

dsh plugin --profile agent add dsh-plugin-codegraph-root

by cyanseek

Deterministic fault injection and autonomous resilience tests for DeepSeek Harness tools

Security & AuditManifest valid

★ 4

MIT

JavaScript

Sep 28, 2026

dsh plugin --profile web add dsh-tool-chaos

by Meteor-system

Indexes the current workspace into a relation graph and exposes one agent tool, codegraph_explore, for reachability, callers, and impact, plus a Web sidebar graph pane.

Tools & CapabilitiesManifest valid

★ 0

MIT

TypeScript

Sep 20, 2026

dsh plugin --profile web add @meteor-system/dsh-codegraph

by m1khal3v

Wraps colbymchenry/codegraph into agent tools - status, search, callers/callees, impact, explore, and more.

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 3

↓ 173/wk

MIT

TypeScript

Aug 30, 2026

dsh plugin --profile web add @m1khal3v/dsh-tool-codegraph

by jiangzhenguo

DSH bundle that registers 13 native codegraph_* tools wrapping the codegraph CLI, so agents bootstrap, maintain, and query a pre-indexed code knowledge graph (symbol query, explore, node trail, caller

Tools & CapabilitiesManifest valid

★ 21

↓ 48/wk

MIT

JavaScript

Oct 27, 2026

dsh plugin --profile web add dsh-codegraph

Codegraph CLI as eight code-intelligence tools for DSH — symbol search, callers/callees, impact analysis, codebase exploration, symbol/file reading, index status and sync.

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 0

↓ 66/wk

dsh plugin --profile web add dsh-codegraph