AngelosZou/graphlint#integrations/dsh

Dead-code detection for AI-generated codebases: graphlint builds a dependency graph, finds code unreachable from any entry point to enable codebase cleanup and functional‑effectiveness understanding, and exposes graphlint_query / graphlint_build / graphlint_config tools plus a graphlint skill to DSH agents.

Dead-code detection for AI-generated codebases, delivered as a DeepSeek Harness plugin bundle (ships in the graphlint repo under integrations/dsh). Analyzes the codebase dependency graph to find entry points and components unreachable from any entry point — so agents can self-clean and keep the LLM context window lean. DSH tools: graphlint_query (dependency-graph queries with structured results), graphlint_build (index build as a background job), graphlint_config (show/get/set for .graphlint/config.json), plus a graphlint skill that teaches the agent when and how to use the tools. Multi-language: Python (stdlib ast), Rust, C#, C/C++ (unified), TypeScript/JavaScript (tree-sitter), with framework-aware entry detection (FastAPI, Next.js, NestJS, pytest, Jest/Vitest, .NET, C/C++ main conventions). 11 warning types incl. dead_code, circular_ref, unused_import, write_only; incremental updates re-index only changed files.

Development & Runtime ★ 5 updated 2026-08-18
View on GitHub ↗

Install

dsh plugin --profile web add dsh-graphlint

npm package dsh-graphlint 0.3.1 (registry-verified 2026-08-27): dsh plugin --profile web add dsh-graphlint then restart dsh web. Documented alternative: pip install graphlint (Python >= 3.9) then graphlint install dsh --profile web — the Python package can install the same DSH plugin plus the graphlint CLI. Tools default to the session working directory and hard-refuse any root outside it.

Compatibility

DeepSeek Harness web profile. Requires the graphlint Python backend (pip install graphlint) for the CLI; the npm bundle ships the DSH tools + skill.

Details

Recent updates

graphlint query/build/config tools + skill; incremental re-indexing; 11 warning types; --public-as-entry library mode; Python API + CLI.

FAQ

Which languages are supported?
Python built-in via stdlib ast; Rust, C#, C/C++ and TypeScript/JavaScript via optional tree-sitter extras (pip install graphlint[rust|csharp|c|typescript]).
How do I install it for DeepSeek Harness?
One line: dsh plugin --profile web add dsh-graphlint, or pip install graphlint + graphlint install dsh --profile web, then restart dsh web.
Can it run in CI?
Yes — graphlint query --json --fail-on dead_code,circular_ref exits non-zero when matching warnings are found (exit 2).

Alternatives

lucky8197/dsh-code-smell · cirelir/dsh-change-review · jinguanghai/deepseek-harness-forge-plugins#evidence-first

More plugins in Development & Runtime

Browse more in Development & Runtime

Guides for Development & Runtime plugins