anthropics / claude-code-action
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 59 files with 7,830 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,405 lines of code)
    • 11 medium size files (2,898 lines of code)
    • 12 small files (1,709 lines of code)
    • 34 very small files (1,818 lines of code)
0% | 17% | 37% | 21% | 23%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
ts0% | 18% | 37% | 20% | 23%
js0% | 0% | 0% | 100% | 0%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 21% | 40% | 18% | 20%
base-action0% | 0% | 21% | 36% | 42%
.claude0% | 0% | 0% | 100% | 0%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
index.ts
in src/create-prompt
842 10
563 4
fetcher.ts
in src/github/data
386 9
format-turns.ts
in src/entrypoints
375 7
run.ts
in src/entrypoints
328 4
context.ts
in src/github
276 10
image-downloader.ts
in src/github/utils
251 9
branch.ts
in src/github/operations
245 4
update-comment-link.ts
in src/entrypoints
213 1
parse-sdk-options.ts
in base-action/src
212 6
205 1
204 1
203 3
195 2
run-claude-sdk.ts
in base-action/src
184 5
install-plugins.ts
in base-action/src
180 9
comment-logic.ts
in src/github/operations
144 2
github.ts
in src/github/api/queries
142 -
index.ts
in src/modes/tag
137 4
pr-stamp-sweep.js
in .claude/workflows
136 -
trigger.ts
in src/github/validation
131 2
formatter.ts
in src/github/data
130 7
token.ts
in src/github
113 5
types.ts
in src/github
113 -
branch-cleanup.ts
in src/github/operations
104 1
git-config.ts
in src/github/operations
99 4
types.ts
in src/create-prompt
97 -
detector.ts
in src/modes
92 2
index.ts
in src/modes/agent
90 3
sanitizer.ts
in src/github/utils
88 7
permissions.ts
in src/github/validation
87 2
84 -
create-initial.ts
in src/github/operations/comments
83 -
restore-config.ts
in src/github/operations
80 2
prepare.ts
in src/entrypoints
78 -
actor.ts
in src/github/validation
76 1
branch-template.ts
in src/utils
75 4
validate-env.ts
in base-action/src
72 1
workload-identity.ts
in base-action/src
72 2
index.ts
in base-action/src
66 2
prepare-prompt.ts
in base-action/src
64 3
collect-inputs.ts
in src/entrypoints
54 1
54 1
update-claude-comment.ts
in src/github/operations/comments
53 1
update-with-branch.ts
in src/github/operations/comments
45 1
43 1
parse-tools.ts
in src/modes/agent
42 3
retry.ts
in base-action/src
41 1
execution-file.ts
in base-action/src
36 3
actor-filter.ts
in src/github/utils
34 3
Files With Most Units (Top 47)
File# lines# units
context.ts
in src/github
276 10
index.ts
in src/create-prompt
842 10
image-downloader.ts
in src/github/utils
251 9
fetcher.ts
in src/github/data
386 9
install-plugins.ts
in base-action/src
180 9
sanitizer.ts
in src/github/utils
88 7
formatter.ts
in src/github/data
130 7
format-turns.ts
in src/entrypoints
375 7
parse-sdk-options.ts
in base-action/src
212 6
token.ts
in src/github
113 5
run-claude-sdk.ts
in base-action/src
184 5
branch-template.ts
in src/utils
75 4
branch.ts
in src/github/operations
245 4
git-config.ts
in src/github/operations
99 4
run.ts
in src/entrypoints
328 4
563 4
index.ts
in src/modes/tag
137 4
actor-filter.ts
in src/github/utils
34 3
common.ts
in src/github/operations/comments
27 3
203 3
parse-tools.ts
in src/modes/agent
42 3
index.ts
in src/modes/agent
90 3
execution-file.ts
in base-action/src
36 3
prepare-prompt.ts
in base-action/src
64 3
trigger.ts
in src/github/validation
131 2
permissions.ts
in src/github/validation
87 2
restore-config.ts
in src/github/operations
80 2
comment-logic.ts
in src/github/operations
144 2
195 2
detector.ts
in src/modes
92 2
workload-identity.ts
in base-action/src
72 2
index.ts
in base-action/src
66 2
18 1
client.ts
in src/github/api
21 1
actor.ts
in src/github/validation
76 1
branch-cleanup.ts
in src/github/operations
104 1
update-claude-comment.ts
in src/github/operations/comments
53 1
update-with-branch.ts
in src/github/operations/comments
45 1
collect-inputs.ts
in src/entrypoints
54 1
update-comment-link.ts
in src/entrypoints
213 1
43 1
204 1
205 1
retry.ts
in base-action/src
41 1
54 1
validate-env.ts
in base-action/src
72 1
run-claude.ts
in base-action/src
23 1
Files With Long Lines (Top 17)

