-
Notifications
You must be signed in to change notification settings - Fork 5
Epic: Dead Code Detection #426
Copy link
Copy link
Closed
Labels
epic:code-intelligenceEpic: Code intelligence capabilities across toolsEpic: Code intelligence capabilities across toolsfeaturescope:cliCLI interface and UXCLI interface and UXscope:code-intelCode intelligence — indexing, graph, impact analysisCode intelligence — indexing, graph, impact analysis
Description
Activity
Metadata
Metadata
Assignees
Labels
epic:code-intelligenceEpic: Code intelligence capabilities across toolsEpic: Code intelligence capabilities across toolsfeaturescope:cliCLI interface and UXCLI interface and UXscope:code-intelCode intelligence — indexing, graph, impact analysisCode intelligence — indexing, graph, impact analysis
Goal
Add
cora dead-codecommand that identifies unreachable symbols — functions, methods, and procedures with zero callers.Context
Cora already has
call_graph(6K+ edges),find_callers(), andtrace_path(). Dead code detection is a direct query on existing infrastructure — find symbols with zero incoming CALLS edges, excluding entry points.Scope
cora dead-codeCLI commanddead_codeMCP tool--include-tests)--min-lines N) for tiny stubs--json)cora scan(report dead code as findings)Pre-requisite
store_kg_edges()—edgestable exists but is never populatedcall_graph(legacy) oredges(new) table?Acceptance Criteria
cora dead-codelists unreachable functions with file:linecora dead-code --jsonreturns structured outputdead_codetool works in agent contextEstimated Effort
2-3 days