Modern engineering teams rarely run a single AI console: one developer runs a Google Antigravity (agy) swarm across sibling git worktrees, a teammate runs Claude Code subagents, and CI runs Codex CLI. Starting in v0.99.48, one ~4.8 MB MIT plugin (confighubai/confighub-mini-plugin) drops natively into all three consoles (hooks/hooks.json for Claude Code, hooks/codex-hooks.json for Codex, and root hooks.json via confighub mini hook --agy for Google Antigravity). Every worker shares one durable config journal across sibling git worktrees via --git-common-dir, blocks silent cross-console reverts before writing, and obeys one global kill-switch (cub agent halt).
You need: the MIT ConfigHub plugin (Zero Hub v0.99.48+) and git — zero server, zero Docker, zero account.
| By hand | Ask your agent | |
|---|---|---|
| Install once for Claude Code | claude plugin marketplace add confighubai/confighub-mini-plugin && claude plugin install confighub@confighub (step 1) | "Install the ConfigHub plugin in Claude Code." |
| Install once for Google Antigravity | Drop or symlink plugins/confighub into ~/.gemini/config/plugins/confighub (step 1) | "Install the ConfigHub native plugin into ~/.gemini/config/plugins/confighub so Antigravity loads hooks.json automatically." |
| Share memory across sibling worktrees | Worker A (Antigravity) edits .env in worktree 1; Worker B (Claude Code or Antigravity) tries to revert it in worktree 2 and is held with Worker A's exact reason (steps 2–3) | "Run a two-worktree swarm smoke test showing Worker B is blocked from silently undoing Worker A's .env edit." |
| Halt every worker across all consoles | cub agent halt (or touch ~/.confighub/halt) denies the very next tool call in Claude Code, Codex, and Antigravity (step 4) | "Verify cub agent halt immediately blocks the next tool call across all hooked consoles." |
Without ConfigHub: parallel swarm workers in sibling git worktrees — especially across different AI consoles — have zero visibility into why another worker set an uncommitted config value, silently resetting each other's fixes before merge.
git and the MIT ConfigHub plugin (v0.99.48+)cub server local up, Apple Silicon Mac) or Cloud Hub (hub.confighub.com) whenever the swarm needs 3-way config merges, previews, or multi-machine production approval gates.Install the single MIT plugin in your AI consoles:
Claude Code:
claude plugin marketplace add confighubai/confighub-mini-plugin
claude plugin install confighub@confighubGoogle Antigravity (agy): place plugins/confighub at ~/.gemini/config/plugins/confighub (Antigravity automatically discovers root plugin.json, hooks.json, and skills/):
mkdir -p ~/.gemini/config/plugins
ln -sfn /path/to/confighub-mini-plugin/plugins/confighub ~/.gemini/config/plugins/confighubplugins/confighub/plugin.json (com.openai.hooks -> ./hooks/codex-hooks.json) automatically.rm -rf ~/cross-console-swarm && mkdir -p ~/cross-console-swarm/main
cd ~/cross-console-swarm/main
git init -b main
git config user.name "Demo" && git config user.email "demo@example.com"
printf 'CACHE=false\nREPLICAS=1\n' > .env
git add .env && git commit -m "initial config"
git worktree add -b worker-b ../worker-bmain) raises REPLICAS=3; Worker B (Antigravity or Claude Code in worker-b) tries to silently reset it and is held:
export CUB_MINI_CHANGES_DIR=~/cross-console-swarm/.changes
PLUGIN_BIN="${HOME}/.gemini/config/plugins/confighub/bin/confighub"
[ -x "$PLUGIN_BIN" ] || PLUGIN_BIN="$(command -v confighub)"
# Worker A (Antigravity) records prompt + PreToolUse + write + PostToolUse in main worktree
printf '{"conversationId":"agy-worker-a","cwd":"%s","lastUserInput":"Scale REPLICAS=3 for Saturday flash sale","hookEventName":"PreInvocation"}\n' "$HOME/cross-console-swarm/main" | "$PLUGIN_BIN" mini hook --agy >/dev/null
printf '{"conversationId":"agy-worker-a","cwd":"%s","hookEventName":"PreToolUse","toolCall":{"id":"w1","name":"write_file","args":{"Path":"%s/.env","Content":"CACHE=false\\nREPLICAS=3\\n"}}}\n' "$HOME/cross-console-swarm/main" "$HOME/cross-console-swarm/main" | "$PLUGIN_BIN" mini hook --agy
printf 'CACHE=false\nREPLICAS=3\n' > ~/cross-console-swarm/main/.env
printf '{"conversationId":"agy-worker-a","cwd":"%s","hookEventName":"PostToolUse","toolCall":{"id":"w1","name":"write_file","args":{"Path":"%s/.env","Content":"CACHE=false\\nREPLICAS=3\\n"}}}\n' "$HOME/cross-console-swarm/main" "$HOME/cross-console-swarm/main" | "$PLUGIN_BIN" mini hook --agy >/dev/null
# Worker B in sibling worktree has synced .env and attempts a silent cleanup reset -> HELD with Worker A's reason!
printf 'CACHE=false\nREPLICAS=3\n' > ~/cross-console-swarm/worker-b/.env
printf '{"conversationId":"agy-worker-b","cwd":"%s","lastUserInput":"Clean up non-default flags","hookEventName":"PreInvocation"}\n' "$HOME/cross-console-swarm/worker-b" | "$PLUGIN_BIN" mini hook --agy >/dev/null
printf '{"conversationId":"agy-worker-b","cwd":"%s","hookEventName":"PreToolUse","toolCall":{"id":"w2","name":"edit_file","args":{"Path":"%s/.env","Target":"REPLICAS=3","Replacement":"REPLICAS=1"}}}\n' "$HOME/cross-console-swarm/worker-b" "$HOME/cross-console-swarm/worker-b" | "$PLUGIN_BIN" mini hook --agyThe final line prints {"decision":"deny","reason":"ConfigHub plugin: this edit changes REPLICAS in .env from 3 to 1. An earlier session set it to 3 when asked: \"Scale REPLICAS=3 for Saturday flash sale\"..."}.
cub agent halt):
export CUB_MINI_HALT_FILE=~/cross-console-swarm/halt
touch "$CUB_MINI_HALT_FILE"
printf '{"conversationId":"agy-worker-b","cwd":"%s","hookEventName":"PreToolUse","toolCall":{"id":"w3","name":"run_command","args":{"CommandLine":"echo still-running"}}}\n' "$HOME/cross-console-swarm/worker-b" | "$PLUGIN_BIN" mini hook --agy
rm -f "$CUB_MINI_HALT_FILE"The hook immediately returns {"decision":"deny","reason":"Stopped by the person: ~/.confighub/halt exists..."}.
cub agent changes:
cd ~/cross-console-swarm/worker-b
"$PLUGIN_BIN" mini changesDelete ~/cross-console-swarm. Nothing outside that directory was modified.
When participating in a single-machine or cross-console swarm with ConfigHub hooks installed:
@mentions, claims, heartbeats) on your swarm board or orchestrator — let ConfigHub hooks handle durable config memory transparently.cub server local up) or Cloud Hub (hub.confighub.com) once workers need 3-way merges, isolated previews, or hard human production approvals (cub inbox approve).Create a two-worktree git repo in ~/cross-console-swarm, record an Antigravity worker edit to .env via confighub mini hook --agy, verify a sibling worktree worker's silent revert is denied with the original reason, and verify CUB_MINI_HALT_FILE denies PreToolUse.
This proves: one MIT plugin (v0.99.48) drops natively into Claude Code, Codex CLI, and Google Antigravity, shares config reasons across sibling git worktrees via --git-common-dir, blocks silent cross-worker reverts, and halts all consoles with one command.