get_dead_code
Scan a repository to identify unused exports, unreachable files, and zombie packages tiered by confidence, so you can plan cleanup sweeps and prioritize deletion-ready findings.
Instructions
Unused exports, unreachable files, zombie packages — tiered by confidence.
For a cleanup sweep, not a targeted fix.
Args:
kind: unreachable_file | unused_export | unused_internal | zombie_package.
min_confidence: default 0.4 (0.7 = cleanup-ready), or a tier name.
tier: "high" | "medium" | "low".
safe_only: deletion-ready findings only.
limit: max findings per tier (up to 25).
directory, owner: path-prefix or primary-owner filter.
group_by: "directory" | "owner".
include_internals: also scan private symbols.
include_zombie_packages, no_unreachable, no_unused_exports,
include_unverified: switch finding kinds on or off.
finding_id: one finding by its ``id``.
repo: usually omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| repo | No | ||
| tier | No | ||
| limit | No | ||
| owner | No | ||
| group_by | No | ||
| directory | No | ||
| safe_only | No | ||
| finding_id | No | ||
| min_confidence | No | ||
| no_unreachable | No | ||
| include_internals | No | ||
| no_unused_exports | No | ||
| include_unverified | No | ||
| include_zombie_packages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |