{"id":50907412,"url":"https://github.com/supermodeltools/audit","last_synced_at":"2026-06-16T06:31:17.790Z","repository":{"id":332857443,"uuid":"1129901692","full_name":"supermodeltools/audit","owner":"supermodeltools","description":"GitHub Action that runs a full codebase audit — dead code detection, blast radius analysis, dependency graphs, and more — powered by Supermodel.","archived":false,"fork":false,"pushed_at":"2026-04-28T18:17:54.000Z","size":1105,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-28T19:29:40.379Z","etag":null,"topics":["audit","blast-radius","code-analysis","code-quality","dead-code","dependency-graph","github-action","static-analysis","supermodel"],"latest_commit_sha":null,"homepage":"https://repos.supermodeltools.com/dead-code-hunter/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/supermodeltools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-07T18:40:33.000Z","updated_at":"2026-04-28T18:17:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/supermodeltools/audit","commit_stats":null,"previous_names":["supermodeltools/dead-code-hunter","supermodeltools/audit"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/supermodeltools/audit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supermodeltools%2Faudit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supermodeltools%2Faudit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supermodeltools%2Faudit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supermodeltools%2Faudit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supermodeltools","download_url":"https://codeload.github.com/supermodeltools/audit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supermodeltools%2Faudit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34393304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audit","blast-radius","code-analysis","code-quality","dead-code","dependency-graph","github-action","static-analysis","supermodel"],"created_at":"2026-06-16T06:31:17.162Z","updated_at":"2026-06-16T06:31:17.782Z","avatar_url":"https://github.com/supermodeltools.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dead Code Hunter\n\nA GitHub Action that finds unused code in your codebase using [Supermodel](https://supermodeltools.com) static analysis.\n\n---\n\n## ⭐ Star the Supermodel Ecosystem\n\nIf this is useful, please star our tools — it helps us grow:\n\n[![mcp](https://img.shields.io/github/stars/supermodeltools/mcp?style=social)](https://github.com/supermodeltools/mcp) \u0026nbsp;[![mcpbr](https://img.shields.io/github/stars/supermodeltools/mcpbr?style=social)](https://github.com/supermodeltools/mcpbr) \u0026nbsp;[![typescript-sdk](https://img.shields.io/github/stars/supermodeltools/typescript-sdk?style=social)](https://github.com/supermodeltools/typescript-sdk) \u0026nbsp;[![arch-docs](https://img.shields.io/github/stars/supermodeltools/arch-docs?style=social)](https://github.com/supermodeltools/arch-docs) \u0026nbsp;[![dead-code-hunter](https://img.shields.io/github/stars/supermodeltools/dead-code-hunter?style=social)](https://github.com/supermodeltools/dead-code-hunter) \u0026nbsp;[![Uncompact](https://img.shields.io/github/stars/supermodeltools/Uncompact?style=social)](https://github.com/supermodeltools/Uncompact) \u0026nbsp;[![narsil-mcp](https://img.shields.io/github/stars/supermodeltools/narsil-mcp?style=social)](https://github.com/supermodeltools/narsil-mcp)\n\n---\n\n## Installation\n\n### 1. Get an API key\n\n**Save 40%+ on agent token costs — start free → [supermodeltools.com/trial](https://supermodeltools.com/trial)**\n\n### 2. Add the secret to your repository\n\nGo to your repo → Settings → Secrets and variables → Actions → New repository secret\n\n- Name: `SUPERMODEL_API_KEY`\n- Value: Your API key from step 1\n\n### 3. Create a workflow file\n\nCreate `.github/workflows/dead-code.yml` in your repository:\n\n```yaml\nname: Dead Code Hunter\n\non:\n  pull_request:\n\njobs:\n  hunt:\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read\n      pull-requests: write\n    steps:\n      - uses: actions/checkout@v4\n      - uses: supermodeltools/dead-code-hunter@v2\n        with:\n          supermodel-api-key: ${{ secrets.SUPERMODEL_API_KEY }}\n```\n\nThat's it! The action will now analyze your code on every PR and comment with any dead code found.\n\n## Configuration\n\n| Input | Description | Required | Default |\n|-------|-------------|----------|---------|\n| `supermodel-api-key` | Your Supermodel API key | Yes | - |\n| `github-token` | GitHub token for posting PR comments | No | `github.token` |\n| `comment-on-pr` | Post findings as PR comment | No | `true` |\n| `fail-on-dead-code` | Fail the action if dead code found | No | `false` |\n| `ignore-patterns` | JSON array of glob patterns to ignore | No | `[]` |\n\n### Example with options\n\n```yaml\n- uses: supermodeltools/dead-code-hunter@v2\n  with:\n    supermodel-api-key: ${{ secrets.SUPERMODEL_API_KEY }}\n    fail-on-dead-code: true\n    ignore-patterns: '[\"**/generated/**\", \"**/migrations/**\"]'\n```\n\n## What it does\n\n1. Creates a zip of your repository via `git archive`\n2. Sends it to the Supermodel dead code analysis API\n3. The API performs symbol-level import analysis to identify unused exports\n4. Results are returned with confidence levels and reasons\n5. Posts findings as a PR comment with a sortable table\n\n## What it detects\n\n- **Functions** and **methods** with no callers\n- **Classes** and **interfaces** that are never referenced\n- **Types**, **variables**, and **constants** that are exported but never imported\n- **Orphaned files** whose exports have no importers anywhere in the codebase\n- **Transitively dead code** — code only called by other dead code\n\nEach finding includes a **confidence level** (high, medium, low) and a **reason** explaining why it was flagged.\n\n## Example output\n\n\u003e ## Dead Code Hunter\n\u003e\n\u003e Found **3** potentially unused code elements:\n\u003e\n\u003e | Name | Type | File | Line | Confidence |\n\u003e |------|------|------|------|------------|\n\u003e | `unusedHelper` | function | src/utils.ts#L42 | L42 | :red_circle: high |\n\u003e | `OldValidator` | class | src/validation.ts#L15 | L15 | :red_circle: high |\n\u003e | `LegacyConfig` | interface | src/legacy.ts#L8 | L8 | :orange_circle: medium |\n\u003e\n\u003e \u003cdetails\u003e\u003csummary\u003eAnalysis summary\u003c/summary\u003e\n\u003e\n\u003e - **Total declarations analyzed**: 150\n\u003e - **Dead code candidates**: 3\n\u003e - **Alive code**: 147\n\u003e - **Analysis method**: symbol_level_import_analysis\n\u003e\n\u003e \u003c/details\u003e\n\u003e\n\u003e ---\n\u003e _Powered by [Supermodel](https://supermodeltools.com) dead code analysis_\n\n## Supported languages\n\n- TypeScript / JavaScript\n- Python\n- Java\n- Go\n- Rust\n- And more...\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupermodeltools%2Faudit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupermodeltools%2Faudit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupermodeltools%2Faudit/lists"}