← In the News

Tessl's average complexity stayed flat while its worst functions grew

We measured what agents are doing to our code · Stuart Clark and Masha Tsfasman, Tessl · Tessl blog, November 30, 2026

Machine-readable Download Markdown

Tessl adapted the measures from SlopCodeBench (Orlanski et al.) and tracked five codebases weekly. Its main measure is erosion: the share of a codebase's complexity held by functions with ten or more decision points. Between September 6 and October 26, backend average complexity moved from 2.34 to 2.36 paths per function. Over the same weeks, the share held by overly complex functions rose from 51% to 54%. The authors' rule is "watch the tail, not the mean." An internal service that agents maintain with very little human attention had the steepest climb and now has the most overly complex functions of the five.

Tessl then tested two cleanup modes on two external codebases. A daily agent loop of small simplifications cut copied code by more than 20% over 63 changes in one of them, but erosion fell by only 4% of its starting level in one and 0.1% in the other. About 20 larger refactors, each planned after an agent read the whole codebase, cut erosion by 9% and 18% of its starting level. The authors also report that changes touching an overly complex function cost about twice as much as other changes, and about 16% more when compared at the same size. They treat the causal link as an open question.

All of these figures are self-reported by Tessl. The post also promotes Tessl Verify, which now flags pull requests that add avoidable branching. Around the same time Tessl switched models and cleaned up for a release, and the authors say those two things probably drove the improvement since mid-October. They write: "Agents today are good at making change work. They are not yet good at deciding, unprompted, what a simple codebase looks like."

Why it matters: If agents write most of what you merge, a health dashboard built on per-function averages can stay calm while a few functions become too tangled to change safely. Tessl's numbers suggest tracking concentration measures such as erosion or the count of overly complex functions. In Tessl's cleanup tests, a daily loop of small fixes barely moved that concentration; larger planned refactors did.