File Complexity Overall
  • There are 354 files with units, with 53,077 lines of code.
    • 2 very complex files (McCabe index sum 251+; 2,408 lines of code)
    • 6 complex files (McCabe index sum 126-250; 7,186 lines of code)
    • 21 medium complex files (McCabe index sum 51-125; 10,913 lines of code)
    • 23 slightly complex files (McCabe index sum 26-50; 6,186 lines of code)
    • 302 simple files (McCabe index sum 1-25; 26,384 lines of code)
  • 328 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system4% | 13% | 20% | 11% | 49%
Legend:
251+
126-250
51-125
26-50
1-25


explore: grouped by folders | grouped by complexity
File Complexity per Extension
251+
126-250
51-125
26-50
1-25
py23% | 3% | 5% | 14% | 52%
ts0% | 18% | 30% | 9% | 42%
tsx0% | 15% | 18% | 10% | 56%
js0% | 0% | 23% | 36% | 39%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
21-agentic-memory16% | 3% | 11% | 8% | 59%
24-api-codex33% | 0% | 44% | 0% | 21%
25-realtime-20% | 29% | 36% | 12% | 21%
27-valuemaxxing0% | 37% | 42% | 5% | 14%
18-responses-api0% | 54% | 0% | 17% | 27%
16-built-in-tools0% | 0% | 26% | 0% | 73%
09-realtime0% | 0% | 39% | 0% | 60%
04-mmrag_tooluse0% | 0% | 71% | 0% | 28%
05-4o_fine_tuning0% | 0% | 25% | 38% | 36%
26-agents-sdk0% | 0% | 0% | 25% | 74%
22-chatgptapp-pingpong0% | 0% | 0% | 100% | 0%
13-image-gen0% | 0% | 0% | 46% | 53%
12-agentic-tool-calling0% | 0% | 0% | 74% | 25%
07-reasoning0% | 0% | 0% | 45% | 54%
17-gpt-50% | 0% | 0% | 71% | 28%
14-voice-agents0% | 0% | 0% | 4% | 95%
20-agent-rft0% | 0% | 0% | 14% | 85%
06-structured_outputs0% | 0% | 0% | 0% | 100%
15-reinforcement-fine-tuning0% | 0% | 0% | 0% | 100%
11-recommendation0% | 0% | 0% | 0% | 100%
02-assistants0% | 0% | 0% | 0% | 100%
03-4o_mini_fine_tuning0% | 0% | 0% | 0% | 100%
08-evals0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 50)

The McCabe index of a file grows with its size: per 100 lines tells a large but plain file from a dense one, and most complex unit whether the complexity sits in one unit or is spread over many.

File# lines# unitsMcCabe index
(sum)
per 100
lines
most complex
unit
score_repo.py
in 24-api-codex/skills/agentic-legibility/scripts
731 31 300 41 35
agent_service.py
in 21-agentic-memory/scripts
1677 57 278 17 34
MainScene.ts
in 18-responses-api/openai-simulator/src/scenes
1247 50 207 17 24
metricLoopEngine.ts
in 25-realtime-2/src/metricloop
1301 39 193 15 19
useSupplyRealtime.ts
in 25-realtime-2/src/agent
995 21 191 19 112
App.tsx
in 25-realtime-2/src
1763 32 155 9 55
compacting_session.py
in 21-agentic-memory/scripts
373 26 155 42 24
ValuemaxxingLab.tsx
in 27-valuemaxxing/app
1507 67 154 10 13
useMetricLoopRealtime.ts
in 25-realtime-2/src/metricloop
1135 31 124 11 23
runs.ts
in 27-valuemaxxing/lib
302 14 120 40 17
openai.ts
in 24-api-codex/agentic-legibility-scorecard/lib/analysis
497 33 116 23 10
metricloopForensicsRuntime.ts
in 25-realtime-2/src/server
703 31 109 16 18
ParetoFrontier.tsx
in 27-valuemaxxing/app
777 18 108 14 55
MetricLoopDashboard.tsx
in 25-realtime-2/src/metricloop
1165 8 106 9 70
configuration-panel.tsx
in 21-agentic-memory/components
818 13 89 11 49
assistant.ts
in 16-built-in-tools/dashboard-demo-starting-point/lib
478 1 87 18 87
assistant.ts
in 16-built-in-tools/dashboard-demo-final/lib
473 1 87 18 87
supplyRealtimeDebugLog.ts
in 25-realtime-2/src/agent
132 26 82 62 5
MetricLoopForensicsWorkbench.tsx
in 25-realtime-2/src/metricloop
436 18 82 19 19
vite.config.ts
in 25-realtime-2
382 19 81 21 11
metricLoopForensicsData.ts
in 25-realtime-2/src/metricloop
725 22 77 11 15
python-agent-bridge.ts
in 21-agentic-memory/lib
345 21 75 22 9
frontier.ts
in 27-valuemaxxing/lib
212 13 72 34 15
wav_recorder.js
in 09-realtime/openai-realtime-console-example/src/lib/wavtools/lib
481 15 69 14 12
page.tsx
in 24-api-codex/agentic-legibility-scorecard/app
494 8 68 14 28
SupplyAssistant.tsx
in 25-realtime-2/src/agent
373 14 67 18 27
mmrag_bh.py
in 04-mmrag_tooluse
447 24 62 14 9
route.ts
in 27-valuemaxxing/app/api/experiments/ptc
396 8 53 13 18
data_validator.py
in 05-4o_fine_tuning
142 4 52 37 24
realtimeCostTrace.ts
in 25-realtime-2/src/realtime
253 26 50 20 3
image-remix-tool.tsx
in 13-image-gen/imagegen-demo/src/components
319 2 50 16 42
sidebar.tsx
in 21-agentic-memory/components/ui
635 23 49 8 10
weatherSearch.ts
in 25-realtime-2/src
206 17 42 20 11
eval.py
in 05-4o_fine_tuning
216 6 41 19 19
useHandleSessionHistory.ts
in 14-voice-agents/realtime-workspace-agents/src/app/hooks
157 8 41 26 16
app.py
in 07-reasoning/shipmentPlanning/backend
258 20 40 16 10
MetricLoopActionConsole.tsx
in 25-realtime-2/src/metricloop
250 2 39 16 30
realtimeResponseController.ts
in 25-realtime-2/src/realtime
139 16 38 27 6
calendar.tsx
in 21-agentic-memory/components/ui
203 26 35 17 5
BaseDialogueAgent.ts
in 18-responses-api/openai-simulator/src/dialogue
173 19 35 20 4
task-drawer.tsx
in 26-agents-sdk/web/src/components
291 7 34 12 10
main.js
in 17-gpt-5/minecraft/src
211 7 34 16 10
server.js
in 22-chatgptapp-pingpong
541 6 34 6 28
OpenAIAgent.ts
in 18-responses-api/openai-simulator/src/dialogue
219 8 34 16 18
reviewInsights.ts
in 25-realtime-2/src
334 6 33 10 17
MetricLoopNotebook.tsx
in 25-realtime-2/src/metricloop
544 10 31 6 11
tools_helper.py
in 20-agent-rft/utils_shared
146 6 31 21 14
openai.ts
in 27-valuemaxxing/lib
238 11 30 13 8
runtime.py
in 26-agents-sdk/app/agents
466 8 30 6 10
mock_api.py
in 12-agentic-tool-calling
140 10 28 20 6
About This Analysis
  • File complexity is the sum of the McCabe indexes (conditional complexity) of the units (methods, functions...) in a file.
  • Files are classified in five categories based on that sum: 1-25 (simple files), 26-50 (slightly complex files), 51-125 (medium complex files), 126-250 (complex files), 251+ (very complex files). The default bands are five times the unit complexity bands, as a file is a group of units.
  • Only main code files with units are classified. Files without units (languages without unit analysis, or files without functions) have no complexity to measure and are left out rather than counted as simple.
  • A very complex file holds many decisions, which often means it has too many responsibilities: a candidate to split, and a place where changes need more testing.
Learn more...