When my first dead-export script ran against a 3,300-file TypeScript/React/Python monorepo, it reported 2,266 dead exports. That number was completely wrong.
I had matched import { symbol } across files, which missed 1,722 symbols referenced via namespace imports ( ns.helper() ), JSX tags ( <Widget /> ), or internal same-file calls, plus 648 framework entrypoint exports ( index.ts , page.tsx , route.ts , sst.config.ts ) and 270 barrel re-exports ( export * from ). And when I hashed every function body to find clones, 4,559 2-line getters and trivial wrappers collided across unrelated files.
After filtering out < 25 normalized-token functions ( CLS008 ), framework entrypoints ( CLS009 ), and separating same-file internal callers ( CLS006 ) from zero-caller orphans ( CLS005 ), I ran the corrected analyzer across all 3,300 files ( 4,544 non-trivial functions) and 153 local Claude Code ( ~/.claude/projects/**/*.jsonl ) and Codex CLI ( ~/.codex/sessions/**/*.jsonl ) transcripts.
What the 3,300-File +…