Engineering Team Performance Is Not a Commit Count

Every engineering leader is asked the same question sooner or later; how is the team doing? I have been asked it in every role I had over the last ten years or so (and I asked it myself before that, as an engineer looking at the team next to mine). The honest answer was usually a feeling. A good feeling sometimes, backed by a release that went out on time, but a feeling nonetheless.
The tempting fix is to count something. Commits per week, pull requests merged, lines of code written. These numbers are easy to collect and they look objective, which is exactly the problem. The idea that lines of code measure progress is older than most of the people measured by it (the remark about measuring aircraft building by its weight is usually attributed to Bill Gates, and it was already a cliché when I was a student). A count that a person can raise by working worse is not a measure of performance; it measures how well people learned to raise it.
Counting the wrong thing
So what does one mean by the performance of a team? My answer is not very original; a team performs well when it keeps shipping, and when the code it ships stays easy to change by more than one or two of its people. The first half is about the work. The second half is about the code, and about how it evolves over time.
The second half is the one that is rarely watched. Manny Lehman wrote it down in the seventies, while studying how large programs changed over the years; a program that is in use must keep changing, and as it changes its complexity grows, unless somebody does the work to reduce it. Nothing in a weekly commit count tells you whether that work is being done. You find out a year later, when a two-day change takes three weeks and the only person who understands the payments module hands in their notice.
Ok, I know how this sounds. A tool that watches the team.
I do not believe in ranking engineers by numbers, and I have never seen it work properly in practice. But a team that cannot see how its code evolves is not protected by that ignorance; it is only surprised later. The questions worth asking are about the team and the code together, read over time, not about who typed the most this week.
What I wanted to see instead
This is why we built .Code. It reads the whole history of every repository of an organization (on GitHub, GitLab or Bitbucket), back to the first commit, and answers a handful of questions in plain words. Every figure covers one period you pick (the last month, three or six months, the year, or all time) and is compared with the same length of time before it, so a change means something.
There are five questions I care about, and .Code is organised around them.
Is the work progressing? The executive summary says how the work that reaches production is moving, what is going well and what is not, and where each repository is heading. It is written in sentences, because a lead reading it on a Monday morning should not need a legend to read a chart.
Is the code getting harder to change? .Code measures the maintainability of the code and follows it over the years, together with the complexity of the functions, the duplicated code and the classes that have grown too big for their own good. A codebase rarely becomes hard to change overnight; it does so one reasonable commit at a time, and the trend is what you need to see.
Who does the code rest on? This is the one I worried about most as a manager. Knowledge and ownership shows the code that only one or two people know (the bus factor, in the old and slightly morbid phrase), the code that nobody still committing knows at all, and whether the work is moving into fewer hands.
How does the AI-written code hold up? Most teams now write part of their code with an assistant. .Code tells that code apart, by tool where it can, and compares its maintainability with the rest. I have my own opinion about how this ends, but I would rather look at the figures of your repositories than argue from mine.
Where do the bugs come from? Each fix is traced back to the change that most likely brought the bug in, so you can see how long bugs lived and which kinds of change needed fixing later.
All of this can be read for the whole organization, for the repositories of a single product, or for a team with its leads and members. There is no AI in the analysis itself; every figure comes from static analysis and published methods, so the same code gives the same figures every time. The access is read-only, and each repository is cloned into memory, measured there, and gone when the work ends.
Epilogue
None of this replaces talking to the team. The numbers tell you where to look, and the people tell you why. But the cost of not looking is real, and it is paid by the team itself, a year or two later, in slower changes and in knowledge that walks out of the door.
.Code is on a waiting list for now. If you want to see your own organization this way, join the waiting list with your work email, and we will open your account by invitation. I would like to hear what you think of it.