identify_unreachable_modules
Identifies orphaned source files that are never imported, flagging dead code candidates for safe deletion while automatically excluding entry points.
Instructions
Finds source files that are never imported by any other file — dead code candidates safe to delete. Automatically excludes known entry points (index.ts, main.ts, pages/, routes/, app/, api/, bin/). Use to answer: which files in this codebase are orphaned and can be safely removed?
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max unreachable files to return (default: 50) | |
| entry_points | No | Additional entry point files to exclude (absolute or relative to project_root). Common patterns like index.ts and pages/ are auto-excluded. | |
| project_root | Yes | Absolute path to the TypeScript project root (must contain tsconfig.json) |