ANTIGRAVITY LABJP
Articles/Agents & Manager
Agents & Manager/2026-06-13Advanced

Designing Parallel Agent Changes So You Can Trace Them Later

Antigravity 2.0 became a control tower for many agents. Here is how to build an audit trail that lets you trace who changed what and why, designed from real operational failures.

AI agents21auditreview4operations7Antigravity 2.02

Premium Article

Antigravity 2.0 shifted from a code editor to a "control tower that supervises many agents at once." Subagents running in parallel, scheduled runs in the background. The throughput genuinely goes up.

For me, the price of that throughput arrived as "I have no idea who did what." As an indie developer running four sites in parallel, some mornings a change I do not recognize is sitting in the repo. An agent did it, no doubt, but which task, on what judgment, I cannot trace. That is the scariest state to be in. I fell into exactly this on a Dolice media property and burned half a day finding the cause.

I should have put a trace-it-later design in place before adding agents. This article works backward from that operational failure to show how to build the audit trail.

You lose the thread because intent is never recorded

What makes agent changes untraceable is not the diff itself. The diff stays in git. What is lost is the intent: why the change was made.

A human developer writes intent into the commit message or the PR description. An agent, left alone, tends to leave hollow messages like "Update files." Look at that commit six months later and you cannot tell what it was for.

So the first step of an audit trail is to force intent to be recorded mechanically. Record intent, not just the diff. That is the starting point.

Stamp tracking metadata into the commit trailer

What I use is a convention that always appends structured metadata to the end of the commit message. The body is the human-facing explanation; the trailer is tags for machines to grep.

Add: publish 3 premium articles (claudelab)

Three themes: CLI migration, OS delegation, audit design. JA+EN.

Agent-Task: claudelab-premium-thu
Agent-Run: 2026-06-13T20:14+09:00
Agent-Intent: premium-content-publish
Agent-Gates: article,templating,frontmatter,redirect=pass

Agent-Task tells you which scheduled task it came from, Agent-Run the run time, Agent-Intent the intent, and Agent-Gates which quality gates it passed. When you later wonder "which task was that change," this alone makes tracing instant.

The extraction looks like this.

# List only commits from a specific task, in time order
git log --all --grep="Agent-Task: claudelab-premium-thu" \
  --pretty=format:"%h %ci %s"
 
# Audit for any commit that slipped past the quality gates
git log --all --grep="Agent-Gates:" --pretty=%b \
  | grep "Agent-Gates:" | grep -v "=pass" || echo "All commits passed the gates"

These two greps are my every-morning check. The first tells me which task added what last night; the second confirms no change slipped past a gate.

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
Commit-trailer metadata that stops 'which agent made this change?' from ever happening
A 3-tier gate that separates changes needing human review from those safe to auto-approve
A prompt convention that forces a one-line intent, greppable after the fact
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-06-13
Instruction Drift in Scheduled Agents — A Three-Layer Design for Keeping Definitions, Docs, and Reality Aligned
Scheduled agents keep logging success even after their instructions diverge from reality. Here is the three-layer drift-detection design — definition, documentation, reality — I built after silent failures in my own operations.
Agents & Manager2026-06-03
Choosing the Right Granularity for an Agent's Tools — Bundle or Split?
Should you split an agent's tools finely or bundle them coarsely? A single decision rule, an intentionally asymmetric two-tier design for destructive actions, and real numbers from running six apps.
Agents & Manager2026-06-03
Delegate the Undoable, Guard the Irreversible — Tiering Agent Autonomy by Reversibility
When you hand production work to an Antigravity agent, the thing that bites first isn't intelligence — it's whether the operation can be undone. Here is a design that sorts every operation into three reversibility tiers and routes each to auto-execution, checkpointed execution, or a human gate, with TypeScript implementations and real numbers from running six apps in parallel.
📚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 →