A real codebaseSee where your next agent will get stuck.We scanned garth, an open-source project: 41 files, drawn as trees of points, one per piece of code structure. 17,767 in all.
What it scoresKrypton scores how easy your code is for the next agent to edit and understand.It reads the shape of every function across the full syntax tree: how deep it nests, how many paths it takes, how much it holds at once.
Hard to changeIt lights up where the next agent will struggle.Eleven functions are too tangled to change safely. The darker and bigger the cluster, the worse it is. The worst is 46.2 times over the limit.
The fixYour agent untangles them until the code passes.With Krypton in the loop, the agent refactored garth’s hotspots locally and raised its score from 62 to 81, all 163 tests still passing, before a reviewer touched it. The animation is an illustration.See the savings