Tessl measures agent-written code drift toward complexity

tessl.io10 min read

An analysis of five internal codebases managed by coding agents reveals that unmonitored agent-written code drifts toward increasing complexity and duplicated lines, even while average function complexity remains stable. The authors found that watching concentration metrics like overly complex functions rather than averages helps catch code erosion early. Additionally, shifting to a different model and conducting focused code cleanup successfully reduced complexity. Open article →