Skip to content

Instantly share code, notes, and snippets.

@enachb
Created January 15, 2026 00:35
Show Gist options
  • Select an option

  • Save enachb/23539f29cb47a4e05b26ca41ec8ae8cd to your computer and use it in GitHub Desktop.

Select an option

Save enachb/23539f29cb47a4e05b26ca41ec8ae8cd to your computer and use it in GitHub Desktop.
Migration Guide: Claude Code to Google Antigravity

Migrating from Claude Code to Google Antigravity

This guide outlines how to migrate the current Claude Code + Muxile workflow to Google Antigravity (VS Code-based AI IDE).

1. Directory Structure

Create the configuration directory in your project root:

mkdir -p .antigravity/{config,scripts,prompts}

2. Configuration

Antigravity uses .antigravity/config.yaml instead of .claude/settings.json. See the attached config.yaml for the migrated configuration.

3. Scripts & Hooks

Move existing Bash scripts from .claude/hooks/ to .antigravity/scripts/.

cp .claude/hooks/go-build-check.sh .antigravity/scripts/
cp .claude/hooks/discord-notify.sh .antigravity/scripts/
cp .claude/hooks/protect-git-clean.sh .antigravity/scripts/

Updates Required

  • Discord Notification: Ensure the JSON parsing in discord-notify.sh aligns with Antigravity's event payload.
  • Permissions: Ensure scripts have execute permissions (chmod +x .antigravity/scripts/*.sh).

4. Skills (Prompts)

Move markdown skill files to .antigravity/prompts/.

  • TDD: Save content of .claude/skills/tdd/SKILL.md to .antigravity/prompts/tdd.md.
  • Review: Save content of .claude/skills/review-session/SKILL.md to .antigravity/prompts/review.md.

Usage: Invoke via @tdd or @review in the chat interface.

5. Remote Access (Replacing Muxile)

Replace tmux + Muxile with Antigravity Remote Tunnels (VS Code Tunnels) for a full IDE experience on mobile.

  1. Open Command Palette (Cmd+Shift+P).
  2. Run "Antigravity: Turn on Remote Tunnel Access...".
  3. Authenticate with GitHub or Google.
  4. Access via mobile browser at vscode.dev/tunnel/<machine_name>.

Benefits

  • Full UI: Code editor, terminal, and agent chat on phone.
  • Persistence: Session runs on host machine.
  • Security: Authenticated access (no public ports/QR codes).
version: "1.0"
agent:
name: "SkyDaddy Cloud Agent"
# 1. Permissions (Mirrors .claude/settings.json)
permissions:
allow:
- "bash:*"
- "read_file:*"
- "write_file:*"
- "search:*"
deny:
- "bash:rm -rf /"
- "write_file:.env*"
- "read_file:**/secrets/**"
# 2. Lifecycle Hooks (Mirrors .claude/hooks/)
hooks:
# Protect against 'git clean' and dangerous commands
pre_tool_use:
- command: "./.antigravity/scripts/protect-git-clean.sh"
if: "tool.name == 'bash' && tool.input.command.contains('git clean')"
# Run build checks after file edits
post_tool_use:
- command: "./.antigravity/scripts/go-build-check.sh"
if: "tool.name in ['write_file', 'replace'] && tool.input.path.endsWith('.go')"
timeout: 120
# Discord Notifications
on_session_start:
- command: "./.antigravity/scripts/discord-notify.sh start"
on_session_stop:
- command: "./.antigravity/scripts/discord-notify.sh stop"
on_user_input_request:
- command: "./.antigravity/scripts/discord-notify.sh input_needed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment