Code health
This codebase scores 5.3 out of 10 for code health, which we rate needs work. It also scores maintainability 6.8 and static performance 9.4 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 1,424 of 8,758 files are git hotspots, and they average 3.7 — which is where the fixes pay off most.
5 things worth doing this quarter.
Break up _kanban_notifier_watcher (CCN 100, 525 lines)
gateway/kanban_watchers.py:761
_kanban_notifier_watcher nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 6 files import it, changed 25 times in 90 days.
Break up build_kwargs (CCN 73, 191 lines)
agent/transports/codex.py:344
build_kwargs is long, branchy and widely depended on, and part of it is duplicated, so splitting it also removes a copy; 13 files import it, changed 23 times in 90 days.
Update the decision “Fan out passthrough button presses to all live gateway sessions”: the code it governs has moved on
Agents and reviewers still follow it, so they are steered by a rule the code no longer keeps.
Delete 86 unused symbols and files (1,380 lines)
Nothing in the graph reaches them, across 58 files; every reader and agent pays to skip them.
Break up _load_provider_from_dir (CCN 29, 85 lines)
plugins/memory/__init__.py:449
_load_provider_from_dir nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 17 files import it, changed 4 times in 90 days.
Every detector's open count by area, each with its worst example. An inventory, not a to-do list: the actions above are the part worth doing.