ANTIGRAVITY LABJP
Articles/Agents & Manager
Agents & Manager/2026-07-08Advanced

Measuring the Rework Rate of What You Delegate to Agents: Drawing Delegation Boundaries with Numbers, Not Instinct

How much should you hand to an agent? I drew that line by instinct for a long time. Here is a practical way to compute a per-category rework rate from your git history and redraw the delegation boundary with numbers, with working code.

antigravity424agents122metrics3delegationgit12

Premium Article

On a Friday night, scrolling back through my own commit history, I felt a little uneasy. Far more of the code the agent had written was later edited by me the following week than I had assumed.

That week, the Antigravity agent had clearly helped a lot. The test logs were green, and it felt productive. But when I read the history carefully, a particular pattern kept repeating for certain kinds of work: the agent implements something, and a few days later I rewrite the same lines by hand.

As an indie developer running several wallpaper apps on my own, I tend to hand the fiddly AdMob-related work to the agent. So this back-and-forth was not someone else's problem. I had always drawn the delegation line by instinct. "This I can hand off." "This I should do myself." That night was the first time I questioned the accuracy of that instinct with actual numbers.

"Finished fast" and "turned out well" are different metrics

When you delegate work to an agent, the first thing you notice is speed. Time from instruction to implementation, or the number of tasks cleared overnight. These feel good, and they look good in a report.

But speed guarantees nothing about the quality of the outcome. If code that arrived quickly is rewritten by your own hand the next week, that delegation may not have produced any net time savings. Counting the double work of review and repair, it might even be a loss.

I decided to measure this "share later fixed by hand" as a separate figure: the rework rate. It is a different axis from speed. Even if something is fast, a high rework rate means that area is not yet ready to be delegated. It is unglamorous, but for delegation decisions this metric matters far more.

How to define the rework rate

As a word, "rework" is vague. To turn it into a number, you have to reduce it to observable events. I settled on this definition.

An agent commit counts as "reworked" when, within a fixed window afterward, a human commit touches the same set of files. The window is whichever comes first: within 72 hours, or within the next five commits that touch the same files.

This definition is not perfect. It also catches cases where the human commit was a feature addition rather than a fix. But in practice, signal beat noise. I will get to why later. What matters is starting from a definition that is observable, even if it is rough.

I added one more layer of supporting signal to sharpen it: revert commits, and words like fix, revert, and rework in commit messages. These feed a "looks like a fix" weighting.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
A design that computes a rework rate directly from git history: the share of agent output later fixed by hand
A Python implementation (with real code) that reports per-category rework rates with Wilson confidence intervals
A decision rule for delegate vs. review vs. do-it-yourself, plus an operational log of actually pulling one category back
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Antigravity Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Agents & Manager2026-07-05
Protecting Your Agent Stack's Known-Good State with a Single Lockfile — Change-Budget Design for an Era of Simultaneously Moving Parts
When the IDE build, CLI, model, and dependencies all move at once, you can no longer tell which one caused a regression. Here is a change-budget design that pins your known-good state to one lockfile, with working code and operational logs.
Agents & Manager2026-07-05
Make the Self-Debugging Agent Walk the Logged-In and Post-Paywall Screens
By default, Antigravity 2.0's real-browser self-debug only sees the logged-out free view and reports success. To catch billing regressions, inject an authenticated session and paid state into the agent's browser and force coverage with assertions.
Agents & Manager2026-07-02
Turning Last Night's Failed Runs into Tomorrow's Prevention — Designing a Postmortem Feedback Loop
Stop letting unattended failures end at a notification. A concrete design for classifying failures and feeding fixes back into Guide skills, gates, and schedules, with measured recurrence rates.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →