Hotspots
Files that are both large and changed often are where bugs tend to cluster and where refactoring pays off first. Each file of code in the current tree, tests included, is placed by its size and by the number of commits that changed it, under this name or one it had before; its hotspot score is changes × √lines. Documentation, vendored and generated files, and files without counted lines, such as binary files, are left out.
- Files Analyzed
- 9,698
- of 15,692 in the current tree
- Top 10 Files
- 12.8%
- of the total hotspot score
- Median File Size
- 85 lines
- half of the files are at least this large
- Median Changes
- 3 commits
- half of the files changed at least this often
Change frequency by file size
Each dot is a file; a bigger dot is a higher score. The dashed lines mark the median file size and the median number of changes: the large files that change often, in the top right, are in color. The 5 highest scores are numbered as in the list. Both axes are logarithmic. Showing the 2,000 highest-scoring of 9,698 files.
Chart not shown: it is drawn with JavaScript, which is turned off or blocked on this page, as it is on Jenkins by default. How to show the charts
Highest scores
- 1packages/protocol/openapi.json34,176 lines · 259 changes
- 2packages/tui/src/routes/session/index.tsx4,088 lines · 625 changes
- 3packages/client/src/promise/generated/types.ts5,416 lines · 397 changes
- 4packages/core/test/session-runner.test.ts7,854 lines · 298 changes
- 5packages/app/src/runtime/i18n/en.ts1,640 lines · 453 changes
- 6packages/tui/src/component/prompt/index.tsx2,099 lines · 325 changes
- 7packages/tui/src/app.tsx1,528 lines · 357 changes
- 8packages/data/app/src/routes/index.css9,334 lines · 127 changes
Top hotspots
The files ranked by hotspot score: the larger a file is and the more often it changes, the higher it ranks. Authors is how many people have changed the file, bots aside, as on the Code Ownership page: a hotspot only one person has changed is also a bus-factor risk.
| File | Lines | Changes | Authors | Score | Bar |
|---|---|---|---|---|---|
| packages/protocol/openapi.json | 34,176 | 259 | 16 | 47,880.7 | |
| packages/tui/src/routes/session/index.tsx | 4,088 | 625 | 60 | 39,960.9 | |
| packages/client/src/promise/generated/types.ts | 5,416 | 397 | 19 | 29,216.6 | |
| packages/core/test/session-runner.test.ts | 7,854 | 298 | 15 | 26,409.6 | |
| packages/app/src/runtime/i18n/en.ts | 1,640 | 453 | 38 | 18,345.1 | |
| packages/tui/src/component/prompt/index.tsx | 2,099 | 325 | 49 | 14,889.8 | |
| packages/tui/src/app.tsx | 1,528 | 357 | 44 | 13,955.0 | |
| packages/data/app/src/routes/index.css | 9,334 | 127 | 6 | 12,269.8 | |
| packages/client/src/effect/api/api.ts | 3,388 | 198 | 14 | 11,524.9 | |
| packages/client/src/promise/generated/client.ts | 3,211 | 201 | 14 | 11,389.8 |
Table: the 100 highest-scoring of 9,698 files
| File | Lines | Changes | Authors | Score | Bar |
|---|---|---|---|---|---|
| packages/protocol/openapi.json | 34,176 | 259 | 16 | 47,880.7 | |
| packages/tui/src/routes/session/index.tsx | 4,088 | 625 | 60 | 39,960.9 | |
| packages/client/src/promise/generated/types.ts | 5,416 | 397 | 19 | 29,216.6 | |
| packages/core/test/session-runner.test.ts | 7,854 | 298 | 15 | 26,409.6 | |
| packages/app/src/runtime/i18n/en.ts | 1,640 | 453 | 38 | 18,345.1 | |
| packages/tui/src/component/prompt/index.tsx | 2,099 | 325 | 49 | 14,889.8 | |
| packages/tui/src/app.tsx | 1,528 | 357 | 44 | 13,955.0 | |
| packages/data/app/src/routes/index.css | 9,334 | 127 | 6 | 12,269.8 | |
| packages/client/src/effect/api/api.ts | 3,388 | 198 | 14 | 11,524.9 | |
| packages/client/src/promise/generated/client.ts | 3,211 | 201 | 14 | 11,389.8 | |
| packages/session-ui/src/components/message-part.css | 2,246 | 217 | 21 | 10,284.1 | |
| packages/ai/test/provider/openai-responses.test.ts | 5,414 | 137 | 9 | 10,080.4 | |
| packages/plugin/package.json | 103 | 979 | 18 | 9,935.8 | |
| packages/app/src/shell/shell.tsx | 340 | 496 | 28 | 9,145.8 | |
| packages/client/src/effect/generated/client.ts | 2,364 | 171 | 13 | 8,314.2 | |
| packages/app/src/shell/titlebar/titlebar.tsx | 1,127 | 237 | 20 | 7,956.3 | |
| packages/ui/package.json | 153 | 642 | 21 | 7,941.1 | |
| sdks/vscode/package.json | 108 | 668 | 7 | 6,942.1 | |
| package.json | 181 | 515 | 31 | 6,928.6 | |
| packages/app/src/session/timeline/message-timeline.tsx | 794 | 240 | 16 | 6,762.7 | |
| packages/app/package.json | 89 | 714 | 16 | 6,735.9 | |
| packages/tui/test/cli/tui/data.test.tsx | 3,669 | 111 | 10 | 6,723.5 | |
| packages/app/src/runtime/i18n/zh.ts | 1,474 | 155 | 29 | 5,950.9 | |
| packages/core/test/tool-shell.test.ts | 2,658 | 115 | 10 | 5,928.9 | |
| packages/session-ui/src/tools/tool-renderer.tsx | 3,020 | 104 | 13 | 5,715.3 | |
| packages/core/test/config/config.test.ts | 2,210 | 117 | 11 | 5,500.2 | |
| packages/app/src/runtime/i18n/es.ts | 1,583 | 136 | 27 | 5,411.0 | |
| packages/core/test/plugin/provider-opencode.test.ts | 2,826 | 100 | 11 | 5,316.0 | |
| packages/app/src/runtime/i18n/de.ts | 1,517 | 135 | 26 | 5,258.1 | |
| packages/core/src/models-dev.ts | 925 | 172 | 20 | 5,231.2 | |
| packages/app/src/runtime/i18n/fr.ts | 1,543 | 133 | 26 | 5,224.4 | |
| packages/app/src/runtime/i18n/ko.ts | 1,469 | 135 | 26 | 5,174.2 | |
| packages/app/src/runtime/i18n/ja.ts | 1,484 | 131 | 27 | 5,046.5 | |
| packages/app/src/runtime/i18n/da.ts | 1,527 | 129 | 27 | 5,040.9 | |
| packages/app/src/runtime/i18n/ru.ts | 1,596 | 126 | 26 | 5,033.7 | |
| packages/app/e2e/utils/mock-server.ts | 1,784 | 119 | 13 | 5,026.3 | |
| packages/tui/src/component/prompt/autocomplete.tsx | 1,005 | 158 | 35 | 5,008.9 | |
| packages/app/src/runtime/i18n/pl.ts | 1,540 | 127 | 26 | 4,983.8 | |
| packages/app/src/runtime/i18n/ar.ts | 1,560 | 125 | 25 | 4,937.1 | |
| packages/tui/src/ui/dialog-select.tsx | 1,009 | 154 | 31 | 4,891.8 | |
| packages/app/src/runtime/i18n/no.ts | 1,536 | 123 | 25 | 4,820.6 | |
| packages/app/e2e/regression/tabs.spec.ts | 3,505 | 79 | 10 | 4,677.0 | |
| packages/app/src/runtime/i18n/zht.ts | 1,468 | 122 | 25 | 4,674.4 | |
| packages/app/src/runtime/i18n/br.ts | 1,527 | 118 | 22 | 4,611.1 | |
| packages/ai/src/protocols/anthropic-messages.ts | 1,664 | 110 | 8 | 4,487.1 | |
| packages/core/package.json | 171 | 340 | 20 | 4,446.1 | |
| packages/tui/test/mini/stream-v2.transport.test.ts | 4,751 | 64 | 8 | 4,411.4 | |
| packages/data/app/src/routes/index.tsx | 1,902 | 101 | 7 | 4,404.8 | |
| packages/client/src/solid/data.ts | 2,563 | 85 | 11 | 4,303.2 | |
| packages/app/src/runtime/i18n/th.ts | 1,505 | 110 | 21 | 4,267.4 | |
| packages/ai/test/provider/openai-chat.test.ts | 2,505 | 85 | 7 | 4,254.2 | |
| packages/core/src/session/runner/llm.ts | 485 | 191 | 11 | 4,206.3 | |
| packages/app/src/composer/editor/editor.tsx | 1,764 | 100 | 13 | 4,200.0 | |
| packages/core/test/model-resolver.test.ts | 1,871 | 97 | 8 | 4,195.7 | |
| packages/ai/src/protocols/open-responses.ts | 1,649 | 102 | 6 | 4,142.0 | |
| packages/core/test/session-create.test.ts | 1,667 | 101 | 10 | 4,123.7 | |
| packages/ai/test/provider/anthropic-messages.test.ts | 2,609 | 80 | 8 | 4,086.3 | |
| packages/app/src/runtime/i18n/bs.ts | 1,561 | 103 | 19 | 4,069.5 | |
| packages/core/src/session/compaction.ts | 1,320 | 112 | 7 | 4,069.2 | |
| packages/core/src/session.ts | 604 | 165 | 12 | 4,055.1 | |
| packages/core/src/session/projector.ts | 1,192 | 116 | 12 | 4,004.9 | |
| packages/app/src/shell/state/layout.tsx | 797 | 141 | 16 | 3,980.6 | |
| packages/tui/test/app-lifecycle.test.tsx | 2,962 | 72 | 11 | 3,918.5 | |
| packages/desktop/package.json | 67 | 477 | 12 | 3,904.4 | |
| packages/app/src/settings/settings.css | 2,478 | 78 | 9 | 3,882.8 | |
| packages/ai/src/protocols/openai-chat.ts | 1,435 | 101 | 8 | 3,826.0 | |
| packages/app/src/providers/connect/dialog.tsx | 1,402 | 102 | 19 | 3,819.2 | |
| packages/client/test/promise.test.ts | 1,262 | 104 | 12 | 3,694.6 | |
| packages/app/src/providers/models/select-dialog.tsx | 1,359 | 98 | 22 | 3,612.7 | |
| packages/core/test/tool-registry.test.ts | 1,848 | 84 | 7 | 3,611.0 | |
| packages/ai/test/provider/bedrock-converse.test.ts | 2,548 | 71 | 6 | 3,583.9 | |
| packages/core/test/session-compaction.test.ts | 1,871 | 81 | 8 | 3,503.7 | |
| packages/tui/test/mini/footer.view.test.tsx | 2,627 | 68 | 9 | 3,485.3 | |
| packages/core/test/session-projector.test.ts | 2,796 | 65 | 8 | 3,437.0 | |
| packages/app/src/runtime/i18n/tr.ts | 1,550 | 87 | 16 | 3,425.2 | |
| packages/core/test/session-prompt.test.ts | 1,551 | 85 | 9 | 3,347.5 | |
| packages/session-ui/src/components/markdown.tsx | 1,612 | 82 | 14 | 3,292.3 | |
| packages/core/src/mcp/index.ts | 1,488 | 85 | 7 | 3,278.8 | |
| packages/gui-plugins/src/terminal/terminal.tsx | 679 | 125 | 17 | 3,257.2 | |
| packages/app/src/providers/models/selection.tsx | 787 | 115 | 14 | 3,226.2 | |
| packages/app/src/settings/model.tsx | 704 | 121 | 17 | 3,210.5 | |
| packages/core/src/plugin/host.ts | 772 | 113 | 9 | 3,139.7 | |
| packages/app/e2e/regression/settings.spec.ts | 2,901 | 58 | 7 | 3,123.9 | |
| packages/app/src/session/commands/use-session-commands.tsx | 813 | 109 | 16 | 3,107.9 | |
| packages/app/src/runtime/i18n/uk.ts | 1,587 | 76 | 14 | 3,027.6 | |
| packages/session-ui/src/timeline/session-timeline-row.tsx | 1,694 | 73 | 9 | 3,004.6 | |
| packages/core/src/plugin/provider/opencode.ts | 878 | 98 | 11 | 2,903.8 | |
| packages/app/e2e/regression/review.spec.ts | 2,397 | 59 | 13 | 2,888.6 | |
| packages/util/package.json | 77 | 329 | 9 | 2,887.0 | |
| packages/app/src/runtime/server/sync.tsx | 206 | 198 | 20 | 2,841.8 | |
| packages/protocol/src/groups/session.ts | 918 | 93 | 7 | 2,817.8 | |
| packages/data/app/src/routes/[lab]/[model].tsx | 1,499 | 72 | 6 | 2,787.6 | |
| packages/session-ui/src/message/message-content.tsx | 1,299 | 77 | 13 | 2,775.2 | |
| packages/session-ui/src/components/session-review.tsx | 733 | 102 | 16 | 2,761.5 | |
| packages/ai/test/provider/gemini.test.ts | 2,336 | 57 | 8 | 2,754.9 | |
| packages/core/src/aisdk.ts | 1,063 | 84 | 10 | 2,738.7 | |
| packages/core/test/tool-read.test.ts | 1,355 | 74 | 6 | 2,724.0 | |
| packages/tui/src/component/session-tabs.tsx | 1,791 | 64 | 6 | 2,708.5 | |
| packages/core/src/tool/plugin/shell.ts | 595 | 111 | 8 | 2,707.6 | |
| packages/core/src/shell.ts | 1,165 | 79 | 9 | 2,696.4 |
How OpenCode compares with other open source AI coding assistants →
How OpenCode ranks among open source AI coding assistants by AI-assisted commits →
Generate this report for your own repository with gitstats-action · All Gallery reports
The smallest workflow
Publishes the report to GitHub Pages on every push to main: turn on Pages for the gh-pages branch.
# .github/workflows/gitstats.yml
name: GitStats Report
on:
push:
branches: [main]
permissions:
contents: write
jobs:
gitstats:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: shenxianpeng/gitstats-action@v1
with:
deploy-to-pages: true