DeadCode
Detect and remove unused exports, dead routes, orphaned CSS, and unreferenced components in TypeScript/React/Next.js projects.
⭐ Star this repo if you care about bundle size — it helps other devs find DeadCode!
Power your agent
Install from the publisher. Not a PlugMCP endpoint.
Host a copy with our keys and logs.
No packaged release in the registry yet. Follow the repository README.
Remote URL or a command on your machine? How the two installs differ
Run on PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
LaunchFrom the publisher
# Install from source (PyPI publishing pending)
pip install git+https://github.com/Coding-Dev-Tools/deadcode.git
# Scan current project
deadcode scan
# Scan a specific project
deadcode scan -p /path/to/project
# Preview removable dead code
deadcode remove --dry-run
# Remove confirmed dead code
deadcode remove
deadcode scanScan a TypeScript/React/Next.js project for all categories of dead code.
deadcode scan # Scan current directory
deadcode scan -p /path/to/project # Scan specific project
deadcode scan --json-output # Machine-readable JSON
deadcode scan -c unused_export # Filter by category
deadcode scan -i "generated/" # Ignore paths
deadcode removeRemove dead code after previewing. Always preview with --dry-run first.
deadcode remove --dry-run # Preview changes (no writes)
deadcode remove # Apply removals
deadcode remove -c orphaned_css # Remove only orphaned CSS
deadcode statsQuick overview of dead code in your project.
deadcode stats
--dry-run preview shows exactly what will be deleted first; remove only blanks self-contained single-line findings and skips (with a warning) anything spanning multiple lines, so it never leaves half-deleted, broken code# Ignore specific paths
deadcode scan -i "generated/" -i "**/*.generated.ts"
# Include only matching paths (whitelist)
deadcode scan --include "src/" # Only scan src/
deadcode scan --include "src/" --include "lib/" # Multiple dirs
deadcode remove --dry-run --include "packages/" # Works with remove
deadcode stats --include "app/" # Works with stats
--include accepts gitignore-style patterns and is repeatable (specify multiple targets).
When both --include and -i/--ignore are used, --include is applied first, then
--ignore excludes any matches within the included paths.
Default ignores: node_modules/, .git/, .next/, dist/, build/, public/, static/
DeadCode is one of 11 tools in the Revenue Holdings suite. One license covers all CLI tools.
🔹 No lock-in: CLI works fully offline on the free tier — no telemetry, no phone-home. 🔹 Annual billing: Save 20%.
# Generate report for CI
deadcode scan --json-output > deadcode-report.json
# Fail CI if any dead routes found
deadcode scan -c dead_route --fail 1
# Fail CI if total findings exceed threshold
deadcode scan --fail 10
# Track dead code trends over time
deadcode scan --json-output > baseline-$(date +%Y-%m-%d).json
Create a .deadcode.yml file in your project root:
# .deadcode.yml
ignore:
- "generated/"
- "**/*.generated.ts"
- "src/legacy/"
categories:
- unused_export
- dead_route
- orphaned_css
- unreferenced_component
# Exit with code 1 if findings >= this number (for CI gating)
fail_threshold: 10
CLI flags override config file settings.
.deadcode.yml — project configuration (ignore patterns, categories)deadcode-baseline.json — saved scan results for trend trackingMIT — see LICENSE
Find and remove dead code in React, Next.js, and Python projects
Tools
No tool list yet. Remote servers get one after the first health check.
FAQ
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
No required environment variable is listed on this record.
Deadcode runs locally over stdio.
Last checked 2026-10-28. Find and remove dead code in React, Next.js, and Python projects