get_unused_code
Identify dead code by detecting functions unreachable from production entry points, using graph reachability and text reference analysis to classify code as safe to delete or likely dead.
Instructions
Find dead code — functions not reachable from any production entry point.
CALL THIS WHEN: • You're cleaning up or refactoring a module — find what's truly dead • Before adding new code — check if similar dead code already exists • During code review — identify functions that lost their production callers • After a refactor — verify nothing was accidentally disconnected
RETURNS: Three-tier classification: • Dead — graph-unreachable AND no text references anywhere. Safe to delete. • Likely Dead — graph-unreachable BUT found as text in other files (may be string-dispatched, dynamically imported, etc). Includes evidence file paths. • Alive — graph-reachable from entry points. Not reported.
Uses graph reachability + text reference backup layer for high-confidence dead code detection.
TIER: Pharaoh Pro — free tier receives a preview. Summarize what the preview reveals, explain what full data would show for this task, then include the upgrade link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||