Runs a supplied task in headless AGY (Antigravity/Gemini) and collects runtime evidence. Only activates when AGY, Antigravity, or Gemini is explicitly requested.
Ships in boshu2-agentops. 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.
None: SKILL.md is the whole skill.
Run a supplied packet in AGY (Antigravity) only when the caller explicitly
selects that runtime. Scope the run to the supplied workspace and packet,
return runtime evidence, and stop. It worked when the command passes an
explicit --print-timeout, the posture is disclosed, and the result says
whether the turn finished instead of reading exit 0 as proof.
agy --version first, agy --help for flags, agy changelog for
behavior the help omits,
and agy models for ids. That list includes Claude and GPT-OSS: a Gemini
or cross-family run needs a gemini-* id.agy is missing or its help cannot be read,
report the absence and stop. Never fall back silently to Codex, Claude or
any other runtime. A fallback the caller named, in advance or after that
report, runs only after it, through claude-exec
or codex-exec with its own bound, labelled
"not an AGY result". Nothing routes work to AGY on its own either.agy -p / --print) is the headless
path, and it has no built-in limit: --print-timeout defaults to 0, which
waits until the turn completes. Pass --print-timeout from the caller's
remaining deadline and hold the same bound outside the process. A run
stopped at the bound is a timeout, not a result.-c/--continue or --conversation <author-id>, so
its judgment stays fresh. Validators stay read-only and hand judgment to
Validate; they never write the core verdict.Name the posture before launch: the flags plus the user and project
settings.json permissions, which headless runs honor (disclose those or say
not inspected). No flag makes file access read-only.
denied_actions. With settings that allow
no writes, this is the validator posture.--sandbox restricts terminal commands only. --mode accept-edits approves
edits and --mode auto edits and safe commands; --mode plan is not
documented as read-only, and headless runs pass plan review on their own.--dangerously-skip-permissions approves every tool call. It and the
approving modes need declared effects and caller authorization covering
that blast radius.Before and after the run, take git status --porcelain and
git diff HEAD | shasum in $WORKSPACE, and list the packet directory
$PKT after; a validator's write is out of authority. These miss edits
inside untracked or ignored files and under other --add-dir paths: report
those unchecked.
In an AgentOps source checkout, review runs use REVIEWER=agy (the id in
REVIEWER_MODEL) with codex_exec_guarded from scripts/lib/codex-exec.sh
(call shape in codex-exec). It adds echo,
stall and output-cap handling. Its posture, to disclose, is
--sandbox --dangerously-skip-permissions with --add-dir on its own
private mktemp -d packet directory: every tool call is approved over the
workspace and that directory, so it is not read-only. An installed skill
lacks that library; use this block.
The caller supplies $MODEL, $POSTURE, DEADLINE_EPOCH and absolute
$WORKSPACE, $PROMPT_FILE, $OUT and $ERR paths, the last three outside
$WORKSPACE.
This block passes the packet by path, not inline: a short -p pointer plus
--add-dir on the packet's own directory only, because a large inline prompt
can be dropped while the run still looks scoped. That drop is an earlier-run
observation, not in the 1.4.7 help or changelog. Would verify: a run with an
inline -p prompt over ~100 KB that asks for a marker from its end.
TO=$(command -v timeout || command -v gtimeout) || { echo "no timeout: not launching" >&2; exit 2; }
[ -n "$MODEL" ] || { echo "MODEL unset: pick an id from agy models" >&2; exit 2; }
# DEADLINE_EPOCH: absolute Unix time fixed once by the caller; a later run gets what is left.
case "$DEADLINE_EPOCH" in ''|*[!0-9]*) echo "no deadline: not launching" >&2; exit 2;; esac
for p in "$WORKSPACE" "$PROMPT_FILE" "$OUT" "$ERR"; do case "$p" in /*) ;; *) echo "not absolute: '$p'" >&2; exit 2;; esac; done
remaining=$(( DEADLINE_EPOCH - $(date +%s) ))
pt=$(( remaining - 15 )) # AGY's bound fires first; 0 would mean no limit
[ "$pt" -gt 0 ] || { echo "deadline too close; not launched" >&2; exit 124; }
PKT=$(mktemp -d) && cp "$PROMPT_FILE" "$PKT/packet.md" || exit 2 # not $TMPDIR itself
cd "$WORKSPACE" || exit 2
# POSTURE: Bash array of the flags chosen above; empty is the default posture.
set -o pipefail # bash and zsh: $? is the failing stage, not head's
start=$(date +%s)
"$TO" -k 10 "$remaining" \
agy --print-timeout "${pt}s" --model "$MODEL" --output-format json \
"${POSTURE[@]}" --add-dir "$PKT" \
-p "Read the task packet at $PKT/packet.md and do what it describes." \
</dev/null 2>"$ERR" | head -c 10485760 >"$OUT"
rc=$?; elapsed=$(( $(date +%s) - start )); echo "exit=$rc elapsed=${elapsed}s pt=${pt}s"
Flags after -p <prompt> are parsed (a bad value there exits 2).
--print-timeout needs a unit such as 300s; a bare number or an
unknown flag exits 2. If the host shell tool's cap is under
remaining plus 10 s, handle it as claude-exec does.
Did it finish? Since AGY 1.5.0 an expired --print-timeout exits 3. It
writes a [agy] print timeout after ... line and an AGY_ERROR: line with
"reason":"print_timeout" to stderr, and the JSON carries "status":"ERROR"
and "finished_reason":"print_timeout": that is a timeout, not a result. Any
other exit 3 with an AGY_ERROR: line is a model or agent error. Exit 0 with
"status":"SUCCESS" and no finished_reason is a finished turn; judge it by
the expected artifact and the workspace snapshots, else say unknown. Before
1.5.0 an expired bound returned partial output, exited 0 and warned on
stderr (finished_reason exists from 1.4.11), so on an older CLI exit 0 at
pt or later is not proof: read $ERR. Other non-zero is a failed run;
124, or 137 after the grace, is the outer bound.
Output repeating the packet or pointer is an echo. An $OUT of exactly
10 MiB was cut; its status is the closed pipe.
command: exact argv (prompt by reference)
posture: flags used; settings permissions, or "settings not inspected"
model: requested id; observed model if AGY reported one, else unknown
conversation: id AGY reported, else unknown
bound: --print-timeout value, the outer deadline and elapsed seconds
outcome: exit status; finished | timed out (which bound) | echo | unknown | not run
denied_actions: list from the JSON output, else none reported
artifacts: output path, bytes, truncated yes|no; changed-file paths
Installation, plugin mutation and recurring scheduling need separate explicit authorization.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agy, antigravity, gemini, headless-execution, runtime-dispatch
28 skills in this plugin
/architectureCompare interface designs and find structural friction. Use when: a change spreads across modules or a boundary is unclear. For code changes, use Refactor./claude-execRun one prompt through headless Claude with scoped permissions and a time bound. Use when: scripting or automating a `claude -p` call, even a simple one./codex-execRun one prompt through headless Codex and capture the result. Use when: wanting a one-shot `codex exec` run or CI step. Not for batches or retries./councilCompare independent opinions from models or contexts without inflating agreement. Use when: wanting several opinions or a debate, or summarizing several reviewers' results./craft-goalDraft or lint a bounded long-running goal prompt with a finish line and hard limits. Use when: asked to craft or lint a goal (a /goal prompt); one change goes to Plan./docWrite source-checked docs, READMEs, change descriptions and handoffs. Use when: documenting a change, leaving or resuming a handoff, or drafting a questionnaire for someone else.2 plugins in one repository ship this exact skill · first indexed Nov 29, 2026
/boshu2-agentops:agy-nativefrom boshu2-agentops
boshu2-agentops@cascade-code-devops-misc-1 is listed by joshuarweaver/cascade-code-devops-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-devops-misc-1 --plugin boshu2-agentopsOther plugins' skills for the same job