Weekly Numbers · 4 min read

Claude Code in Production: One Week of Real Engineering Numbers

Background: why I publish these numbers

AllyOS is a business system I build with Claude Code: a customer portal, a supplier portal, and internal operations tools in one repository. Plenty of posts claim AI makes coding fast, but most are about demo projects. Few show the engineering ledger of a system that people use every day.

So every Sunday I count last week's engineering numbers straight from git and write them down without spin. Think of it as bookkeeping: until you keep the books, a busy week is just a feeling. Only engineering counts go here (commits, tests, guards, deploys), never business data.

Window: Beijing time Nov 22, 2026 00:00 to Nov 29 00:00, on the integration branch (everything merges here first and auto-deploys to staging). Measured on Nov 29, 2026.

How much of the code did AI write?

356 of 378 non-merge commits carry a Claude co-author trailer: 94%. That alone is not surprising. In this repository the AI writes the code by default, and people set requirements, make trade-offs, and review results.

The daily rhythm is more telling: 71, 69, 96, 22, 22, 30, and 68 commits. Two midweek days dropped to 22. I did not investigate why, so I won't guess. The reminder is that the AI does not get tired, but the pipeline still has humans in it, and their pace caps the output.

Why were there more test commits than feature commits?

Because writing tests is what I deliberately push the AI to do. Grouping by Conventional Commits prefix: test 90, docs 85, fix 83, feat 79, chore 19, ci 12, refactor 10.

Features are only about a fifth of the work. That is healthy: the AI writes features quickly, and the real cost is proving they didn't break anything. The week added 294 test files; net of deletions and renames, the total went from 4,854 to 5,101. Docs commits are high because a pre-push check refuses any change to a module that doesn't update that module's docs in the same merge.

What are guards, and why did 12 appear in a week?

Guards are scripts that run automatically before every push; the count went from 109 to 121. In plain terms, they are a security desk with a checklist: is the file encoding explicit, do dependencies point the right way, are the docs in sync?

My rule is simple: the same mistake twice becomes a guard. A note in the AI's instructions lowers the error rate; a check blocks the error outright. My earlier post on the Python subprocess encoding check came from exactly this rule. The week also produced 50 new incident write-ups, and the repeat offenders among them become next week's guards.

Why were 18 of 25 production updates hotfixes?

This is the number I need to reflect on most. By design, every change lands on the integration branch first and ships to production once a day on a schedule; hotfixes take a side path straight to production. This week had 7 scheduled releases and 18 hotfixes, more than two and a half times as many.

My read: the daily release solved stability but not urgency. When a problem can't wait until tomorrow, it takes the side path, and heavy use of that path means either the pre-release smoke test missed something or the release interval is too long for this stage. Next week I'll classify all 18 and see which ones a smoke test should have caught. An ugly number still goes in the books.

Measured numbers

MetricValueHow it was measured
Merged pull requests160git log --first-parent, measured 2026-11-29
Non-merge commits / AI co-authored378 / 356 (94%)per-commit trailer check, 2026-11-29
Net change3,188 files, +166,332 / −33,269 linesgit diff --shortstat week start vs end, 2026-11-29
Test files added / total294 / 4,854 → 5,101counted by test folder and file suffix, 2026-11-29
Pre-push guard scripts109 → 121counted at week start and end, 2026-11-29
New incidents / specs / DB migrations50 / 48 / 46git diff --diff-filter=A, 2026-11-29
Production updates25 (7 scheduled + 18 hotfixes)main-branch merge history, 2026-11-29

A checklist you can copy

  1. Fix a window (for example, the 7 days before Sunday midnight), state the time zone, and never change it.
  2. Count commits with git log --no-merges --since --until, and AI share via co-author trailers.
  3. Keep Conventional Commits prefixes so a one-line sed shows where effort goes.
  4. Count test files and check scripts at both ends of the week and report net growth.
  5. Split production updates into scheduled and hotfix; a high hotfix share points back at pre-release testing.
  6. Publish the bad numbers too, and compare next week.

References: the git log documentation covers --since and --first-parent; the Claude Code docs cover the basics of AI-assisted development.

FAQ

If 94% of commits are AI-written, do you still need people?

Yes, and their work is more concentrated. The AI writes; people decide what to write, review results, and own the trade-offs. The slowest days this week were the days the human steps slowed down.

Does a high commit count mean high productivity?

Not on its own. Commit counts depend heavily on how work is split, so I read them alongside test growth, guard growth, and hotfix count. If you want a measurable AI development pipeline for your own team, see services, or read my Claude Code worktree hooks post-mortem.

About the author

Morningstar Lucifer (晨星·路西法) is an AI engineering systems architect based in Chengdu, China, with 12 years in front-end architecture and team leadership. Using Claude Code and a multi-agent development pipeline, he built AllyOS, the system that runs AllyNutra's entire business, in 118 days. He also built TeacherCopilot, a profitable AI product.

Written by the author together with AI. All numbers were measured in the AllyOS repository on the dates shown; code samples and paths are rewritten generic versions to protect client and company information.

Want guardrails like this? Email me The AllyOS case study (in Chinese)