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.
npx agentmods add skills/fmind/dot/agy-sdknpx skills add fmind/dot --skill agy-sdkgit clone --depth 1 https://github.com/fmind/dotWrote 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.
[](https://agentmods.dev/skills/fmind/dot/agy-sdk)<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>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.
| Model | Per session | Once 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 |
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.
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.
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)inLocalAgentConfig(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_depthcaps nesting andallowed_subagentspins the roster; both belong inCapabilitiesConfig. - Typed results:
response_schema=<pydantic model>plusawait response.structured_output()returns a validateddict, which is what makes a subagent's output safe to route programmatically. - Resume:
conversation_idwithsession_continuation_mode(CREATE_ONLY,CREATE_OR_RESUME,RESUME) andsave_dirpersists a long orchestration across processes.
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.
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.
- yesterday First seen · 74 lines · 43 tokens per session scan A bdf31a17219e
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.
Other skills, from other repositories
go-stack
Build Go projects, libraries, CLIs, TUIs, web apps, or ADK agents with the standard package layout and pinned tooling.
python-stack
Build typed Python projects with uv, Ruff, ty, pytest, Litestar, and Typer. Use for packages, CLIs, web apps, tests, typing, or API verification.
hugo
Canonical Hugo static-site stack with the Hextra docs theme — Hugo Modules, mise tasks, dprint, lefthook, and GitHub Pages deploy. Use for documentation sites, project docs, and static websites.
k8s-local
Create and manage local Kubernetes clusters (k3d or kind) and deploy to them with kubectl, helm, helmfile, and skaffold. Use for local k8s cluster setup, dev loops, and debugging.
release
Cut or verify a versioned release — bump semver, generate the changelog with git-cliff, tag and publish on GitHub, or reconcile an already-published tag and assets.
chezmoi
Manage chezmoi dotfiles: source naming, Go templates, age-encrypted secrets, and the edit-source then apply/diff workflow.