Free field guide

Who Wrote This?

The engineering leader's guide to governing AI-written code, and the technical debt that comes with it.

By Raghav Chamadiya, co-founder of Repowise

8 chapters, a maturity scorecard and a do-it-yourself appendix.

Get the PDF

By getting the guide you agree to our Terms of Use and to occasional emails from Repowise about research and product updates. You can unsubscribe at any time. See our Privacy Policy.

PDF, 71 pages, about 55 minutes

Executive summary

Five findings, five actions.

Your engineers already work with coding agents, and your repository is changing shape faster than your dashboards can show. The guide measures that change and turns it into a plan you can start on Monday.

  1. 4.5x

    Popular open-source projects built with coding agents carry about 4.5 times the share of too-big functions that projects started in 2021-22 had at the same age, and about 3 times after accounting for codebase size.

    Our study of 200+ open-source repositories, 2026, observational, projects compared at the same age. Chapter 2.

  2. 34/79

    Commit trailers miss much of the agent use: 34 of 79 young projects that barely credited agents still added an agent config file within two months.

    Our study of 200+ open-source repositories, 2026, observational, young projects with few agent credits. Chapter 3.

  3. 3.3x

    In agent-era projects, each contributor adds over three times as much new code a week as in older projects of the same age, and all of it lands on the same reviewers.

    Our study of 200+ open-source repositories, 2026, observational, lines added per contributor-week at six months. Chapter 4.

  4. 41-57%

    Splitting a big function moves the work: its new helpers take 41% to 57% of the later edits in that area.

    Our study of 200+ open-source repositories, 2026, observational, later edits after a split. Chapter 6.

  5. 19%

    In a controlled trial, experienced developers were 19% slower with AI while believing they were faster.

    METR randomised trial, 16 developers, 246 issues, early 2025. Chapter 1.

Median share of too-big functions at 180 days by project start: 0.27% before 2023, 0.57% for 2023 to mid-2024, 1.84% in the first half of 2025, 1.37% in the second half, 1.39% in 2026.
Figure 2.1 from the guide. Too-big functions stepped up in 2025. Our study of 200+ open-source repositories, 2026, observational.

Five actions

  1. 01

    Report the agent share of your code only with its label coverage, the share of commits you could label at all.

  2. 02

    Name the 20 functions that are both too big and busy, and give each one an owner.

  3. 03

    Order the review queue by each file's fix history, and save second reviewers for the top of it.

  4. 04

    Write the reason behind every settled decision next to the code, where agents and new hires will read it.

  5. 05

    Turn one review rule you already follow into a CI check this month, in warning mode first.

A look inside

Written to be read on a phone, in about 7 minutes a chapter.

Swipe for more pages.

  1. A chapter opener: a page from the guide
    A chapter openerEvery chapter starts with its point in one minute. Chapter 2, Debt at agent speed.
  2. The data, drawn plainly: a page from the guide
    The data, drawn plainlyFigure 2.1: too-big functions by the date each project started, one dot per repository.
  3. The maturity model: a page from the guide
    The maturity modelSix dimensions and five levels, scored against evidence you can open today.
  4. Do this on Monday: a page from the guide
    Do this on MondayThree actions to close every chapter, with the tools you already have.

Contents

Eight chapters, a scorecard and the recipes.

Each chapter opens with the point in one minute and closes with three things to do on Monday.

  1. 01

    Your codebase has a new author

    How much of your code an agent wrote, where it lives, and why most teams cannot answer yet.

  2. 02

    Debt at agent speed

    More too-big functions at the same age, on a list still short enough to name and own.

  3. 03

    Who wrote this?

    Label each change as agent, human-attested or unknown, and keep one record per merged change.

  4. 04

    Reviewing at agent speed

    Point a fixed amount of reviewer attention at the code that history says breaks.

  5. 05

    When nobody remembers why

    Single-owner files show no clear difference between eras. Keep the reasons behind decisions where agents and new hires will read them.

  6. 06

    Paying it down without breaking things

    Plan each split around how the code changes, and judge it by the whole area.

  7. 07

    Policy engineers will actually follow

    The change-management questions you already ask, answered with evidence on every change.

  8. 08

    The AI Code Governance Maturity Model

    Six dimensions, five levels each, and a 90-day plan to move up.

  9. +

    Scorecard and do-it-yourself appendix

    A ten-minute self-assessment, plus git and shell recipes for every measure in the book.

The data

Built on our study of 200+ popular open-source repositories.

200+
popular open-source repositories, read commit by commit
131 vs 80
projects started in the agent era, against projects started before it
4 stages
compared at the same age: 90 days, 180 days, the 300th and the 1,000th commit

The method and the cohort lists are in the guide's appendix.

FREQUENTLY ASKED

Before you download

Who is this guide for?

Engineering leaders, platform and developer experience leads, and staff engineers whose teams work with coding agents such as Claude Code, Cursor, Copilot or Codex. The whole guide reads in about 55 minutes, about 7 minutes a chapter.

Is it free?

Yes. Leave your work email and the PDF downloads straight away. We also email you a link so you can find it later.

What do you do with my email?

We send you the guide, and occasional emails about our research and product updates. You can unsubscribe at any time. We keep any name, company and role you give us with your email, and the privacy policy has the details.

Is there a vendor pitch?

A short box at the end of each chapter says how Repowise does that chapter's work. The rest is a playbook you can run with the tools you already have.

The cover of Who Wrote This?

Read it this week. Measure it on your own code next week.

The guide is free. Repowise reads your code graph and git history and hands your agents and reviewers the same evidence the guide uses.