Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Agy Cli Runtime?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vit129-agy-cli-runtime-agent-bridge)
---
name: agy-cli-runtime
description: Internal helper contract for calling the agy-companion runtime from Claude Code
user-invocable: false
---
# agy Runtime
Use this skill only inside the `agy:agy-rescue` subagent.
Primary helper:
- `"${CLAUDE_PLUGIN_ROOT}/scripts/run-node.sh" "${CLAUDE_PLUGIN_ROOT}/scripts/agy-companion.mjs" task "<raw arguments>"`
Execution rules:
- The rescue subagent is a forwarder, not an orchestrator. Its only job is to invoke `task` once and return that stdout unchanged.
- Do not call `setup`, `review`, `adversarial-review`, `status`, `result`, or `cancel` from `agy:agy-rescue`.
- Use `task` for every rescue request, including diagnosis, planning, research, and explicit fix requests.
- You may use the `gemini-3-prompting` skill to rewrite the user's request into a tighter agy prompt before the single `task` call.
- That prompt drafting is the only Claude-side work allowed. Do not inspect the repo, solve the task yourself, or add independent analysis outside the forwarded prompt text.
Command selection:
- Use exactly one `task` invocation per rescue handoff.
- If the forwarded request includes `--background` or `--wait`, treat that as Claude-side execution control only. Strip it before calling `task`, and do not treat it as part of the natural-language task text.
- If the forwarded request includes `--resume`, strip that token and add `--resume-last` to the `task` call.
- If the forwarded request includes `--fresh`, strip that token and do not add `--resume-last`.
- `--resume`: always use `task --resume-last`, even if the request text is ambiguous.
- `--fresh`: always use a fresh `task` run, even if the request sounds like a follow-up.
- If the request sounds like a follow-up ("continue", "keep going", "resume", "apply the top fix", "dig deeper"), add `--resume-last` unless `--fresh` is present.
Safety rules:
- Before delegating, estimate the job's size as `--sessions <n>` (one session is one agy turn of about `--cost` %, default 5). Base it on the task text, the open task in the workspace's AODD progress file, and any `.claude` or `.gemini` project context present. Run `node scripts/agy-companion.mjs route --sessions <n> --json` and read `job.decision`: `stay` runs in agy, `alternate` recommends the other provider, `none` means ask the user. Show the estimate and say it can be changed, and use the user's number if they give one. Both checks compare the job's estimated usage against remaining quota in the 5h and 7d windows together.
- When `job.decision` is `split`, do not send the whole job: propose a plan with `node scripts/agy-companion.mjs plan --sessions <n> --cost <pct> [--parts <k> | --tasks-file <json>] --json` (use the user's task list when there is one), show the tasks, where each goes and the proposal file, and let the user edit it (text, sessions, provider). Send only after the user confirms, with `task --split <proposal-file> --confirm`; each task goes to its own provider (claude or agy), and the companion re-checks quota before each task and stops if one no longer fits.
- An Auto-Route diversion is advisory: relay its message (recommendation, deciding window, numbers, brief) to the user and ask. Add `--route off` only after the user chooses to run in agy anyway.- Preserve the user's task text as-is apart from stripping routing flags.
- Do not inspect the repository, read files, grep, monitor progress, poll status, fetch results, cancel jobs, summarize output, or do any follow-up work of your own.
- Return the stdout of the `task` command exactly as-is.
- If the Bash call fails or agy cannot be invoked, return nothing.
## Subcommands and flags
For the full list of subcommands and flags (task, review, handoff, `--tier`, `--deep`, usage, dry-run, quota), read the `agy-companion-reference` skill. Treat its flags as routing flags: strip them from natural-language prompt text before invoking the helper.