static analysis · precision instrument

Sweep your codebase
for what's rotting quietly.

CodeSweeper runs four battle-tested analyzers — knip, jscpd, ast-grep, and fallow — over any JS/TS project and folds their output into one clear report. Self-hosted. Browser or MCP agent.

knip · jscpd · ast-grep · fallow

codesweeper — sweep in progress
knip52 unused files · 10 exports
jscpd135 duplicate blocks · 2177 lines
ast-grep246 findings
fallow90 complex fns · MI 92.5
reportscn_aof7dktber → report.pdf

four lenses, one pass

Every kind of rot, in a single sweep

Dead code

knip

Unused files, exports, and dependencies — the weight nobody remembers adding.

Duplication

jscpd

Copy-paste blocks and duplicated lines that drift out of sync over time.

Anti-patterns

ast-grep

Structural rules over the AST — eval, inner HTML, loose equality, and more.

Complexity

fallow

Cyclomatic hotspots, maintainability index, and circular dependencies.

how it works

Point, sweep, report

01

Point it at code

Upload a ZIP, paste a Git URL, or hand an MCP agent a local directory.

02

Watch the sweep

Four analyzers run in sequence with live progress — prepare, scan, normalize.

03

Read the report

One normalized report. Browse it in the dashboard or export a clean PDF.

two ways to drive it

A dashboard for you, an API for your agent

Web app

Interactive dashboard

  • Upload a ZIP or paste a Git URL
  • Live progress over server-sent events
  • Tabbed report + one-click PDF export
Open the app

MCP server

Drive it from an agent

  • stdio MCP server — Claude Code, Cursor, …
  • scan_directory · scan_repo · get_report
  • Server-free PDF straight to a file path
MCP docs

Find the dead weight.

Self-hosted, single-tenant, no data leaves your machine. Run one sweep and see what your codebase has been hiding.

Start a scan