find_orphans
Identify code entities with no incoming calls, imports, or extends edges to surface dead-code candidates during cleanup audits; entry points and test code are excluded.
Instructions
Find code entities with no incoming calls/imports/extends edges — dead-code candidates. Use during cleanup audits. Entry points like main() surface by design; test code is excluded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Absolute path to the project root containing `.cogz/`. | |
| limit | No | ||
| entity_type | No | Code entity type to check: function, class, file, or module. Default: functions and classes. |