◉ANTIGRAVITY LABJP
TAG

Python

57 articles
← Back to all tags
Related:
Antigravity20antigravity17troubleshooting10agents7Agents6indie development5error5google-genai5Gemini API4production4api4fix4
✦ Tips/2026-11-26Intermediate

Catching a Cropped Logo in Link Previews Twice, Before and After the OGP Image Is Exported

I sent the URL of a site I had built to a chat, and the link card cut off the last letter of the logo. Two things caused it: the source image was exported broken, and the card crops the left and right edges. Here is the placement check I put in the generator, a check that counts pixels in the exported file, a fetch from the crawler's side, and what to do when an old preview refuses to go away.

▣ App Dev/2026-11-23Intermediate

From December 1, Someone Else Answers gemini-2.5-flash: Find Every Place You Hard-Coded the Name First

On December 1 the Gemini API starts routing gemini-2.5-pro to gemini-3.8-flash and gemini-2.5-flash to gemini-3.5-flash-lite, billed at the new models' rates. Nothing errors, so it is easy to miss. Here is a script that finds model names across code, config and MCP settings, plus a way to log modelVersion so you can see the switch yourself.

◈ Agents/2026-11-19Intermediate

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.

⬡ Integrations/2026-11-19Intermediate

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.

▣ App Dev/2026-10-28Intermediate

I Fetched All 155 Sitemap URLs. Every One Returned 200, but 93% of the lastmod Dates Were the Same Day

A record of fetching every sitemap URL and cross-checking status, canonical, hreflang and lastmod. Full standard-library Python scripts and the mismatch I found.

✦ Tips/2026-10-23Intermediate

594 Articles Had No Body-Link Entrance. Counting the Related-Articles Box Left Only 6 Truly Orphaned

Counting only body links made half my MDX site look orphaned. Here is the full Python script that mirrors the related-articles scoring and also catches links the build strips.

◈ Agents/2026-10-22Advanced

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.

▣ App Dev/2026-10-22Intermediate

Translations Drifted Apart Without Me Noticing: A 70-Line strings.xml Check to Run Before Asking an Agent to Review

A small Python script that finds missing keys, empty strings, placeholder mismatches, and missing plurals across Android locales, how it divides the work with Lint, and how to hand only its findings to Antigravity for fix proposals.

⬡ Integrations/2026-10-22Intermediate

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.

▣ App Dev/2026-10-18Intermediate

Before Letting an Agent Touch My Config, I Found That .env* Doesn't Cover .dev.vars, and Wrote a Preflight Script

Auditing my own Cloudflare Workers repo showed that the .env* line in .gitignore never protected .dev.vars. Here is the full Python script that asks git itself where secrets can leak before an agent opens the repo.

◈ Agents/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.

⚙ AI Tools/2026-10-15Beginner

Does Splitting Work Across AI Tools Really Save Money? Put the Monthly Gap and the Switching Cost in One Table

Is it cheaper to use different AI tools for different tasks? A small Python script that puts per-task cost and switching effort side by side so you can find the break-even point.