A meta-skill that turns a one-line domain description into a working multi-agent team for the Antigravity CLI.
1. Install the harness plugin
Choose the scope that fits your workflow:
- Global install β available in every Antigravity CLI session:
git clone https://github.com/Kyeong1024/antigravity-cli-harness agy plugin install antigravity-cli-harness
- Workspace install β scoped to a single project. Clone the plugin into
.agents/plugins/harness-pluginin the project root:git clone https://github.com/Kyeong1024/antigravity-cli-harness .agents/plugins/harness-plugin
Workspace definitions take precedence over global ones, so you can iterate on a project-specific harness without touching the global install.
2. Launch Antigravity CLI and request a harness
agy
> Build me a harness for {your-domain}.The harness skill auto-triggers and walks you through scaffolding the team β subagents, skills, orchestrator, and the AGENTS.md trigger entry.
Tell the harness "build me a harness for X" and it scaffolds, in one go:
- A plugin under
.agents/plugins/{domain}-plugin/ - A team of subagents (
agents/{name}/agent.json), each with a defined role, tool set, and system prompt - A set of skills (
skills/{name}/SKILL.md) those agents use to do their work - An orchestrator skill that wires the team into a workflow with explicit data-passing and error-handling rules
- A pointer entry in
AGENTS.mdso future sessions auto-trigger the harness
The result is a reusable, evolvable team architecture β not a one-shot script.
Single-agent prompts hit a ceiling once a task crosses multiple specializations (e.g. analysis β build β QA). A harness solves this by:
- Splitting expertise into focused subagents, each with its own context window.
- Standardizing collaboration through a file-based workspace (
_workspace/) and an orchestrator. - Surviving across sessions β definitions live on disk, so the team is reproducible and improvable over time.
.agents/
βββ plugins/
βββ {domain}-plugin/
βββ plugin.json
βββ agents/
β βββ {agent-name}/
β βββ agent.json # subagent definition
βββ skills/
βββ {orchestrator}/
β βββ SKILL.md # workflow that wires the team
βββ {skill-name}/
βββ SKILL.md # how a single capability works
βββ rules/ # progressively-loaded references
AGENTS.md # trigger pointer + change log
The harness picks one of six team patterns based on the domain:
| Pattern | When to use |
|---|---|
| Pipeline | Sequential, dependent steps |
| Fan-out / Fan-in | Independent work done in parallel |
| Expert Pool | Conditional routing to specialists |
| ProducerβReviewer | Generate then QA in a loop |
| Supervisor | Central agent manages state and dispatch |
| Hierarchical Delegation | Recursive sub-delegation |
| Mode | When |
|---|---|
| Subagent (default) | β₯2 specializations collaborating; each runs in an isolated context via invoke_subagent |
| Parallel subagent | Independent work to run concurrently |
| Direct execution | Simple, one-shot tasks where agent separation is overhead |
The meta-skill runs through seven phases:
- Audit β detect existing plugins, decide new build vs. extension vs. maintenance.
- Domain analysis β identify task types, codebase, user skill level.
- Team architecture β choose execution mode + pattern, split work into specializations.
- Subagent definitions β write each
agent.jsonwith role, tools, and I/O protocol. - Skill creation β write
SKILL.mdfiles with pushy, trigger-friendly descriptions and progressive disclosure intorules/. - Orchestration β wire the team with file-based data passing, error handling, and follow-up support.
- Validation β structure checks, trigger checks (should-trigger + near-miss), dry-run.
- Evolution β collect feedback after each run; update agents/skills and log changes in
AGENTS.md.
Drop the .agents/plugins/harness-plugin/ directory into any Antigravity CLI project. The harness skill auto-triggers on requests like:
- "build a harness for {domain}"
- "set up a harness", "design a harness"
- "audit / sync the harness", "harness status"
In an Antigravity CLI session:
> Build a harness for a content marketing pipeline.
The skill will:
- Audit any existing
.agents/plugins/andAGENTS.md. - Propose a team (e.g. researcher β writer β editor β QA) and confirm with you.
- Generate the plugin, write
agent.json/SKILL.mdfiles, and register the trigger inAGENTS.md. - Run validation and report.
Follow-up turns ("redo the analyst step", "add a security reviewer", "harness audit") are handled by the same skill in extension / maintenance mode.
The skill ships with internal guides under .agents/plugins/harness-plugin/skills/harness/rules/:
agent-design-patterns.mdβ pattern catalog, separation criteriateam-examples.mdβ full example team definitionsorchestrator-template.mdβ orchestrator skeleton with error handlingskill-writing-guide.mdβSKILL.mdauthoring patternsskill-testing-guide.mdβ trigger and execution testing methodologyqa-agent-guide.mdβ designing QA subagents
Ported from revfactory/harness, with rework for Antigravity CLI's plugin and subagent model.
