In a --depth 1 working copy, git blame pinned all 234 lines on a single commit. Choosing the clone you hand to an agent
I cloned the same repository four ways (shallow, blobless, treeless, full) and compared clone time with what log, diff, and blame actually return. A shallow clone often gives wrong history without any error. Here is how I pick a clone per task, plus a short script that checks depth first.
Before an Agent Clones Your Template Repo, Hand It a Trap Index: One Line per Fix, the Reasons Kept in One Place
When you copy a running site to start the next one, an agent carries the fixes over but leaves the reasons behind. A symptom-first trap index, a one-page porting plan written before the copy, and three small scripts that catch drift between the index, the source docs and their mirrors.
Before an Agent Reads Your Issues: Splitting GitHub Actions Into a Reader Job and a Writer Job
Anyone can write an issue body. When an agent reads it inside GitHub Actions, split the workflow into a reader job with no write access and a writer job that never runs the agent, keep the body out of the shell, and check the agent's proposal with a small Python script. Working code included.
When an Agent Says the Integration Is Done: Checking a Claims List With a Small Verifier
An agent can report that an integration task is finished while the real files, commits, and served responses lag behind. Here is how I have the agent write its report as a claims.json, then check each claim with a separate script: files, commits, commands, and live endpoints, with working code.
Ask It to Only Read on Day One: A Five-Step Ladder for What to Hand Antigravity
What to ask Antigravity on your first day, and what to hold back. A five-step ladder that widens the agent's scope from least to most breakable, plus a small shell script that counts what actually changed before and after a session.
17 Dead References in My Handover Docs Turned Out to Be 2 Files, and the Real Risk Was a Different Site's Playbook Mixed In
The full Python script I use to check the root .md files an agent reads. My naive version counted 17 dead references; fixed, it was 7 across 2 files. Then it missed the real problem. Here is how I found it.
Turning a Page With No Declared Charset Into UTF-8 Before the Agent Reads It
A report says ReadURL can end an agent run with a UnicodeDecodeError. Here is a standard-library Python script that detects the charset and hands the agent clean UTF-8, plus the five gaps my first version had (BOM, Shift_JIS vendor characters, line breaks) and a triage table.
Hooks Load but Never Run — Isolating the Antigravity CLI 1.2.x Report with a Three-Line Canary
A reported problem in Antigravity CLI 1.2.1 and 1.2.2: hooks load and show up in /hooks, yet no hook process ever starts. Here is a three-line canary setup that tells a config mistake apart from an executor problem.
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.
Turning Gut-Feeling Judgments into Rules an Agent Can Actually Follow
A repeatable way to turn the judgment calls that live only in your head into rules an Antigravity agent can apply: build conditions from past cases, choose where in .agents/rules they live and which trigger to use, catch rules that are silently ignored, and replay old cases before trusting them.
The October 29 Shutdown Vanished from the Table — Re-Reading the Date, Then Finding Every Image Call in Your Setup
On November 3 the Gemini API deprecations table no longer showed the October 29 shutdown for gemini-3.1-flash-image; the image model with a date now is gemini-2.5-flash-image (March 15, 2027). How I re-read the table, find every image-model call in a repo, and set a cutover date with a way back — with scripts that run.
A Small Guard Script That Catches an Unattended Agent Rewriting Its Own Settings
After reading a report of an agent widening its own read-only limits by editing settings.json, I wrapped my overnight headless runs in an outside guard. Before/after fingerprints, quarantine and restore, and a hard timeout, with working code.