Repository navigation
feat: launch Antigravity workers as native T3 threads - #42
Merged
Merged
Conversation
The t3code backend now accepts the agy harness and launches it as a top-level T3 thread on the provider instance whose driver is antigravity (default instance id antigravity). Like Pi, Antigravity reads no per-directory config, so the task environment rides the thread launch's per-thread environment. --effort maps to the driver's thinking_level option, and an agy CLI id such as gemini-4-neon-high resolves to the catalog model gemini-4-neon with thinking_level high. On T3 the agy CLI's model listing, workspace-trust pre-registration, and pane readiness gate are skipped; interrupt, exit, the relaunch refusal, liveness, and teardown follow the shared T3 paths. agy second mates stay refused, as for Pi. Docs, the harness reference, the verification record, and portable tests are updated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Teach firstmate's launcher to start Antigravity workers as normal T3 threads, the same as Claude and Codex, so Neon workers (and a Neon firstmate's own workers) start the normal way. Context: the T3 Code app now has a working Antigravity provider (instance id "antigravity", driver "antigravity", models such as gemini-4-neon, gemini-4-carbon, gemini-4-argon, gemini-4-hydrogen, gemini-3.8-flash, with option thinking_level low|medium|high|xhigh). Today
fm-spawn --harness agyon the t3code backend refuses with "backend=t3code runs only the claude, codex, and pi harnesses, not 'agy'", so a Gemini 4 Neon bake-off worker had to be started as a T3 subagent of the firstmate thread instead of its own top-level thread. The captain approved this firstmate change and its PR to daveonthegit/firstmate.What Changed
agyship and scout workers as top-level T3 Antigravity threads, carrying task environment at launch and skipping CLI model, trust, and pane-readiness steps.thinking_leveloptions against T3’s catalog, including CLI-style model suffixes and conflicting-effort refusals.Risk Assessment
Testing
Five focused fake-server tests passed for selection, launch environment, refusal guards, and controls. The real isolated CLI attempt stopped at missing captain-issued authentication; its diagnostic transcript is retained. No actual T3 worker was launched, no UI was exercised, and disposable fixtures were removed.
Evidence: T3 live-validation credential blocker
Source: T3 live-validation credential blocker
Real Antigravity selection command refused with no_credential (exit 4); captain sign-in required.Validation notes
tests/fm-backend-t3code.test.shandtests/fm-t3-mcp.test.sh, all passing locally) plus a read-only check of the live T3 Antigravity catalog recorded indocs/verification/runtime-backends.md. A real Antigravity worker will be spawned on the T3 backend after merge to verify it live.tests/fm-agy-harness.test.shcase "a zero model bound disabled the deadline" fails locally (26-27s against its 25s ceiling) identically on the base scripts without this change; it exercises the pane-backed agy model listing, which this PR does not alter.gemini-4-neon-high->gemini-4-neon+thinking_level=high) flagged in review is deliberate scope, because Firstmate's agy profiles use agy CLI ids.main); its failed jobs were re-run.Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
bin/fm-t3-mcp.mjs:1069- Simplification: CLI-style model-suffix aliases exceed the requested T3 worker support. Exact catalog models plus --effort already satisfy the stated intent; remove the suffix parser and conflict branch unless compatibility with CLI-style profiles is explicitly desired. Related sites: bin/fm-t3-mcp.mjs:356 enables the alias, :1028 parses it, :1073 adds conflict semantics; docs/t3code-backend.md:77 documents it; tests/fm-backend-t3code.test.sh:442–451 and :2371 exercise it. Retain the ordinary Antigravity model/effort and launch-environment coverage.docs/t3code-backend.md:41- Focused mocked checks pass, but real Antigravity launch and control remain unproven. The isolated real client returned no_credential. Captain must authorize and provision a full-access T3 credential for a disposable validation environment with Antigravity and per-thread launch environment enabled; agent sign-in and operator-state access are forbidden.TMPDIR="$PWD/.test-tmp" FM_TEST_SKIP_ORPHAN_REAP=1 FM_TEST_ONLY=test_agy_selection_maps_cli_ids_to_thinking_level bash tests/fm-backend-t3code.test.shSame targeted runner:test_spawn_agy_worker_launches_with_environmentSame targeted runner:test_spawn_agy_refuses_without_launch_environmentSame targeted runner:test_spawn_agy_secondmate_refusedSame targeted runner:test_control_agy_thread_interrupt_exit_and_relaunchFM_T3CODE_TOKEN_FILE=<disposable-worktree-path> node bin/fm-t3-mcp.mjs resolve-selection --harness agy --instance antigravity --model gemini-4-neon --effort high(exit 4, no_credential)Removed disposable test directories; confirmed clean working tree.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
🤖 Generated with Claude Code