Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add okisdev/claude-code-fusion/plugin install agyWrote 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/okisdev/claude-code-fusion/agy-cli-runtime)<a href="https://agentmods.dev/skills/okisdev/claude-code-fusion/agy-cli-runtime"><img src="https://agentmods.dev/badge/skills/okisdev/claude-code-fusion/agy-cli-runtime/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/okisdev/claude-code-fusion/agy-cli-runtime"><img src="https://agentmods.dev/badge/skills/okisdev/claude-code-fusion/agy-cli-runtime.svg" alt="Reviewed on agentmods" width="80" 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.00018 | $0.02719 |
| Opus 5.5 | $0.00007 | $0.01088 |
| Sonnet 5.5 | $0.00004 | $0.00544 |
| Haiku 4.5 | $0.00002 | $0.00272 |
Grade A, and why
agy-cli-runtime 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 8d ago.
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 — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Antigravity runtime
Primary helper:
node "${CLAUDE_PLUGIN_ROOT}/scripts/agy-companion.mjs" <subcommand> [flags]
Subcommand surface:
task [--write] [--model <id>] [--effort <effort>] [--resume <session-id>|--resume-last|--fresh] [--background] [--cwd <dir>] [--json] [--] [prompt]review [--scope <auto|working-tree|branch>] [--base <ref>] [--focus <text>] [--model <id>] [--effort <effort>] [--cwd <dir>] [--background] [--json]status [job-id] [--all] [--cwd <dir>] [--json]result <job-id> [--wait] [--cwd <dir>] [--json]cancel <job-id> [--cwd <dir>] [--json]history [--all] [--limit <n>] [--cwd <dir>] [--json]models [--refresh] [--json]setup [--json]record-acceptance --job-id <id> --acceptance <accepted|rejected|unverified> [--reason <text>] [--failure-kind <kind>] [--source <collector|main-loop|stats>] [--accept-failed-transport] [--json]transport-createandtransport-discard --raw-args-token <token>task-workerandreview-workerare internal background workers that the helper never invokes directly.
Execution rules:
- Slash commands stage their complete raw arguments through
transport-create, one Read of the allocated empty file, Write to that same file, and a fixed--raw-args-tokeninvocation. The token transport applies to task, review, status, history, result, cancel, and setup. Raw request bytes never enter Bash, shell arguments, environment variables, redirections, substitutions, encoded literals, or heredocs. A transport is private, bounded, validated, and consumed once. Never delete, rename, recreate, or change the permissions of the transport file; usetransport-discardwhen Read or Write fails or when the allocated file is not empty. - Place every task option before the prompt, and put
--before a prompt that begins with an option shaped token. The prompt text may also arrive on stdin. - The companion resolves the CLI as
agyonPATH, withAGY_BINoverriding the path. Preflight runsagy --versionand every job recordsagyVersionandagyBuildPath. - The tested interval runs from 1.5 to before 1.6 by major and minor version.
agy --versionprints a bare version. Older or unparseable builds fail preflight assetup; newer builds run with verification advice. - Every run executes
agy acp --disable-telemetry --include-default-customizations=false --sandbox --gemini-dir <data>/gemini --app-data-dir agyin the workspace. It sendsinitialize,session/neworsession/load,session/set_mode, then configuration formodelandthought_level, verifying every selected current value beforesession/prompt. The brief appears only in that prompt message. - Consult and review use mode
defaultand allowread_file,search_web, andrun_command. Write usesaccept-editsand additionally allowsedit_fileandwrite_file. The tool name comes fromname. An unlisted tool orrun_commandwithrawInput.BypassSandbox: trueterminates the process group aspolicy. - Permission requests select
allow_onceby kind only for arun_commandpassing the companion's read only command check with no sandbox bypass, or aread_filewhose absolutePathexists and resolves outside the sensitive home locations Devin also denies (credentials, agent and cloud configuration, keychains). All other requests selectreject_onceby kind, or cancel if it is absent. The job countspermissionsAllowedandpermissionsRejected. File writes outside the workspace remain refused; write delegations are bounded file edits. - The command check permits one simple command using
ls,pwd,cat,head,tail,wc,file,stat,tree,grep,rg,find, or the contract's read only Git subcommands and flags. It rejects shell composition, substitutions, redirections, escapes, mutating find actions, Git output flags, andrg --pre. Approved commands still run in the CLI sandbox, which blocks credential directories but does not confine writes. - HOME is inherited so login keychain authentication works. Before every launch the companion atomically replaces
<data>/gemini/agy/settings.jsonwith{}and<data>/gemini/config/mcp_config.jsonwith{"mcpServers":{}}. Only the contract allowlist plus HOME reaches the child. EveryGEMINI_*,GOOGLE_*,ANTIGRAVITY_*,AGY_*, andCLOUDSDK_*variable is dropped. - Workspace
AGENTS.md,GEMINI.md,.gemini, and.agentsinstructions may still load; setup and task warn for those directories. Approved Git commands honor repository configuration, including executable helpers; delegate only trusted repositories. Prompts, workspace content, and results pass through Google's backend, so never delegate secrets or credentials. - A direct call defaults to
gemini-4-neon. Only offered Googlegemini-models are accepted, andgemini-pro-orchestrator-*is refused because it cannot pin the serving model. Non Google models fail asinput; unavailable Google models fail assetup, listing usable models. A trailing-low,-medium,-high, or-xhighsupplies effort only when no explicit effort was requested. - Effort is
thought_level, withlow,medium,high, andxhighvalidated against session options.defaultkeeps the session's level. Records carry requested and resolved model and effort pluseffortApplied.billingPoolis alwayssubscription. models --jsondiscovers the session'smodelvalues through ACPsession/newand caches them for one hour at<data>/models-cache.json;--refreshbypasses the cache. Setup always checks a new session and reminds the user to set Antigravity overage to never.- ACP stdout carries JSON-RPC responses,
session/update, and permission requests. Message chunks beforesession/promptare replay and ignored. Success requires a prompt result withstopReason: "end_turn"; exit status is never success evidence. Usage is preserved as reported without filling missing values or reporting cost. Malformed lines, unknown response ids, a missing session id, or exit before the prompt result fail asprotocol. - The native CLI starts in its own process group. After the prompt result, the companion closes stdin and waits up to
AGY_COMPANION_EXIT_GRACE_MS(default 15000) before terminating the group and recordinglate_close. The run timeout isAGY_COMPANION_TIMEOUT_MS(default 540000 for direct foreground calls).AGY_COMPANION_WAIT_TIMEOUT_MS,AGY_COMPANION_WAIT_POLL_MS, andAGY_COMPANION_PIDLESS_RUNNING_GRACE_MSuse the companion defaults. - A forwarder agent runs the companion in one background shell: a Bash call with
run_in_background: true, which returns at once with a background id and the path of the output file. It then runsnode "${CLAUDE_PLUGIN_ROOT}/scripts/agy-companion.mjs" await-output --file "PATH"in a foreground Bash call withtimeout: 120000and repeats that call while it prints exactlyawait-output: pending; any other output is the complete stdout of the launched operation. The harness delivers one report per agent, so a forwarder never ends its turn or writes a waiting line while the await operation prints pending. The rescue wrapper adds the fixed option--transport-background-shellto its task launch for a 900000ms default execution budget. Direct foreground tasks keep their 540000ms default, andAGY_COMPANION_TIMEOUT_MSoverrides either budget. Background mode belongs to that Bash call alone and is neither the Agent's own background mode nor the companion's--background. A companion run directly by the main session through a slash command, with no forwarder agent, is a foregroundBashcall withtimeout: 600000. - Ordinary delegations use one helper call. Only an explicit incoming user
--backgrounddetaches a task or review into an internal worker and creates a manual receipt; the helper prints the job id plus/agy:statusand/agy:resulthints. Never add--backgroundbecause a task appears large or slow, and never confuse a background shell with that option.result --waitblocks while a job is running, and when its bounded wait budget elapses first it returns output ending instate: running. - A user asking to resume maps to
--resume <session-id>or--resume-last; these and--freshare alternatives. Only a terminal job in the same workspace and mode is resumable. The shared private Gemini directory lets a later job use ACPsession/loadon its UUID; a resumed session keeps its model unless a new model is named.--freshignores continuity. A terminal job's config directory is removed, and a periodic sweep removes orphan run directories older than one hour. historyexposes a safe metadata projection with resumable session ids. It defaults to the current workspace,--allincludes every recorded workspace, and--limitcaps the number of jobs shown.--cwdselects the workspace for task, review, status, history, result, and cancel. Status, result, and cancel search all recorded workspaces by job id when--cwdis omitted. A bad working directory, or an implicit task or review working directory below its Git repository root, fails before a job record is created. Worktree isolation means creating a real Git worktree before launch and supplying that path as the actual--cwd.- Review collects the working tree diff or a branch range, interpolates it into
${CLAUDE_PLUGIN_ROOT}/prompts/review.md, and runs a review mode job. The reply must contain one JSON object withverdict(approveorrequest_changes),summary, andfindings(each withseverity,file,line,title, andbody). The companion extracts the first JSON object from the result text and validates it, and a missing or invalid object fails the review aserrorinstead of falling back to prose. - Typed failure kinds are
missing_cli,setup,auth,quota,rate_limited,network,policy,refused,protocol,timeout,process,cancelled,died,input,resource, anderror. Quota and rate limit failures carrybillingPool; authentication, missing CLI, setup, protocol, and policy failures are engine wide. - Outcomes end with the shared footer block:
agy-session: <session-id>when a resumable session exists, thenjob:,sandbox:,delivery:,semantic:, any adapterwarning:lines,state:, andfailure:for error and cancelled outcomes. - Job records live at
<data>/state/<workspace>/jobs/<id>.json, where<data>isAGY_COMPANION_DATAor~/.claude/plugins/data/agy-claude-code-fusion. They carryengine: "agy"plusagyVersion,agyBuildPath,sessionId,requestedModel,resolvedModel,requestedEffort,resolvedEffort,effortApplied,billingPool,mode,role,usage,stopReason,permissionsAllowed,permissionsRejected, andwarnings. scripts/session-end-hook.mjsruns at Claude Code SessionEnd, performs verified cleanup of this session's running jobs, and removes unused raw transports.- Return the helper output exactly as received, whether the Bash tool reports it from stdout or stderr.
- If the Bash call fails or Antigravity cannot be invoked, surface the failure instead of hiding it; the agy-rescue agent returns exactly one
agy unavailable: <reason>line for the orchestrator's circuit breaker.
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.
- 8d ago Changed 76765c20696a
- 10d ago First seen · 56 lines · 18 tokens per session scan A 250b0a721c80
agy-cli-runtime is a skill published in the GitHub repository okisdev/claude-code-fusion (3 stars, last pushed 3d ago), licensed MIT. It adds 18 tokens to every session and 2,719 once invoked, about $0.0001 per session on Opus 5.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-11-19.
agy-cli-runtime compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agy-cli-runtimeokisdev/claude-code-fusion | Skill | 3 | 3d ago | MIT | A | 18 | Claude Code |
| review-teams977043/river-review | Skill | 8 | today | MIT | A | 147 | Claude Code |
| eval-code-qualityIbrahim-3d/orchestrator-supaconductor | Skill | 384 | 2mo ago | AGPL-3.0 | A | 109 | Claude Code |
| receiving-code-reviewIbrahim-3d/orchestrator-supaconductor | Skill | 384 | 2mo ago | AGPL-3.0 | A | 38 | Claude Code |
| requesting-code-reviewIbrahim-3d/orchestrator-supaconductor | Skill | 384 | 2mo ago | AGPL-3.0 | A | 22 | Claude Code |
| security-reviewbiggora/dev-team | Skill | 5 | 20d ago | none | A | 61 | Claude Code |
| review-contractbiggora/dev-team | Skill | 5 | 20d ago | none | A | 178 | Claude Code |