There are 17 files with lines longer than 120 characters. In total, there are 104 long lines.

File# lines# units# long lines
index.ts
in src/create-prompt
842 10 55
pr-stamp-sweep.js
in .claude/workflows
136 - 20
205 1 4
validate-env.ts
in base-action/src
72 1 4
branch.ts
in src/github/operations
245 4 3
actor.ts
in src/github/validation
76 1 2
permissions.ts
in src/github/validation
87 2 2
203 3 2
update-comment-link.ts
in src/entrypoints
213 1 2
563 4 2
run-claude-sdk.ts
in base-action/src
184 5 2
branch-template.ts
in src/utils
75 4 1
token.ts
in src/github
113 5 1
common.ts
in src/github/operations/comments
27 3 1
git-config.ts
in src/github/operations
99 4 1
195 2 1
workload-identity.ts
in base-action/src
72 2 1
Correlations

File Size vs. Commits (all time): 57 points

src/entrypoints/run.ts x: 124 commits (all time) y: 328 lines of code src/github/operations/branch.ts x: 23 commits (all time) y: 245 lines of code src/github/data/fetcher.ts x: 11 commits (all time) y: 386 lines of code src/github/token.ts x: 12 commits (all time) y: 113 lines of code src/modes/agent/parse-tools.ts x: 4 commits (all time) y: 42 lines of code base-action/src/parse-sdk-options.ts x: 10 commits (all time) y: 212 lines of code .claude/workflows/pr-stamp-sweep.js x: 1 commits (all time) y: 136 lines of code src/github/utils/image-downloader.ts x: 2 commits (all time) y: 251 lines of code src/github/utils/sanitizer.ts x: 3 commits (all time) y: 88 lines of code src/github/api/queries/github.ts x: 7 commits (all time) y: 142 lines of code src/github/data/formatter.ts x: 6 commits (all time) y: 130 lines of code src/create-prompt/index.ts x: 50 commits (all time) y: 842 lines of code src/modes/agent/index.ts x: 20 commits (all time) y: 90 lines of code base-action/src/run-claude-sdk.ts x: 9 commits (all time) y: 184 lines of code base-action/src/index.ts x: 14 commits (all time) y: 66 lines of code base-action/src/retry.ts x: 1 commits (all time) y: 41 lines of code base-action/src/workload-identity.ts x: 1 commits (all time) y: 72 lines of code src/utils/retry.ts x: 3 commits (all time) y: 4 lines of code base-action/src/validate-env.ts x: 4 commits (all time) y: 72 lines of code src/entrypoints/collect-inputs.ts x: 7 commits (all time) y: 54 lines of code src/github/validation/actor.ts x: 5 commits (all time) y: 76 lines of code src/github/validation/permissions.ts x: 5 commits (all time) y: 87 lines of code base-action/src/execution-file.ts x: 1 commits (all time) y: 36 lines of code src/github/operations/restore-config.ts x: 7 commits (all time) y: 80 lines of code src/github/validation/trigger.ts x: 4 commits (all time) y: 131 lines of code src/github/types.ts x: 6 commits (all time) y: 113 lines of code bunfig.toml x: 1 commits (all time) y: 2 lines of code src/entrypoints/update-comment-link.ts x: 15 commits (all time) y: 213 lines of code src/github/context.ts x: 28 commits (all time) y: 276 lines of code src/github/operations/git-config.ts x: 7 commits (all time) y: 99 lines of code src/modes/tag/index.ts x: 22 commits (all time) y: 137 lines of code src/entrypoints/post-buffered-inline-comments.ts x: 1 commits (all time) y: 203 lines of code src/mcp/github-inline-comment-server.ts x: 4 commits (all time) y: 205 lines of code src/mcp/install-mcp-server.ts x: 31 commits (all time) y: 195 lines of code src/entrypoints/prepare.ts x: 21 commits (all time) y: 78 lines of code src/modes/detector.ts x: 5 commits (all time) y: 92 lines of code base-action/src/run-claude.ts x: 15 commits (all time) y: 23 lines of code src/utils/branch-template.ts x: 2 commits (all time) y: 75 lines of code src/mcp/github-file-ops-server.ts x: 15 commits (all time) y: 563 lines of code base-action/src/install-plugins.ts x: 4 commits (all time) y: 180 lines of code src/utils/extract-user-request.ts x: 1 commits (all time) y: 18 lines of code src/entrypoints/cleanup-ssh-signing.ts x: 1 commits (all time) y: 12 lines of code src/create-prompt/types.ts x: 8 commits (all time) y: 97 lines of code src/github/operations/comment-logic.ts x: 4 commits (all time) y: 144 lines of code base-action/src/setup-claude-code-settings.ts x: 3 commits (all time) y: 54 lines of code src/mcp/github-comment-server.ts x: 2 commits (all time) y: 84 lines of code src/entrypoints/format-turns.ts x: 4 commits (all time) y: 375 lines of code src/github/operations/comments/create-initial.ts x: 6 commits (all time) y: 83 lines of code base-action/src/prepare-prompt.ts x: 1 commits (all time) y: 64 lines of code src/github/operations/branch-cleanup.ts x: 5 commits (all time) y: 104 lines of code src/mcp/github-actions-server.ts x: 2 commits (all time) y: 204 lines of code src/github/operations/comments/update-claude-comment.ts x: 1 commits (all time) y: 53 lines of code src/github/operations/comments/update-with-branch.ts x: 1 commits (all time) y: 45 lines of code src/github/api/client.ts x: 1 commits (all time) y: 21 lines of code
842.0
lines of code
  min: 2.0
  average: 136.82
  25th percentile: 53.5
  median: 90.0
  75th percentile: 189.5
  max: 842.0
