/open-skills:headless-geminifrom open-skills
Runs bounded tasks through Antigravity CLI (agy) using locally exposed Gemini and Claude models on a separate quota pool. Triggered by /headless-gemini or 'run Gemini headlessly'.
Ships in open-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Before every run, read access and failure handling and discover the current host state. The bundled scripts/check-access.mjs discovers local CLI paths without inference; a found CLI is not proof of authentication, model access or parent supervision. Missing tools produce explicit route gaps, never automatic installation, login, API fallback or configuration change.
Run one bounded task using an installed Antigravity CLI and its existing account login. This route supports locally listed Gemini models and Claude Opus 5.5 or Sonnet 5.5 through agy; its historical skill name remains /headless-gemini. Claude through Antigravity uses Antigravity's harness and account pool. It does not inherit native Claude Code tools, flags, permissions or quota guarantees. Read Claude model routing when selecting a Claude model or comparing execution families. This skill does not install software, change credentials or persistent permissions, enable paid credits, or authorize additional work.
Structured execution spec: protocol.yon. Read it for the canonical rules and step sequence; this file is explanation. The two must stay in sync; update both when their contract changes and refresh the @STAMP date.
Read the shared run contract and freshness policy before every run, including explicit model selections and resume. Read model-state.json; when Node is available run node <skill-dir>/scripts/check-model-freshness.mjs <absolute-state-file>, otherwise apply its timestamp rules. Missing/future/failed/invalidated evidence of either kind is due; only guidance age at least policy.reminderDays triggers an age reminder. Runtime evidence remains dated historical coverage with its gaps visible. Follow freshness.md for the standalone bounded-recheck fallback when the optional updater is absent. The outer parent offers one update-all or continue-dated choice per session snapshot/reasons; an explicit update request needs no repeated question. Noninteractive children return due status to the parent, never prompt or refresh recursively. Preserve explicit model choices.
Any shell-capable parent may launch this CLI only when it can retain, monitor and cancel the process within its outer permissions. Context, budgets and native subagent identity do not transfer. Default to sibling workers under one supervisor; further delegation needs separate bounded authorization. The adapter permits one separately approved immutable launcher through its optional command contract; native subagents and arbitrary shell dispatch remain unsupported.
For an unspecified model or effort, use the Gemini through agy column of the bundled task and effort starting policy. Apply caller constraints first, validate the exact choice against this runtime, and disclose the selection and uncertainty. Fill only an unspecified field; never replace a selected model to apply the table. Explicit model and effort remain controlling. This skill is complete without route-task, headless-models or the updater; do not sweep unrelated provider catalogs.
agy --version, agy --help, and agy models. Use current local help and catalog rather than flags or model names remembered from another CLI. If a newly installed binary is missing from the supervising shell's PATH, inspect the configured user PATH and invoke the verified executable by absolute path. Do not reinstall or edit PATH.agy models output before every run. The bundled adapter accepts gemini-* and only claude-opus-5-5-{low,medium,high} or claude-sonnet-5-5-{low,medium,high} among Claude models. It does not accept GPT models. Prefer a listed effort-specific slug; use --effort only after verifying its supported combination. Any model named in dated validation is historical test evidence, not a default or current entitlement. An unavailable selection is a blocker, never permission to substitute another model, provider or billing route.--disable-slash-commands for literal prompts; omit it only for an explicitly selected, inspected skill that is available in the target runtime. It does not establish plugin or MCP isolation.Consult the bundled model-selection map for task, cost, and long-horizon coding-quality evidence. It is a dated comparison, not a live catalog or universal task ranking: do not transfer coding benchmarks to research, writing, or other work. Preserve an explicit model and effort; when useful, propose a cheaper or stronger locally listed setup with its cost/quota, quality evidence, latency, and reversal condition. The benchmark evidence does not establish that an agy model has an authorized autonomous-write route.
agy 1.2.4 exposes a broad built-in tool surface. Its help has no equivalent of Claude's per-run --tools plus --strict-mcp-config restriction. request-review does not mean read-only: inherited rules and workspace behavior affect actual authorization. --mode plan prefixes a planning instruction; it is not proof of filesystem isolation. The documented terminal sandbox covers Linux and macOS, and does not establish Windows support or containment of every tool.
For tasks requiring enforced read-only or exact tool isolation, stop unless that boundary is independently established before launch. For an authorized supervised task in a trusted environment, disclose that tool-call monitoring is detection after dispatch, not prevention. Never use --dangerously-skip-permissions, assume a prompt enforces permissions, or broaden settings to resolve a denial. A needed permission change is a separate, exact configuration proposal.
For file work, put absolute approved paths in the prompt. Add only the reviewed workspace with --add-dir; this expands access and is not an allowlist. In the initial smoke test, CWD metadata alone did not stop the model guessing paths outside the intended directory. Explicit absolute input plus --add-dir succeeded, while a write was denied. Later exact-path allow rules enabled read and file creation without an added workspace; the written artifact had an extra newline and failed exact-byte acceptance. Do not confuse permission success with artifact correctness or promise default workspace approval on every installation.
Before proposing permission recovery, read pre-approval and troubleshooting. It covers scoped allow rules, interactive Project/Shared/Global setup, conflicting ask/deny rules, Windows matching, and the distinct --mode accept-edits control. Prepare an exact separately authorized setup change; do not let a running worker grant itself access. The bundled adapter supports one exact launcher through allowedCommandCall, described in the supervision reference. It has no execution-mode override, arbitrary shell or native subagent support. The launcher must set its own reviewed child workspace: command execution can start in the CLI scratch directory. Supply WaitMsBeforeAsync=5000 in the tool request; current streams may omit it. Background status polling remains unsupported.
A private fixed-command supervisor demonstrated launcher and child-process startup after its rule matched the actual quoted PowerShell command. Subsequent inference failed with provider capacity 503 errors. If the stream reports an opaque error step, preserve it and inspect the matching private runtime log before proposing permission or login changes; never silently switch models to hide that failure.
Use a foreground child owned by a supervising runner that returns control while it runs, retains its handle, captures stdout and stderr concurrently, and enforces an external deadline. Stop before launch if those capabilities are unavailable. Use native monitoring when it satisfies this contract, or the optional tested Windows Node supervisor. Other operating systems need their own verified process-group cancellation adapter.
agy -p "<bounded prompt with exact paths>" --model <verified-local-agy-slug> --output-format stream-json --disable-slash-commands --print-timeout 90s
The duration above is an example. Choose it for the task and set an external deadline that also covers startup and shutdown. Native --print-timeout alone is insufficient: the tested immediate timeout returned an empty SUCCESS envelope and exit code zero. No native spend, token, or turn ceiling was exposed in tested help; a deadline limits elapsed time, not account usage. Disclose that gap before expensive work and never enable credit fallback.
Pass prompt and arguments as separate process arguments with shell execution disabled. Do not interpolate input into shell syntax. For large input, use the tested --input-format stream-json --output-format stream-json route, send exactly one serialized user message, and close stdin. Plain text piped alongside -p was ignored in the test; do not use that shape for diffs or document content.
{"event":"user","message":{"content":"<bounded task and its input>"}}
Retain raw stdout, stderr, process identity, deadline, exit code, and terminal result. Check the initial event's CWD, requested model and permission mode. The model field records the CLI selection; it is not independent backend attestation. Inspect actual tool names, targets and errors throughout. Stop on unexpected actions, denied actions, authentication/billing errors, malformed events, or scope drift. Preserve partial output. Emit a meaningful checkpoint within 60 seconds and at material changes.
On timeout or cancellation, interrupt through a supported native mechanism; if necessary terminate only the retained process tree and verify it stopped. The Windows adapter uses scoped taskkill /PID <owned-pid> /T /F, which is forced termination, not graceful SIGINT. Never kill processes by executable name. Recheck owned descendants after normal completion too. Cleanup has a finite grace period independent of root exit and inherited pipes; if termination cannot be proved, return incomplete with cleanup-unverified and have the outer host investigate. Report any uncertain stopped state.
One-shot streaming output uses event: init, event: step_update, and event: result; the completion envelope is in .result. With --output-format json, the envelope is the whole document. In either case, answer text is .response, not .result as a text field.
Require all of these before declaring harness success:
status: SUCCESS, and nonempty expected output.error, nonempty denied_actions, tool error, permission-denial diagnostic, timeout diagnostic, cancellation, or unexplained truncation.Then independently verify the requested answer or artifact and recheck the target state. A denied command or write can produce exit zero and SUCCESS; check the full evidence even if the model supplies a plausible answer. A parser validates structure, not correctness. Keep raw private logs outside public repositories; publish only sanitized findings.
Return outcome, version, selected model/effort, authentication evidence and limits, observed permissions, checked paths, exit/status, result location, and material gaps. Do not claim installation, account tier, write capability, or strict isolation from a prompt-only success.
Inspect retained output before another inference. Never automatically retry an authentication, billing, model, or permission blocker. At most one retry requires new evidence that addresses the failure, caller authorization, and a remaining recorded budget. Changing a test case does not authorize broadening its permissions.
Resume only when requested, using the exact retained conversation_id with --conversation <id>. Repeat preflight and all model, path, permission and supervision controls. Avoid --continue in automation because another conversation may become latest. Do not claim one-shot operation is ephemeral: the CLI may retain conversation state and logs.
Read validation and source boundaries before changing command, output, authentication, or permission policy. It separates historical runtime observations from current catalog evidence and lists untested capabilities.
Self-improvement. If a concrete material or recurring skill weakness, missing good practice, or unrecorded fixed pitfall appears, propose a specific repair for approval; otherwise remain silent. Never auto-apply. No sibling skill is required.
For current account quota and reset times, use headless-usage. It attempts live reads independently of model-map freshness and labels unavailable or cached provider data explicitly.
On Windows, use the bundled file-backed process runner when Node pipe capture fails with EPERM. It retains live file-backed stdout/stderr without changing permissions. A successful version probe does not prove that a nested CLI can reach its login, writable runtime state or network.
When those remain blocked inside a parent sandbox, use the fixed outer dispatcher only from an already authorized capable host. Prepare and review one immutable worker specification before starting the restricted parent. The parent can request that task by its fixed ID; it cannot supply a command, change arguments or grant itself permissions. If no such host is available, report the missing capability and the concrete setup needed. Do not copy credentials, silently switch executables/models, or weaken the parent sandbox.
protocol.yon (opens in a new tab)references/access.md (opens in a new tab)references/claude-models.md (opens in a new tab)references/fixed-dispatch.md (opens in a new tab)references/freshness.md (opens in a new tab)references/model-selection.md (opens in a new tab)references/model-state.json (opens in a new tab)references/permissions.md (opens in a new tab)references/process-supervision.md (opens in a new tab)references/run-contract.md (opens in a new tab)references/supervision.md (opens in a new tab)references/validation.md (opens in a new tab)scripts/check-access.mjs (opens in a new tab)scripts/check-model-freshness.mjs (opens in a new tab)scripts/dispatch-fixed.mjs (opens in a new tab)scripts/run-process.mjs (opens in a new tab)scripts/run-windows.mjs (opens in a new tab)scripts/test-supervision.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub allemaar/open-skills --plugin open-skills93 skills in this plugin
/agent-mailboxTwo or more agents — any harness, any vendor — collaborate through any shared folder: share a folder, load the skill, point at it.
/agent-outputCompact agent-to-agent communication contract for worker reports, handoffs, status, blockers, and review findings. Trigger phrases: "/agent-output", "brief the worker", "make agent reports terse". Not a transport; use /agent-mailbox for delivery.
/ask-gateThe Ask-Gate Protocol (AGP). Before surfacing an AskUserQuestion, triage whether the question is genuinely the handler's call (anti-nag); ask routine questions directly after a quality checklist, but escalate high-stakes / branching / irreversible ones through /insight-critique then /insight-assess first. Trigger via /ask-gate, or automatically before any handler-facing question. Not /caller-options (routes a skill's venue/mode) or /next-skills (recommends successors) — AGP governs the question itself.
Other plugins' skills for the same job