Claude Code orchestrates Antigravity delegates Gemini 4 (Neon · Carbon · Hydrogen)

Keep Gemini 4 locked to Claude Code.

A tidally locked moon always faces its planet. tidelock hands coding tasks from Claude Code to Gemini 4 through agy, Google's Antigravity CLI, and gives each task its own git worktree. The delegate keeps facing Claude while it works: it asks questions, takes steers, and ends with a hand-off Claude reviews and lands. It runs on your agy sign-in, so there's no API key to manage.

Orchestrator
Claude Code
Delegate
agy (Antigravity CLI)
Gemini 4 models
Neon · Carbon · Hydrogen
Claude Code (planet) ⇄ tidelock ⇄ agy ⇄ Gemini 4 (moon)
~ $ tidelock start fix-auth --new-worktree --write --model gemini-4-neon --contract contract.md
worktree .claude/worktrees/fix-auth · branch tidelock/fix-auth
waiting gemini-4-neon asked q1 · Claude answers or defers
idle hand-off ready · Claude reviews the diff, runs checks, lands it
Capabilities

Built for one agent driving another

Claude Code stays in charge of the work. Gemini 4 does the coding in an isolated worktree, and tidelock keeps the two talking until the task is done.

01. Claude stays the orchestrator

Claude writes the contract, answers or defers the delegate's questions, reviews the diff, runs the repo's checks and lands the work. tidelock never commits or merges anything. A local daemon owns each turn, so the delegate keeps working after the command that started it exits.

Claude Code ⇄ tidelock daemon ⇄ agy acp · Gemini 4

02. Pick the Gemini 4 model per task

Neon is the default. Pass --model gemini-4-carbon or gemini-4-hydrogen, and --effort for the reasoning level. tidelock models lists what your agy sign-in offers.

03. Questions, steers and budgets

The delegate asks through an ask_orchestrator tool and the run waits for Claude. An unanswered question defers itself after 100 seconds. steer changes a running turn, and every turn gets a budget that ends in a read-only hand-off.

04. Worktrees in, JSON out

--new-worktree creates a fresh worktree and branch per run, in plain checkouts and bare-repo layouts alike, and archive removes them once they're clean and merged. Every command prints JSON with --json, and tidelock monitor is the live view for humans.

tidelock status --all --json
Architecture

How the harness stays in lock

01

Claude writes the contract

A Markdown contract names the goal, what to read first, a - May change: scope line, the checks to run and the hand-off Claude expects. tidelock guide contract prints a template.

02

agy works in its own worktree

tidelock start creates the worktree, runs an optional --setup command and hands the contract to agy over the Agent Client Protocol, with your agy sign-in.

03

Claude reviews and lands

tidelock wait wakes Claude on a question or a finished turn. Claude answers, steers or reads the hand-off with tidelock result, reviews the diff, runs the checks and commits.

Get Started

Build it from source

Runs on macOS and Linux. You need Bun 1.4.2, git, and agy signed in with a Google account.

git clone https://github.com/bearded-giant/tidelock.git
cd tidelock
bun install --frozen-lockfile
bun run build
mkdir -p ~/.local/bin
cp dist/tidelock ~/.local/bin/tidelock.tmp
mv -f ~/.local/bin/tidelock.tmp ~/.local/bin/tidelock
agy            # once, to sign in
tidelock doctor
First delegation
# Write a contract from the template
tidelock guide contract > contract.md

# Hand it to Gemini 4 Neon in a fresh worktree
tidelock start fix-auth --new-worktree --write --model gemini-4-neon --contract contract.md

# Block until it needs you, then follow the printed next: command
tidelock wait fix-auth
tidelock answer fix-auth q1 "keep the old token format readable"
tidelock result fix-auth
tidelock archive fix-auth