Skip to content
Back to skills

Migrate T3

CSecurity

Migrate a setup from Claude Desktop and Claude Code to T3 Code (Antigravity Gemini 4 Neon, T3 config, MCPs, skills, pstack plugin, browse, cua-driver) and return a manual checklist for OAuth, permissions, and UI steps. Use when the user asks to run migrate-t3 or onboard to T3 Code.

  • 1,166 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 27, 2026
ai-agentsgobashnodegitapisecurity

Works with

  • claude code
  • claude desktop
  • cli
  • api
  • mcp

Security analysis

C64/100
  • criticalPipes output to a shell interpreter
  • mediumUses curl or wget to download content
  • highPerforms destructive filesystem operations
  • criticalDownloads and executes remote scripts — classic supply chain attack

Pro scans all 4 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add udecode/ustack --skill migrate-t3 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Migrate T3?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Migrate T3
[![Security: C — Skills Directory](https://www.skillsdirectory.com/api/skills/udecode-migrate-t3/badge)](https://www.skillsdirectory.com/skills/udecode-migrate-t3)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: migrate-t3
description: "Migrate a setup from Claude Desktop and Claude Code to T3 Code (Antigravity Gemini 4 Neon, T3 config, MCPs, skills, pstack plugin, browse, cua-driver) and return a manual checklist for OAuth, permissions, and UI steps. Use when the user asks to run migrate-t3 or onboard to T3 Code."
---

# Migrate to T3 Code

Run this end-to-end when invoked inside a T3 Code Antigravity (`gemini-4-neon`) thread (or Claude Code). Do every automatable step without stopping, then finish with the manual checklist below so the user handles only OAuth, permissions, extension pairing, and UI clicks.

Let `<skill-dir>` be the directory holding this `SKILL.md`.

## Execute automatically

1. **Apply local config, T3 settings, and profile symlinks** from the current project checkout (or home directory outside a repo):
   ```sh
   node <skill-dir>/scripts/migrate.mjs --apply
   ```
   This idempotently:
   - Merges curated defaults from `<skill-dir>/assets/t3-defaults.json` into `~/.t3/userdata/settings.json` (Neon lead, Opus fallback, Hydrogen titles, favorites, hidden legacy models, worktree cleanup, semantic branches, device support) and `~/.t3/userdata/client-settings.json` (workflow defaults only), preserving local project UUIDs, microphones, browser profiles, fonts, existing `mcpServers`, and existing `providerInstances` `displayName` and `environment` entries.
   - Ensures every `driver: "antigravity"` instance in `providerInstances` sets `AGY_CLI_FORCE_FILE_TOKEN_STORAGE=1`, preserving existing env entries and flagging instances that set `AGY_ACP_FORCE_FILE_STORAGE` without `AGY_CLI_FORCE_FILE_TOKEN_STORAGE`.
   - Audits global `mcpServers` from Claude Desktop (`claude_desktop_config.json`), global Claude Code (`~/.claude.json`, never per-project `projects[cwd].mcpServers`), `~/.gemini/config/mcp_config.json`, and repo `.mcp.json` (skipping `@playwright/mcp` and `playwright`; T3 uses `preview_*`, `browse`, and Playwright CLI). It never writes `mcpServers` directly into `~/.t3/userdata/settings.json`; instead it prints secret-free `todo:` lines (and `--json` `mcpPlan`) for `t3_mcp_server_update`, flags any malformed flat `mcpServers` entries missing `transport`, and removes duplicate servers from `~/.gemini/config/mcp_config.json` once they are validly configured in T3.
   - Adds `~/.agents/skills` (and `~/.claude/skills` when present) to `~/.gemini/config/skills.json`.
   - Copies `~/.claude/CLAUDE.md` to `~/.gemini/AGENTS.md` when missing or empty.
   - Writes `~/.gemini/config/pstack-models.md` (`gemini-4-neon @high`, `inherit` subagents, Neon `@high` UI lead/judge + `opus @high` UI builder, `gemini-4-hydrogen @low`/`@medium` mechanical/routine lanes, 3-family panels with no Opus fallback for Sol) when missing.
   - Symlinks every `~/.t3/userdata/providers/antigravity/*/` profile to `~/.gemini/AGENTS.md` and `~/.gemini/config/{mcp_config.json,skills.json,pstack-models.md,plugins}` (plus `antigravity-acp/mcp_oauth_tokens.json` when present).
   - Strips `~/.gemini/config/plugins/pstack/agents/` (custom agent files like `comment-sicko.md` and `poteto-agent.md`) so Antigravity 1.5.17+ sessions never trigger the 4x custom-agent quota multiplier.
2. **Register global and project MCPs in T3 Code via `t3_mcp_server_update`** (run when inside a T3 Code thread; outside T3 Code, carry pending items into the manual checklist):
   - Call `t3_mcp_servers_read` (via `tool_search` + `tool_call`), inspect `node <skill-dir>/scripts/migrate.mjs --json --no-bin-check` (`mcpPlan`), and register every missing global MCP (stdio, header-auth HTTP, browser-OAuth HTTP, or custom-client OAuth HTTP) plus `browse` (`command: "~/.local/bin/browse"`, `args: ["mcp"]` when installed) via `t3_mcp_server_update`.
   - For project-only MCPs from `<repo>/.mcp.json`, call `t3_mcp_server_update` with `projectId` (from `t3_project_list`).
   - Pass secrets with `{ secretRef, prefix? }` from `request_secret` or `${ENV_VAR}` (never copy raw tokens into `settings.json`), and pass `oauth: { clientId, clientSecret? }` for remote servers requiring a pre-registered OAuth client (such as Google).
   - Re-run `node <skill-dir>/scripts/migrate.mjs --apply` afterward so promoted duplicates are removed from `~/.gemini/config/mcp_config.json`.
3. **Install or update the `pstack` Antigravity plugin** if step 1 reported a missing or stale `pstack` pin. Read the pinned tag from `.claude/settings.json` or `.agents/pstack.json` (default `main`), install globally (falling back to a direct copy when standalone `agy` CLI is not on `PATH`), strip its `agents/` folder, and re-run `--apply` so the T3 profile links `config/plugins`:
   ```sh
   git clone --depth 1 --branch <tag> https://github.com/michael-denyer/pstack-claude /tmp/pstack-claude
   if command -v agy >/dev/null 2>&1; then
     agy plugin install /tmp/pstack-claude/plugins/pstack
   else
     mkdir -p ~/.gemini/config/plugins
     rm -rf ~/.gemini/config/plugins/pstack
     cp -R /tmp/pstack-claude/plugins/pstack ~/.gemini/config/plugins/pstack
   fi
   rm -rf /tmp/pstack-claude ~/.gemini/config/plugins/pstack/agents
   node <skill-dir>/scripts/migrate.mjs --apply
   ```
   Never symlink `.agents/plugins/pstack` inside a repo; `agy` ignores symlinked project plugins.
4. **Install shared global `ustack` skills** if missing (`start`, `cleanup`, `skill-audit`):
   ```sh
   npx --yes skills add udecode/ustack --skill start cleanup skill-audit --agent antigravity claude-code --global -y
   ```
5. **Install required companion CLIs** if step 1 reported either missing:
   - OpenCode `browse` (required for signed-in Chrome and native clipboard; then register `browse mcp` in T3 via `t3_mcp_server_update`):
     ```sh
     curl -fsSL https://opencode.ai/browse/install | bash
     ```
   - `cua-driver` on macOS (required for native macOS app control):
     ```sh
     curl -fsSL https://cua.ai/driver/install.sh | bash
     ```
6. **Verify**:
   - Run `node <skill-dir>/scripts/migrate.mjs --check` and resolve any remaining automatable `todo:` items (if a profile has a non-empty local file conflicting with a symlink, tell the user instead of overwriting it).
   - If the repo has `node tooling/scripts/setup-doctor.mjs` or `node scripts/check-agent-contracts.mjs`, run it and apply any automatable `fix:` lines until it passes (carry any human-only `fix:` lines, such as `mac-watchdog` `sudo` install, into the final checklist).

## Global and project MCPs

T3 Code manages all MCP server types natively: stdio (`command` + `args`, `env`), header-auth HTTP (`url` + `headers`), browser-OAuth HTTP (`url`), and pre-registered OAuth HTTP (`url` + `oauth`), both globally and per-project (`projectId`). It injects them into every Antigravity account, Claude, and Codex session automatically while keeping secrets in T3's secret store.

- **Always configure MCPs via `t3_mcp_server_update`, never by editing `~/.t3/userdata/settings.json` directly.** T3 persists `{ enabled, transport: { type, ... } }` and redacts secrets into `~/.t3/userdata/secrets/`.
- **Global MCPs** (such as `browse` via `browse mcp`, or `slack`): omit `projectId` on `t3_mcp_server_update`.
- **Project-only MCPs** (such as `linear`, `planetscale`, `sentry`, or `cloudflare`): pass `projectId` on `t3_mcp_server_update` so their schemas load only in that project and do not bloat every other project's prompt prefix. Passing `{ enabled }` alone with `projectId` toggles an environment-level server for that project.
- **Avoid duplicates:** Once a server is configured in T3 Code, remove it from `~/.gemini/config/mcp_config.json` (which `migrate.mjs --apply` does automatically) so Antigravity does not register the server twice. Only keep standalone `agy`-CLI-only servers in `~/.gemini/config/mcp_config.json` if you run `agy` outside T3 Code.

## Reply with the manual checklist

End your reply with a brief list of what changed plus this exact checklist (omit only items `migrate.mjs --check` already verified complete, and fill in the real `<skill-dir>` path):

```markdown
### Manual checklist

- [ ] **Quit and reopen T3 Code, then start a fresh Antigravity thread** so `pstack`, skills, `AGENTS.md`, and T3 settings load. If T3 overwrote `settings.json` on quit, close T3 and run `node <skill-dir>/scripts/migrate.mjs --apply --t3-only`, then reopen T3.
- [ ] **Ensure `AGY_CLI_FORCE_FILE_TOKEN_STORAGE=1` is set on every Antigravity provider instance before signing in, then sign in once per account:** Antigravity ignores T3's `AGY_ACP_FORCE_FILE_STORAGE`, so multiple accounts share one macOS Keychain slot and clobber each other without `AGY_CLI_FORCE_FILE_TOKEN_STORAGE=1`. After restarting T3 Code with that env var set on every Antigravity account, sign in once per account so each writes its own `antigravity-oauth-token` file.
- [ ] **Sign in to Claude (`opus`) and Codex in T3 Code** so fallback, UI/visual delegation, and multi-family panels work.
- [ ] **Pair the OpenCode `browse` Chrome extension** (for signed-in Chrome and native clipboard): install from https://chromewebstore.google.com/detail/mfnicocicmmlkpjnaffgihfjhdgjkdjg, run `browse pair`, and paste the pairing code in the extension until `browse status` shows `Extension: connected`.
- [ ] **Grant `cua-driver` macOS permissions** (for native macOS apps): run `cua-driver permissions grant` and approve Accessibility and Screen Recording for `CuaDriver.app` until `cua-driver permissions status` reports both `true`.
- [ ] **Import signed-in Chrome profile into T3 Browser (macOS):** System Settings -> Privacy & Security -> Full Disk Access -> enable T3 Code -> quit Chrome (`Cmd+Q`) -> T3 Settings (`Cmd+,`) -> Browser -> Browser profiles -> `+ Add profile` -> Import from Chrome -> allow Keychain (disable Full Disk Access afterward if preferred).
- [ ] **Complete browser OAuth for remote T3 MCPs:** approve OAuth prompts in T3 Code for remote servers (such as Slack, Linear, Sentry, or Cloudflare); T3 shares them across Antigravity, Claude, and Codex automatically. (If you ran `migrate-t3` outside T3 Code, add any pending MCPs in T3 Settings -> MCP or re-run `migrate-t3` inside a T3 thread.)
- [ ] **Add issue tracker API keys** (such as Linear) in T3 Settings -> Source control & issues.
- [ ] **Verify in the fresh thread:** run `node .agents/pstack/lead.mjs` (in a pstack repo) and confirm `gemini-4-neon @high`.
```

## Known T3 and agy limits

- **Multi-account token storage:** Antigravity ignores T3's `AGY_ACP_FORCE_FILE_STORAGE` env var, so multiple Antigravity accounts share one macOS Keychain slot and clobber each other unless every `driver: "antigravity"` instance sets `AGY_CLI_FORCE_FILE_TOKEN_STORAGE=1` before signing in. After adding it, sign in once per account so each writes its own `antigravity-oauth-token` file.
- **Profile isolation:** Adding another Antigravity account creates a new hash folder; re-run `migrate.mjs --apply` so the new instance gets `AGY_CLI_FORCE_FILE_TOKEN_STORAGE=1` and profile symlinks.
- **Size caps:** `agy` truncates rule files past 24,000 bytes and drops skills past ~16,000 description chars.
- **Deferred T3 MCP tools:** T3 tools omitted from direct declarations (`t3_mcp_server_update`, `preview_*`, `t3_thread_*`, `watch_pull_request`, etc.) run via `tool_search` + `tool_call`, falling back to `acp-mcp-call` only when T3 MCP tools are absent.
- **Preview clipboard:** `preview_act` `Meta+c/v/a` does not drive native `<textarea>` clipboard; use `browse`.
- **Restart resume bug:** Resuming an old Antigravity thread after a T3 server restart can raise a false model-unavailable error; start a new thread or switch provider and back.

Files in this skill

  • SKILL.md6.6 KB
  • assets/t3-defaults.json2.5 KB
  • scripts/migrate.mjs21.4 KB
  • scripts/migrate.test.mjs8.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.