agy-headless
БесплатноЗапускает вложенные скриптыНе проверенDrive Antigravity CLI (agy) from Claude Code — headless prompts with JSON results, or a tmux-hosted TUI. Use when delegating a task to agy or reading an open…
от laurigates★ 61 звезда на GitHubОб этом скилле
agy-headless
Run Google Antigravity CLI (agy) as a delegate from a Claude Code session and
read its result as data. Every call goes through
${CLAUDE_SKILL_DIR}/scripts/agy.sh, which pins the output format, maps agy's
JSON to KEY=VALUE lines, refuses to write into a conversation another agy
process has open, and can host an interactive agy in tmux for live use.
When to Use This Skill
| Use this skill when... | Use instead when... |
|---|---|
| Handing a bounded task to agy and reading back its answer | Asking several models for a design opinion: agent-patterns-plugin:multi-model-delegation |
| Checking which agy conversation is live and what it last ran | Running this marketplace's skills inside agy: the Antigravity export doc in this repo |
Execution
Step 1: Check the environment
bash "${CLAUDE_SKILL_DIR}/scripts/agy.sh" status
AGY_VERSION= empty or STATUS=ERROR means agy or jq is not on PATH; stop and
report. Each LIVE=<id> pid=<pid> cmd=<cmd> line is a conversation an
interactive agy holds open.
Step 2: Run one headless turn
bash "${CLAUDE_SKILL_DIR}/scripts/agy.sh" run --dir <workdir> --timeout 600s -- "<prompt>"
Options: --model <id> (ids from agy models), --resume <conversation-id>,
--schema '<json-schema>' for structured output, --out <file> to keep the
raw JSON, --yolo for --dangerously-skip-permissions.
Read the result:
| Line | Meaning |
|---|---|
STATUS=SUCCESS, exit 0 |
The text after --- is agy's answer |
STATUS=ERROR, exit 1 |
REASON= holds agy's first error line; RAW= the full JSON |
STATUS=REFUSED, exit 2 |
The wrapper declined (live conversation, bad usage); nothing ran |
Keep CONVERSATION_ID= to continue the same thread with --resume.
Step 3: Look at an open session without touching it
bash "${CLAUDE_SKILL_DIR}/scripts/agy.sh" peek <conversation-id> 10
Prints the last N tool calls (CommandLine, toolSummary) the conversation
made, read from its SQLite store with sqlite3 -readonly. The store holds
protobuf blobs and has no published schema, so treat this as a best-effort view
of agy 1.5.x, not an API.
Step 4: Talk to an interactive agy through tmux
When the user wants to watch the conversation live, run agy in tmux and type into it:
bash "${CLAUDE_SKILL_DIR}/scripts/agy.sh" tmux-start <session> --dir <workdir> -- --model <id>
bash "${CLAUDE_SKILL_DIR}/scripts/agy.sh" tmux-send <session> --timeout 600 -- "<one-line prompt>"
bash "${CLAUDE_SKILL_DIR}/scripts/agy.sh" tmux-read <session> 40
The user can watch with tmux attach -t <session>. tmux-send types only
when the TUI's footer reads ? for shortcuts (idle), checks that the text
appeared on screen before pressing Enter, waits for the footer to return to
idle, and prints the lines between the echoed prompt and the input box. It
refuses (exit 2, nothing typed) on a busy turn (esc to cancel), a trust
prompt, a banner, or any screen it does not recognise. tmux-start stops at
a folder-trust prompt and leaves answering it to the user.
Constraints
- Never resume a conversation another agy has open. agy accepts
agy -p --conversation <id>while a TUI holds that conversation, but the TUI does not reload it: its next turn is written over the same step rows, and the headless turn is lost (agy 1.5.20, verified on a scratch conversation). Neither SIGWINCH nor a resize reloads it; they only repaint. SIGHUP exits agy. The wrapper refuses such a resume. To reach an open conversation, use the tmux route if it runs in tmux, or have the user close that agy first. - Validate every identifier before using it. An empty PID or conversation
id silently widens a lookup:
lsof -p ""lists every process. The wrapper refuses empty or non-UUID ids. - Never use
-c/--continueheadless. It picks the most recent conversation, which is usually the one the user has open. - Tool approval follows the user's agy settings. With
"toolPermission": "proceed-in-sandbox", unlisted shell commands run in the terminal sandbox without a prompt even in print mode. Headless runs start in Auto mode where available. Point--dirat a scratch or worktree directory when the task should not touch the current checkout. - Resumed turns are slow. A fresh turn took 2–7 s; resuming the same short
conversation took 64–89 s on 1.5.20. Set
--timeoutaccordingly.
Running in a cloud container
Possible with token auth, untested here:
GEMINI_API_KEYis a supported sign-in (agy's changelog lists API-key fixes for-p, plugins and models). Remote Control,--remote-agentand quota commands are unavailable with an API key.AGY_ADC_AUTHwith Application Default Credentials (GOOGLE_APPLICATION_CREDENTIALSpointing at a service-account key) is the Google Cloud route, billed to the project.- The binary references Linux amd64/arm64 builds; confirm the install path for
Установить agy-headless в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(bash ${CLAUDE_SKILL_DIR}/scripts/agy.sh *)Bash(agy models)ReadВложенные файлы
FAQ
Что делает скилл agy-headless?
Drive Antigravity CLI (agy) from Claude Code — headless prompts with JSON results, or a tmux-hosted TUI. Use when delegating a task to agy or reading an open agy session.
Как установить скилл agy-headless?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agy-headless запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic