AI

I Gave My Homelab an AI Team: Claude Code, Antigravity and Grok Bot Working From One Issue Inbox

December 2, 2026 Β· 10 min read Β· John Crump
Neon diagram of an issue inbox (forgejo + labels) fanning out to claude code (engineering, plans + runs), antigravity (builder, apps + tests) and grok bot "maya" (noc, research + first response), all feeding a phone "approve?" push via home assistant, inside a dashed homelab-ai-team frame, with notes reading write it once, plan β†’ approve β†’ run, face id βœ“, risky = no button and 🚨 emergency lane

I now run three AI agents in my homelab: Claude Code, Google Antigravity and Grok Bot. Each is good at something different. Turning all three loose on the same firewall and Proxmox cluster would be asking for trouble, though. So I gave each one a job, made them share one rules file, and wired them to a self-hosted issue tracker. I write one issue, the agents pass it between themselves, and nothing touches live infrastructure until I add an approved label.

Here’s how it works, how I built it in an evening, and the things that bit me along the way.

The short version

  • The inbox: a self-hosted Forgejo git server, LAN-only, behind my reverse proxy with a wildcard cert. One repo holds the rules file, and its issues are the to-do list.
  • Claude Code is engineering. It’s the primary operator and runs from a cron job on my admin box every 10 minutes. It triages new issues, writes plans, and makes infrastructure changes, but only after I approve.
  • Antigravity is the builder and tester. It has its own VM and checks for build work every 15 minutes using its built-in scheduled automations.
  • Grok Bot (“Maya”) is my NOC. She watches for trouble, does first response and emergency fixes, and handles research. She’s also the backup operator and the owner of my network-map app. When I’m talking to her directly, she can act on my spoken instructions.
  • The safety gate: planning runs with no shell access at all. Execution only happens if my account added approved after the plan was posted, and the runner checks that in the issue history.
  • Cost: nothing beyond the subscriptions I already had. No pay-per-use APIs.

Who does what

AgentRuns onJobCan change infrastructure?
Claude CodeA small dedicated admin boxEngineering. Primary operator: planned changes and proper fixes to the firewall, Proxmox, reverse proxy, DNS and IPAMYes, on ops issues, only after I approve
Grok Bot (Maya)A Mac miniNOC. Monitoring, first response, emergency fixes and research; backup operator; owns the network-map appYes, on ops-maya issues after I approve, or live when I tell her directly
AntigravityIts own Ubuntu VMBuilds and tests web apps and UIs in its built-in browserNo. It writes a handoff for the operator

All of this lives in one AGENTS.md at the root of the repo. Antigravity reads AGENTS.md natively. Claude Code reads CLAUDE.md, and mine contains one line, @AGENTS.md, which imports the shared file. Grok Bot gets a short standing instruction that tells it to read the same file. So there’s one set of house rules, maintained in one place.

How a job flows

  1. I open an issue in plain English, for example “Check disk space on the Proxmox hosts.” No label needed.
  2. Claude triages it on its next run and adds one label: research (Grok), build (Antigravity), ops (Claude), or ops-maya (anything about the app Maya owns).
  3. The agents hand it on by swapping labels and commenting. Grok posts findings and saves a dated research note. Antigravity builds and tests, then commits a handoff file. Each then moves the issue to the next label.
  4. The operator posts the exact plan: hosts, commands, backups, how it will verify the change and how to roll it back. Then it adds needs-approval.
  5. I add approved. From my phone it’s one tap on a notification (more on that below).
  6. The operator executes it on its next run. It re-checks the live state first, backs things up, makes the change, comments what changed and where the backups are, then closes the issue.

If an agent gets stuck or needs a decision only I can make, it adds blocked and explains why in a comment.

The safety design

An unattended agent holding root keys to a firewall needs real guard rails, not just a polite paragraph in a prompt. Here’s what’s actually enforced:

  • Planning has no shell. This one surprised me. I first ran the planning step in Claude Code’s plan mode, assuming that meant read-only. On the first test it happily ran an ssh … ha-manager status, because it judged that command read-only. The command was harmless, but the guard was the model’s judgment, not a lock. Now triage and planning also run with the Bash tool disabled outright, so live checks happen only in the approved run.
  • Approval is checked, not trusted. The runner doesn’t just look for the approved label. It reads the issue’s timeline and confirms that my account added it after the latest plan comment. Bots can’t approve: the helper script refuses to add that label.
  • Every agent gets its own git account and token, scoped to the repo and nothing else. Antigravity’s VM has no SSH keys to anything.
  • Idle runs cost nothing. The cron job is a small Python script that only starts Claude when there’s actually an issue to work on.
  • House rules every agent follows: back up before editing. Ask first for anything public-facing, anything that costs money, deleting data, or firewall changes. Never put secrets in the repo or in issues.

Maya: backup operator and “live mode”

I use Grok Bot a lot by voice while I’m testing things, so I didn’t want her limited to issues. She has two operator modes:

  • Backup: she takes ops-maya issues, or any ops issue Claude hasn’t commented on for an hour. She follows the same plan β†’ approved β†’ execute flow.
  • Live mode: when I tell her to do something directly, my instruction is the approval. She reads back anything risky in one sentence and waits for my yes. Afterwards she logs the change as a closed “Live (maya): …” issue, so the history stays complete and Claude knows what changed.

