agy-sdk

agy-sdk is a skill for Claude Code, Codex from fmind/dot. It costs 43 tokens per session (1,721 once invoked), scanned A, original, MIT.

A Python software development kit for running and coordinating Google Antigravity agents, including subagents, policies, token budgets, hooks, and connections to external tools. It is intended for applications that build their own agent workflows.

In plain words
What is it for?
Use it to build Python applications that run Antigravity agents, delegate work to subagents, control budgets and policies, and connect agents to tools.
Why use it?
It provides the agent loop and tool execution so developers do not have to implement that orchestration themselves.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fmind/dot/agy-sdk
Any agent
npx skills add fmind/dot --skill agy-sdk
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agy-sdk

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/agy-sdk.svg)](https://agentmods.dev/skills/fmind/dot/agy-sdk)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/agy-sdk"><img src="https://agentmods.dev/badge/skills/fmind/dot/agy-sdk.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,721 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01721
Opus 5 $0.00022 $0.00860
Sonnet 5 $0.00009 $0.00344
Haiku 4.5 $0.00004 $0.00172

Measured yesterday against content hash bdf31a17219e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

agy-sdk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (references/orchestrator.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agy-sdk/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Antigravity SDK

google-antigravity embeds the Antigravity harness as a Python library: it owns the agent loop, tool execution, and subagent delegation, so orchestration is expressed as configuration rather than a hand-rolled loop. The interactive CLI (agy) is a separate product on separate credentials — see §1. Project conventions come from python-stack; google-adk stays the default agent framework, and this SDK is the choice when the harness itself (sandboxed tools, policies, budgets) is the value.

1. Install and Authenticate

uv add google-antigravity                              # ships a ~126 MB harness binary; a git clone alone will not run
export GEMINI_API_KEY="<aistudio-key>"                 # Gemini Developer API, pay-as-you-go with a free tier
gcloud auth application-default login                  # Vertex path instead: LocalAgentConfig(vertex=True, project=..., location=...)

Billing is the Gemini API, never the Antigravity subscription. The SDK reads only GEMINI_API_KEY (or GOOGLE_CLOUD_PROJECT / GOOGLE_CLOUD_LOCATION with Vertex ADC); it never touches the OAuth login the agy CLI and IDE write to ~/.gemini, so a Google AI Pro/Ultra plan grants it nothing. Without a key it fails closed at connect time with AntigravityValidationError: A Gemini API key is required. Keep the key in the environment or a secret manager per sops-secrets; never inline it in LocalAgentConfig(api_key=...) in committed code.

2. Orchestrate

references/orchestrator.py is a runnable parent-plus-two-subagent fan-out; the pieces that matter:

  • Static subagents: types.SubagentConfig(name, description, system_instructions, tools) in LocalAgentConfig(subagents=[...]) gives each worker its own context window and instructions. Prefer these — a named role is reviewable, whereas dynamic self-cloning is not.
  • Dynamic subagents: types.CapabilitiesConfig(enable_subagents=True) alone lets the parent clone itself on demand, inheriting its toolset. Use it only for open-ended decomposition.
  • Register tools twice: any callable a subagent uses must appear in the parent's tools=[...] as well, or the subagent starts without it.
  • Bound the fan-out: max_subagent_depth caps nesting and allowed_subagents pins the roster; both belong in CapabilitiesConfig.
  • Typed results: response_schema=<pydantic model> plus await response.structured_output() returns a validated dict, which is what makes a subagent's output safe to route programmatically.
  • Resume: conversation_id with session_continuation_mode (CREATE_ONLY, CREATE_OR_RESUME, RESUME) and save_dir persists a long orchestration across processes.

Read the full file on GitHub · 74 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 74 lines · 43 tokens per session scan A bdf31a17219e

Subscribe to this mod's changes

agy-sdk is a skill published in the GitHub repository fmind/dot (4 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 1,721 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.