dead-code
/dead-code
Find public functions that nothing calls (excluding tests). Uses RNA's graph to identify candidates — not a compiler, so results are heuristic. False positives exist (framework callbacks, trait impls, FFI exports, CLI dispatch targets).
Arguments
$ARGUMENTS should be: [scope]
- No arguments: scan the whole repo
- File path:
src/service.rs— scan one file - Directory:
src/extract/— scan a subtree - Subsystem:
subsystem:code— scan an RNA-detected subsystem
Examples:
/dead-code/dead-code src/embed.rs/dead-code src/graph/
Procedure
More from open-horizon-labs/repo-native-alignment
record
Record a business artifact (.oh/ metis, signal, guardrail, or outcome update). Use when capturing learnings, measurements, constraints, or updating outcome status.
4setup
Install and configure the Repo-Native Alignment (RNA) MCP server. Downloads the binary, configures the MCP server, pre-warms the code index, and updates AGENTS.md with tool guidance.
3adr-sync
Backfill ADR frontmatter with direct executable validation refs, compile/check ADR validation manifests, and report missing real checks without inventing them.
1review-readiness
Agent-led PR/working-tree review triage. Start from the diff, add RNA graph/business context only where it changes review decisions, and state when raw git diff is enough.
1arch-diagram
Generate an architecture diagram from RNA data. Queries frameworks, endpoints, entry points, and external service calls, then renders in the user's preferred format (d2, mermaid, plantuml, etc.).
1