Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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/--continue headless. 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 --dir at 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 --timeout accordingly.

Running in a cloud container

Possible with token auth, untested here:

  • GEMINI_API_KEY is a supported sign-in (agy's changelog lists API-key fixes for -p, plugins and models). Remote Control, --remote-agent and quota commands are unavailable with an API key.
  • AGY_ADC_AUTH with Application Default Credentials (GOOGLE_APPLICATION_CREDENTIALS pointing 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
Полный SKILL.md на GitHub

Установить agy-headless в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(bash ${CLAUDE_SKILL_DIR}/scripts/agy.sh *)
Bash(agy models)
Read

Вложенные файлы

scripts/agy.sh

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить agy-headless с