◉ANTIGRAVITY LABJP
Articles/Agents & Manager
◈ Agents & Manager/2026-10-16Advanced

Before Handing an Agent a .zip: Dropping .git Cut 29 MB to 15 MB, and 28 Secret Warnings Turned Out to Be Noise

Antigravity app v2.23.0 lets you attach a .zip. I packed my own repository to count what .git weighs and how many secret-scan warnings are false alarms, and I leave the full Python script that excludes, scans, and writes a manifest.

Antigravity386.zip attachmentsecretsPython19indie developer16agents146

✦ Premium Article

Antigravity app v2.23.0 (October 12, 2026) lets you attach a .zip archive to a prompt. The official changelog says the agent unpacks it with its own tools.

I wanted to try it on the repository of a website I run as an indie developer. I had the whole directory half-compressed when I stopped. I couldn't say exactly what was inside it.

Here is the conclusion first. Decide what stays out before you hand anything over, and read secret-scan warnings by their contents, not their count. Below are the script I wrote for that and the numbers I got from my own repository.

What the changelog says, and what it doesn't

The v2.23.0 entry says two things: you can attach a .zip and the agent unpacks it with its tools, and you can add a folder from the + menu in the message box. The same release also adds a picker for the agent's permissions preset.

What it doesn't say is just as relevant: size or file-count limits, where the archive is unpacked, and which files get skipped. As far as I checked, the changelog has nothing on those. What goes in is your decision as the sender.

"The whole directory" is too much almost every time. Git history, build output, local config. The agent has no need to read most of it, and some of it you would rather not hand over. For how to shape what the agent may do, see the earlier piece Before Your Finger Learns the Approval Dialog: Folding Antigravity Permissions Into One Policy.

Packing naively versus excluding first

I used the repository of my own Next.js website: a shallow clone (only the latest commit) with 2,424 files. I made three zips to compare — everything, excluded-and-scanned, and a single subdirectory.

How it was packedFilesTotal unpackedZip size
Everything (with .git)2,42450.55 MB29.43 MB
.git etc. excluded, scanned2,39736.03 MB15.20 MB
Only the one directory needed2845.16 MB2.08 MB

What surprised me was how much dropping .git mattered. The unpacked total fell by only 29%, yet the zip got 48% smaller. The contents of .git are already compressed, so zipping barely shrinks them. The excluded .git was 14.52 MB and the zip difference was 14.23 MB. .git rode into the zip at almost its full weight. With a long history, the gap would be wider.

✦

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
✦You'll be able to say exactly what goes into a .zip and what stays out, with sizes and counts, before you hand a repository to an agent
✦When a secret scan fires dozens of times, you'll be able to tell dummy values from real ones line by line, and set it up so the same warnings stop returning
✦You'll skip the manual check for .git and .env on every handoff by letting one script do it in a few seconds
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-10-14
When the App Reads an API Response by Position, I Put a Gate in Front of the Upload So Shipped Versions Don't Crash at Launch
A client that reads a server list by index, as a wallpaper app does, leaves old shipped versions in the wild for a long time. Deleting or reordering a field can crash them at launch. This note shows an append-only check and a hash ledger that freezes shipped version directories, with the output from actually running them.
◈ Agents & Manager2026-10-14
I Expected Agent PRs to Wait Longer Than Human PRs, but 246 Public Pull Requests Showed the Opposite
A count of 246 July-August 2026 PRs in dotnet/runtime, comparing time to the first human reaction on agent-opened PRs and human-opened PRs. Includes the measurement script and a stale-PR check for solo projects.
◈ Agents & Manager2026-09-08
Before I accept what /boost says it verified, I count what its throwaway worktree never saw
Antigravity's /boost runs its tests inside an ephemeral isolated worktree. If your build reaches for files git never tracked, that verification passed on a different tree than yours. Here is how I measure the gap first.