0 124.0
commits (all time)
min: 1.0 | average: 9.72 | 25th percentile: 1.0 | median: 4.0 | 75th percentile: 10.5 | max: 124.0

File Size vs. Contributors (all time): 57 points

src/entrypoints/run.ts x: 5 contributors (all time) y: 328 lines of code src/github/operations/branch.ts x: 15 contributors (all time) y: 245 lines of code src/github/data/fetcher.ts x: 7 contributors (all time) y: 386 lines of code src/github/token.ts x: 3 contributors (all time) y: 113 lines of code src/modes/agent/parse-tools.ts x: 4 contributors (all time) y: 42 lines of code base-action/src/parse-sdk-options.ts x: 4 contributors (all time) y: 212 lines of code .claude/workflows/pr-stamp-sweep.js x: 1 contributors (all time) y: 136 lines of code src/github/utils/image-downloader.ts x: 2 contributors (all time) y: 251 lines of code src/github/utils/sanitizer.ts x: 3 contributors (all time) y: 88 lines of code src/github/api/queries/github.ts x: 5 contributors (all time) y: 142 lines of code src/github/data/formatter.ts x: 4 contributors (all time) y: 130 lines of code src/create-prompt/index.ts x: 17 contributors (all time) y: 842 lines of code src/modes/agent/index.ts x: 6 contributors (all time) y: 90 lines of code base-action/src/run-claude-sdk.ts x: 4 contributors (all time) y: 184 lines of code base-action/src/index.ts x: 6 contributors (all time) y: 66 lines of code base-action/src/retry.ts x: 1 contributors (all time) y: 41 lines of code base-action/src/workload-identity.ts x: 1 contributors (all time) y: 72 lines of code src/utils/retry.ts x: 2 contributors (all time) y: 4 lines of code base-action/src/validate-env.ts x: 2 contributors (all time) y: 72 lines of code src/entrypoints/collect-inputs.ts x: 2 contributors (all time) y: 54 lines of code src/github/validation/actor.ts x: 3 contributors (all time) y: 76 lines of code base-action/src/execution-file.ts x: 1 contributors (all time) y: 36 lines of code src/github/operations/restore-config.ts x: 6 contributors (all time) y: 80 lines of code src/github/types.ts x: 4 contributors (all time) y: 113 lines of code bunfig.toml x: 1 contributors (all time) y: 2 lines of code src/entrypoints/update-comment-link.ts x: 3 contributors (all time) y: 213 lines of code src/github/context.ts x: 13 contributors (all time) y: 276 lines of code src/github/operations/git-config.ts x: 3 contributors (all time) y: 99 lines of code src/modes/tag/index.ts x: 6 contributors (all time) y: 137 lines of code src/entrypoints/post-buffered-inline-comments.ts x: 1 contributors (all time) y: 203 lines of code src/mcp/github-inline-comment-server.ts x: 3 contributors (all time) y: 205 lines of code src/mcp/install-mcp-server.ts x: 10 contributors (all time) y: 195 lines of code src/entrypoints/prepare.ts x: 2 contributors (all time) y: 78 lines of code src/modes/detector.ts x: 2 contributors (all time) y: 92 lines of code base-action/src/run-claude.ts x: 6 contributors (all time) y: 23 lines of code src/utils/branch-template.ts x: 2 contributors (all time) y: 75 lines of code src/mcp/github-file-ops-server.ts x: 6 contributors (all time) y: 563 lines of code base-action/src/install-plugins.ts x: 3 contributors (all time) y: 180 lines of code src/utils/extract-user-request.ts x: 1 contributors (all time) y: 18 lines of code src/entrypoints/cleanup-ssh-signing.ts x: 1 contributors (all time) y: 12 lines of code src/create-prompt/types.ts x: 5 contributors (all time) y: 97 lines of code src/github/operations/comment-logic.ts x: 1 contributors (all time) y: 144 lines of code src/mcp/github-comment-server.ts x: 1 contributors (all time) y: 84 lines of code src/entrypoints/format-turns.ts x: 3 contributors (all time) y: 375 lines of code src/github/operations/comments/create-initial.ts x: 4 contributors (all time) y: 83 lines of code base-action/src/prepare-prompt.ts x: 1 contributors (all time) y: 64 lines of code src/github/operations/branch-cleanup.ts x: 1 contributors (all time) y: 104 lines of code src/mcp/github-actions-server.ts x: 2 contributors (all time) y: 204 lines of code src/github/operations/comments/update-claude-comment.ts x: 1 contributors (all time) y: 53 lines of code src/github/operations/comments/update-with-branch.ts x: 1 contributors (all time) y: 45 lines of code src/github/api/client.ts x: 1 contributors (all time) y: 21 lines of code
842.0
lines of code
  min: 2.0
  average: 136.82
  25th percentile: 53.5
  median: 90.0
  75th percentile: 189.5
  max: 842.0
0 17.0
contributors (all time)
min: 1.0 | average: 3.58 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 4.5 | max: 17.0

File Size vs. Commits (30 days): 18 points

src/entrypoints/run.ts x: 31 commits (30d) y: 328 lines of code src/github/operations/branch.ts x: 1 commits (30d) y: 245 lines of code src/github/data/fetcher.ts x: 1 commits (30d) y: 386 lines of code src/github/token.ts x: 1 commits (30d) y: 113 lines of code src/modes/agent/parse-tools.ts x: 1 commits (30d) y: 42 lines of code base-action/src/parse-sdk-options.ts x: 1 commits (30d) y: 212 lines of code .claude/workflows/pr-stamp-sweep.js x: 1 commits (30d) y: 136 lines of code src/github/utils/image-downloader.ts x: 1 commits (30d) y: 251 lines of code src/github/utils/sanitizer.ts x: 1 commits (30d) y: 88 lines of code src/github/api/queries/github.ts x: 1 commits (30d) y: 142 lines of code src/github/data/formatter.ts x: 1 commits (30d) y: 130 lines of code src/create-prompt/index.ts x: 1 commits (30d) y: 842 lines of code src/modes/agent/index.ts x: 1 commits (30d) y: 90 lines of code base-action/src/run-claude-sdk.ts x: 1 commits (30d) y: 184 lines of code base-action/src/index.ts x: 1 commits (30d) y: 66 lines of code base-action/src/workload-identity.ts x: 1 commits (30d) y: 72 lines of code src/utils/retry.ts x: 1 commits (30d) y: 4 lines of code
842.0
lines of code
  min: 4.0
  average: 187.33
  25th percentile: 70.5
  median: 133.0
  75th percentile: 246.5
  max: 842.0