She also owns my network-map app. The other agents leave it alone, and Claude’s triage sends anything about it straight to her. To give her repo access, I put her token and a clone of the repo on the Mac, plus a small helper script with commands like queue, show, comment, relabel, approved and log. That way she doesn’t need any special connector. She just runs commands.

Building it

  • Forgejo: a small Debian LXC on shared storage, in HA, using SQLite. It took 2 cores and 1 GB of RAM. It’s published through my reverse proxy with the wildcard cert and a LAN-only access list, and recorded in DNS and IPAM like everything else.
  • Antigravity’s VM: Ubuntu 24.04 from a cloud image, with Xfce and xrdp so I can reach it from Windows Remote Desktop. Antigravity installs from Google’s official tarball. Its scheduled automation is a JSON file in ~/.gemini/config/sidecars/, and its own rules say you have to switch it on in the Automations dashboard. The agent can’t enable it itself, which I like.
  • Claude’s runner: a Python script plus one crontab line.

Things that bit me

  • “Free” apps that aren’t. Earlier that day I’d had Claude install a self-hosted threat-intelligence map from a list of cool apps. It built the whole thing: container, HA, DNS, proxy host, IPAM. Then it pointed out the app needed a pay-per-use API key. I had it tear everything down, which was easy because every change had been logged. That’s where the “say up front if it costs money” rule came from.
  • Raw disks on CIFS can’t be snapshotted in Proxmox. Convert VM disks to qcow2 if you want snapshots on a NAS share. A live conversion over CIFS failed partway for me; doing it offline worked.
  • New LXCs hung on apt because DNS returned IPv6 addresses and my LAN has no IPv6 route. Setting Acquire::ForceIPv4 "true"; fixed it.
  • Forgejo wouldn’t start until its app.ini was writable by the service, because it wants to save a generated LFS secret on first run.
  • systemd user timers stop when you log out unless “linger” is enabled, which needs sudo. A plain crontab line doesn’t have that problem.

The first real runs

My first test was a read-only HA health check: all 15 HA resources started, nothing changed, issue closed by itself. The second was “check disk space on the Proxmox hosts”. Nothing was over 80%, but it found things I didn’t know about: a storage on one node failing with I/O errors, a backup share that’s offline on every node, a missing mount, and a VM disk at 95% of its allocation. The “failing” storage turned out to be an SSD in a USB enclosure that had quietly dropped off the bus a week earlier. That alone was worth the evening.

Bonus: cleaning up my dashboard

While adding the new machines to my Homepage dashboard, I noticed its services.yaml held about twenty API keys and passwords in plain text, plus dozens of old backup copies holding the same values. Now every secret is a {{HOMEPAGE_VAR_…}} placeholder, the values sit in a mode-600 env file the container loads, and the old backups are locked away. A few icons also broke at the same time. That wasn’t me: the dashboard-icons project had removed them. Switching those tiles to the selfh.st icon set (the sh- prefix) brought them back.

What I didn’t do (yet)

I’d planned to give Maya image generation through Nano Banana. Then I checked Google’s pricing. The Gemini API has no free tier for the image models, and a Gemini Pro subscription doesn’t cover API use. The cheapest option is about $0.034 per 1K image. That’s cheap, but it isn’t free, so it’s on hold. If I do it, it’ll be with a budget cap on the API project.

Approving from my phone

Opening the issue tracker to add a label got old fast, so the last piece was phone notifications through the Home Assistant companion app, which I already had. A small script on the admin box checks the inbox every two minutes and sends a push when a plan is waiting, when an agent is blocked, and when a job is done. The plan notification has an Approve button. I press and hold, tap Approve, confirm with Face ID, and Claude starts the run straight away. My first test went from tap to done in 18 seconds.

  • Nothing was opened to the internet. Home Assistant sends the push out through its free relay. A listener on the admin box subscribes to Home Assistant’s event stream to catch the button tap.
  • The button is checked like everything else. It works once, only for the exact plan it was sent for, only from my Home Assistant user, and only while the issue is still waiting. It then adds approved using a token that can touch issues and nothing else.
  • Risky plans don’t get a button. Anything that mentions the firewall, making something public, deleting, or spending money arrives as “review this” instead, and I approve it at a keyboard.
  • A tired-owner mode. I can hand it a list of issues to auto-approve overnight. It expires after 12 hours, and risky plans still wait for me.

That also settled the division of labor: Maya is my NOC and Claude is engineering. Maya watches, responds first and does research. Claude does the planned, approved changes and the proper fixes. So Maya also gained an emergency lane. If something is down right now, whether I tell her or she spots it herself, she fixes it immediately with the smallest step that restores service, such as a restart or freeing space. She doesn’t wait for a plan or an approval. Deleting things, firewall changes and disk repairs still need my say-so. Afterwards she logs what she did, and my phone gets a 🚨 notification.

Things to watch if you build this

  • Don’t trust plan mode as a sandbox. Take the shell away while planning.
  • Make approval something you can verify: who added it, and when relative to the plan.
  • Keep infrastructure keys off the builder’s machine. Antigravity auto-runs commands; its VM has repo access and nothing else.
  • Re-verify, don’t relay. Every operator re-checks the live state before acting on another agent’s notes.
  • Keep AGENTS.md short. Antigravity caps rule files at about 24 KB. Facts and rules only.

It’s still low-tech: a git server, a rules file, some labels and a cron job. But now I write one issue, tap Approve when my phone buzzes, and the work gets done with a paper trail.

Leave a Reply

Your email address will not be published. Required fields are marked *