AGY Harness: What the Antigravity Harness Project Does
AGY harness can mean the harness concept behind Google Antigravity or a specific open-source project for the agy CLI. This guide explains both senses, then details the GitHub project's three routing modes, isolated subagents, install steps, and license, with every claim tied to the project's own README.
View 2 referencesAllow the functional cookie to save your likes. Privacy details
What is AGY harness?
AGY harness refers to two related things: the "agent harness" concept behind Google's Antigravity platform, and a specific open-source project named agy-harness that adds engineering gates to the agy CLI, Claude Code, and Codex. Knowing which one is meant avoids confusion when reading documentation or evaluating the project.
In Google's framing, a harness is to an LLM what an operating system is to a CPU: the layer that manages context, tools, and task flow around the model. The agy command is Antigravity's Go-based CLI.
Source: AGY Harness GitHub repository, fetched 2026-12-02.
What does the agy-harness project add?
The project describes itself as a "budget-governed generate-and-falsify engineering harness." It bundles 25 upstream agent lifecycle skills plus a clean-room bootstrap command, aiming to reduce both late-stage rework and token-heavy ceremony. It is best understood as a workflow layer rather than a model or a replacement for the CLI itself.
It maintains its own versioning, currently v0.4.0, deliberately decoupled from the upstream agent-skills 0.6.x line. The license is MIT. This is a community project, not an official Google product.
How do the three routing modes work?
The harness routes a task to one of three modes, each with a different level of checking. The idea is to spend checking effort only where risk is real, so a trivial edit is not slowed by the same gates as a schema change.
| Mode | Trigger | What happens |
|---|---|---|
| Trivial | Literal, style, copy, or 1:1 field changes | Direct edit in warm cache, skips full gates |
| Bug Fix | Non-literal bugs such as async or race defects | Read-only root-cause diagnosis, adversarial review, user confirmation, minimal fix plus regression test |
| Contract | Schema, API, design, or security changes | Draft SPEC and PLAN artifacts, adversarial review, one-click Proceed, full gate chain |
Git history in the repository is co-authored by Claude, which is consistent with an agent-built project.
Which subagents does it use?
Three isolated subagents divide the work, each with empty MCP and skills lists to keep context small. Separating author from reviewer is the central design choice, since a single context grading its own work tends to be permissive. Each role is deliberately narrow to keep context small and review independent.
- arch-redteam. A read-only adversarial auditor that reviews Bug Fix proposals and spec documents before confirmation.
- slice-builder. A sandboxed builder for heavy or parallel slices, with a 45-second handle cleanup and a 75-second watchdog.
- staff-gatekeeper. A read-only reviewer covering contract compliance, simplicity pruning, fake-test detection, and security and performance audit.
How do you install and initialize it?
Install the plugin through agy, disable the duplicate upstream skill catalog, then initialize a target repository. The bootstrap writes a compact rules file and hook scripts into the target repository rather than copying thousands of lines of guard code. Use the standalone mode if you prefer hooks kept inside the repository.
agy plugin install https://github.com/JsonLee12138/agy-harness.git
agy plugin disable agent-skills
bash ~/.gemini/config/plugins/agy-harness/scripts/init-harness.sh /path/to/your-project
The project also documents Claude Code, Codex, and npx skills installation paths. A validation script chain checks versions, skills, reference links, artifact paths, commands, and evals before release.
Where does AGY harness fall short?
This is a fast-moving community project, so specifics can drift between releases. The README itself warns that flags in community skill pages may be stale and advises re-checking agy --help. Pin the version you adopt and review the scripts before trusting them on a production codebase.
- It is not maintained by Google, despite targeting Antigravity.
- The setup assumes comfort with terminal tooling and plugin management.
- Claims about token savings come from the project, not independent measurement.
How does gate deduplication and Stop isolation work?
The harness runs checks through a script named gate-check.sh, which detects package managers and test runners such as npm, cargo, go, ruff or pytest, and dart or flutter. On a full pass it caches a SHA-256 fingerprint of the Git working tree, so an unchanged tree does not repeat expensive checks.
Stop isolation adds a per-conversation guard. The Stop hook inspects only the mutations made in the current conversation, so a read-only question session is not blocked by unrelated dirty files left by another session.
What does the validation chain check?
Before release, the project runs a sequence of validation scripts: versions, skills, reference links, artifact paths, and commands, followed by Node tests, evals, a plugin validation, and two gate-check runs including a forced pass. Run that chain yourself after any upgrade, since a passing build here is the main evidence the project offers.
That chain is a useful signal of engineering discipline, though it is self-defined. There is no external benchmark comparing the harness against plain agent usage on cost or defect rates, so treat the token-saving claims as the author's intent rather than measured results.
Frequently asked questions
The questions below clarify how this project relates to Google's platform, whether it runs elsewhere, and what it costs. Answers come from the repository README and are stated carefully, since the project is community-maintained and its details can change between releases.
Is AGY harness the same as Google Antigravity?
No. Antigravity is Google's agent platform; agy-harness is a third-party workflow layered on its CLI and on other coding agents.
Does it work without Antigravity?
Yes. The README lists Claude Code and Codex as supported targets, with different install commands.
Is it free?
The repository is MIT licensed. Costs come from whatever models and API usage your runs consume.
Does agy-harness change how the model itself behaves?
No. It changes the workflow around the model: which checks run, when a human confirms a change, and how subagents are isolated. The underlying language model and its behavior are unaffected; the harness adds structure and gates to the development loop.
Can I use only parts of the harness?
The project is a plugin with a bootstrap command and scripts, so it is designed to be installed as a unit. The README documents a standalone offline mode that keeps hooks inside a local .agents directory, which may suit teams that do not want a global plugin configuration.