0 31.0
commits (30d)
min: 1.0 | average: 2.67 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 31.0

File Size vs. Contributors (30 days): 18 points

src/entrypoints/run.ts x: 2 contributors (30d) y: 328 lines of code src/github/operations/branch.ts x: 1 contributors (30d) y: 245 lines of code src/github/data/fetcher.ts x: 1 contributors (30d) y: 386 lines of code src/github/token.ts x: 1 contributors (30d) y: 113 lines of code src/modes/agent/parse-tools.ts x: 1 contributors (30d) y: 42 lines of code base-action/src/parse-sdk-options.ts x: 1 contributors (30d) y: 212 lines of code .claude/workflows/pr-stamp-sweep.js x: 1 contributors (30d) y: 136 lines of code src/github/utils/image-downloader.ts x: 1 contributors (30d) y: 251 lines of code src/github/utils/sanitizer.ts x: 1 contributors (30d) y: 88 lines of code src/github/api/queries/github.ts x: 1 contributors (30d) y: 142 lines of code src/github/data/formatter.ts x: 1 contributors (30d) y: 130 lines of code src/create-prompt/index.ts x: 1 contributors (30d) y: 842 lines of code src/modes/agent/index.ts x: 1 contributors (30d) y: 90 lines of code base-action/src/run-claude-sdk.ts x: 1 contributors (30d) y: 184 lines of code base-action/src/index.ts x: 1 contributors (30d) y: 66 lines of code base-action/src/workload-identity.ts x: 1 contributors (30d) y: 72 lines of code src/utils/retry.ts x: 1 contributors (30d) y: 4 lines of code
842.0
lines of code
  min: 4.0
  average: 187.33
  25th percentile: 70.5
  median: 133.0
  75th percentile: 246.5
  max: 842.0
0 2.0
contributors (30d)
min: 1.0 | average: 1.06 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0

File Size vs. Commits (90 days): 30 points

