agentsclimarketplace

Agy cli agent

Skill richfrem/agent-plugins-skills/plugins/cli-agents/skills/agy-cli-agent

repo for reusable plugins and skills

Install
npx -y skills add richfrem/agent-plugins-skills --skill agy-cli-agent

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Antigravity (`agy`) CLI sub-agent system for all Google Gemini models and cross-model access (Gemini, Claude, GPT-OSS) via the agy binary. Use when dispatching tasks to Gemini 3.1 Pro (cheapest real-world), Gemini 3.5 Flash, or other agy-hosted models. Replaces the deprecated gemini-cli-agent (gemini binary retired June 18 2026). Trigger with "use agy", "dispatch to antigravity", "run with agy", "use gemini model", "agy sub-agent", or "use cheapest gemini".

SKILL.md

6.1 KB, as published. Nobody here has run it

Execution Contract

See references/execution-contract.md (full rules) and references/backend-capabilities.md (backend selection).

Key rules: (1) One backend per task — no silent fallback. (2) Run output-validator or self-critic when output quality is uncertain. (3) Architecture/high-risk tasks require architect-reviewred-team-reviewerdebate-synthesizer. (4) Backend failure → halt and log to references/map-debt.md. No workarounds.


Identity: The Antigravity Sub-Agent Dispatcher

You dispatch tasks to Google Gemini (and other) models via the agy binary.

[!IMPORTANT] agy is the sole Gemini CLI since the standalone gemini binary retired June 18 2026. All Gemini model work — including cost-efficient older models — routes through agy.

Model Strategy: Flash by Default, Pro for Deep Reasoning

See references/agy-models.json for the full model catalog, cost tiers, and strategy field.

# Default (Flash — faster, cheaper/token, optimized for agentic/coding tasks)
python ./scripts/run_agent.py <PERSONA> <INPUT> <OUTPUT> "<INSTR>" --cli agy
# ↑ run_agent.py loads gemini-3.5-flash from references/cheapest_models.json

# Explicit Low thinking (recommended for CLI loops to control Thought Preservation cost)
python ./scripts/run_agent.py <PERSONA> <INPUT> <OUTPUT> "<INSTR>" --cli agy --model "Gemini 3.5 Flash (Low)"

# Pro — escalate for deep reasoning / architecture decisions
python ./scripts/run_agent.py <PERSONA> <INPUT> <OUTPUT> "<INSTR>" --cli agy --model gemini-3.1-pro

Flash vs Pro: Which to Use

Gemini 3.5 FlashGemini 3.1 Pro
Price (in/out per 1M)$1.50 / $9.00$2.00 / $12.00
Speed4× fasterBaseline
Agentic tool use / MCP / terminalBestGood
Coding (edit-test loops)BestBetter for final review
Deep abstract reasoningGoodBest
Architecture planningGoodBest
Max output tokens65,53632,768

Default: Flash. Use Pro only when the task requires deep multi-step reasoning or expert-level judgment.

Thinking level note: Flash with High thinking can inflate tokens via Thought Preservation. Use Low thinking level for high-frequency CLI dispatch loops.


Minimal Working Pattern

agy --dangerously-skip-permissions --model "Gemini 3.1 Pro (Low)" -p "$(cat agents/persona.md)

---SOURCE CODE---
$(cat target.py)

---INSTRUCTION---
Perform a full code review. Use severity levels: 🔴 CRITICAL, 🟡 MODERATE, 🟢 MINOR.
You are operating as an isolated sub-agent.
Do NOT use tools. Do NOT access filesystem." > review.md

Orchestration Pattern: run_agent.py

python ./scripts/run_agent.py <PERSONA_FILE> <INPUT_FILE> <OUTPUT_FILE> "<INSTRUCTION>" --cli agy

run_agent.py calls agy --dangerously-skip-permissions -p and streams output live to stdout and the output file simultaneously. Loads model from references/cheapest_models.json (currently gemini-3.1-pro).

Health Check

agy -p "HEARTBEAT CHECK: Respond with HEARTBEAT_OK only."
# or via run_agent.py:
python ./scripts/run_agent.py /dev/null /dev/null ./heartbeat.md "HEARTBEAT CHECK: Respond HEARTBEAT_OK only." --cli agy
grep -q "HEARTBEAT_OK" ./heartbeat.md && echo "OK" || echo "FAIL"

Example

python ./scripts/run_agent.py agents/security-auditor.md target.py security.md \
"Find vulnerabilities. Use severity levels: 🔴 CRITICAL, 🟡 MODERATE, 🟢 MINOR." --cli agy

Available Models

Display Name (agy models)--model IDThinkingRec
Gemini 3.5 Flash (Low)gemini-3.5-flash-lowLowBest for CLI loops — cheapest, fastest
Gemini 3.5 Flash (Medium)gemini-3.5-flashMediumDefault — standard dispatch
Gemini 3.5 Flash (High)gemini-3.5-flash-highHighSingle-shot deep tasks only
Gemini 3.1 Pro (Low)gemini-3.1-proLowDeep reasoning, architecture
Gemini 3.1 Pro (High)gemini-3.1-pro-highHighMost demanding reasoning only
Claude Sonnet 4.6 (Thinking)claude-sonnet-4.6-thinkingAnthropic quality via agy
Claude Opus 4.6 (Thinking)claude-opus-4.6-thinkingCritical tasks only
GPT-OSS 120B (Medium)gpt-oss-120bMediumOpenAI OSS via agy

Full pricing data and strategy field: references/agy-models.json


Persona Registry (agents/)

PersonaUse For
security-auditor.mdRed team, vulnerability scanning, threat modeling
refactor-expert.mdOptimizing code for readability, performance, and DRY
architect-review.mdAssessing system design, modularity, and complexity

CLI Flags Reference

FlagPurpose
-p "prompt" / --prompt "prompt"Pass prompt non-interactively
--model <id>Select model (see table above)
--dangerously-skip-permissionsHeadless mode — skip all permission prompts
--sandboxRun in sandboxed environment

CLI Best Practices

Path

agy is typically at /opt/homebrew/bin/agy. Confirm with which agy.

Avoid Shell Expansion for Large Contexts

$(cat ...) > 10KB can silently fail. run_agent.py writes to a temp file automatically.

Backgrounding & TTY (SIGTTIN)

nohup agy --dangerously-skip-permissions -p "..." >> log.txt 2>&1 < /dev/null &

< /dev/null is required to prevent SIGTTIN stops in background processes.


Smoke Test

agy -p "hello"
python ./scripts/run_agent.py agents/refactor-expert.md target.py output.md "Refactor this code." --cli agy

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.