src/entrypoints/run.ts x: 92 commits (90d) y: 328 lines of code src/github/operations/branch.ts x: 6 commits (90d) y: 245 lines of code src/github/data/fetcher.ts x: 2 commits (90d) y: 386 lines of code src/github/token.ts x: 3 commits (90d) y: 113 lines of code src/modes/agent/parse-tools.ts x: 1 commits (90d) y: 42 lines of code base-action/src/parse-sdk-options.ts x: 3 commits (90d) y: 212 lines of code .claude/workflows/pr-stamp-sweep.js x: 1 commits (90d) y: 136 lines of code src/github/utils/image-downloader.ts x: 1 commits (90d) y: 251 lines of code src/github/utils/sanitizer.ts x: 1 commits (90d) y: 88 lines of code src/github/api/queries/github.ts x: 2 commits (90d) y: 142 lines of code src/github/data/formatter.ts x: 1 commits (90d) y: 130 lines of code src/create-prompt/index.ts x: 5 commits (90d) y: 842 lines of code src/modes/agent/index.ts x: 2 commits (90d) y: 90 lines of code base-action/src/run-claude-sdk.ts x: 3 commits (90d) y: 184 lines of code base-action/src/index.ts x: 3 commits (90d) y: 66 lines of code base-action/src/workload-identity.ts x: 1 commits (90d) y: 72 lines of code src/utils/retry.ts x: 2 commits (90d) y: 4 lines of code src/entrypoints/collect-inputs.ts x: 1 commits (90d) y: 54 lines of code src/github/validation/actor.ts x: 3 commits (90d) y: 76 lines of code src/github/validation/permissions.ts x: 3 commits (90d) y: 87 lines of code base-action/src/execution-file.ts x: 1 commits (90d) y: 36 lines of code src/github/operations/restore-config.ts x: 6 commits (90d) y: 80 lines of code src/github/types.ts x: 1 commits (90d) y: 113 lines of code bunfig.toml x: 1 commits (90d) y: 2 lines of code src/entrypoints/update-comment-link.ts x: 1 commits (90d) y: 213 lines of code src/github/context.ts x: 1 commits (90d) y: 276 lines of code src/github/operations/git-config.ts x: 1 commits (90d) y: 99 lines of code
842.0
lines of code
  min: 2.0
  average: 153.7
  25th percentile: 70.5
  median: 106.0
  75th percentile: 212.25
  max: 842.0
0 92.0
commits (90d)
min: 1.0 | average: 5.03 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 3.0 | max: 92.0

File Size vs. Contributors (90 days): 30 points

src/entrypoints/run.ts x: 4 contributors (90d) y: 328 lines of code src/github/operations/branch.ts x: 6 contributors (90d) y: 245 lines of code src/github/data/fetcher.ts x: 2 contributors (90d) y: 386 lines of code src/github/token.ts x: 3 contributors (90d) y: 113 lines of code src/modes/agent/parse-tools.ts x: 1 contributors (90d) y: 42 lines of code base-action/src/parse-sdk-options.ts x: 3 contributors (90d) y: 212 lines of code .claude/workflows/pr-stamp-sweep.js x: 1 contributors (90d) y: 136 lines of code src/github/utils/image-downloader.ts x: 1 contributors (90d) y: 251 lines of code src/github/utils/sanitizer.ts x: 1 contributors (90d) y: 88 lines of code src/github/api/queries/github.ts x: 2 contributors (90d) y: 142 lines of code src/github/data/formatter.ts x: 1 contributors (90d) y: 130 lines of code src/create-prompt/index.ts x: 3 contributors (90d) y: 842 lines of code src/modes/agent/index.ts x: 2 contributors (90d) y: 90 lines of code base-action/src/run-claude-sdk.ts x: 3 contributors (90d) y: 184 lines of code base-action/src/index.ts x: 2 contributors (90d) y: 66 lines of code base-action/src/workload-identity.ts x: 1 contributors (90d) y: 72 lines of code src/utils/retry.ts x: 2 contributors (90d) y: 4 lines of code src/entrypoints/collect-inputs.ts x: 1 contributors (90d) y: 54 lines of code src/github/validation/actor.ts x: 2 contributors (90d) y: 76 lines of code src/github/validation/permissions.ts x: 2 contributors (90d) y: 87 lines of code base-action/src/execution-file.ts x: 1 contributors (90d) y: 36 lines of code src/github/operations/restore-config.ts x: 5 contributors (90d) y: 80 lines of code src/github/types.ts x: 1 contributors (90d) y: 113 lines of code bunfig.toml x: 1 contributors (90d) y: 2 lines of code src/entrypoints/update-comment-link.ts x: 1 contributors (90d) y: 213 lines of code src/github/context.ts x: 1 contributors (90d) y: 276 lines of code src/github/operations/git-config.ts x: 1 contributors (90d) y: 99 lines of code
842.0
lines of code
  min: 2.0
  average: 153.7
  25th percentile: 70.5
  median: 106.0
  75th percentile: 212.25
  max: 842.0
0 6.0
contributors (90d)
min: 1.0 | average: 1.9 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.25 | max: 6.0