transfer

A command that saves the current workspace context as a transfer snapshot and creates handoff commands for AGY or Gemini CLI. A handoff passes the task and context to another coding agent.

In plain words
What is it for?
Use it when moving an unfinished task from the current coding agent to AGY or Gemini CLI, with optional engine, model, or effort settings.
Why use it?
It avoids manually collecting project context and helps prevent raw user instructions from being interpreted as shell commands.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/arcobaleno64/agy-plugin-cc/transfer
Clone the repo
git clone --depth 1 https://github.com/arcobaleno64/agy-plugin-cc
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 708 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00022 $0.00708
Opus 5 $0.00011 $0.00354
Sonnet 5 $0.00004 $0.00142
Haiku 4.5 $0.00002 $0.00071

Measured 2d ago against content hash a791782ed0f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

transfer 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 2d 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.

plugins/gemini/commands/transfer.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

The user's raw arguments, as text and nothing else: $ARGUMENTS

Those arguments must never reach a shell

This command deliberately does not pre-execute anything. $ARGUMENTS is substituted into this file as text, so a shell receiving it would evaluate whatever it contains — $(…), backticks, ;, |. Measured on the sibling job commands: $(echo INJECTED) was executed before Node ever started.

Instructions here are free text, so there is no safe way to quote them into a command line. Write them to a file instead:

  1. Read the argument text above and separate it into two parts: the recognised flags, and everything else, which is the instruction text.
  2. Use the Write tool — not a shell — to put the instruction text in a file. A path under the system temp directory is fine; do not build the path from the user's text.
  3. Run the transfer, assembling the command from fixed pieces only:
node "${CLAUDE_PLUGIN_ROOT}/scripts/transfer.mjs" --instructions-file <the path you just wrote> [--engine <value>] [--model <value>] [--effort <value>]

The only flags you may pass are --engine, --model and --effort, and their values must be ones you checked against the sets below — chosen from the list, never copied from the argument text:

  • --engine: auto, gemini, agy
  • --effort: low, medium, high, xhigh
  • --model: an alias (flash, pro, lite, …) or a model id, which must match ^[A-Za-z0-9][A-Za-z0-9._-]*$. If it does not, stop and say so.

If there are no instructions, omit --instructions-file entirely.

Presenting the result

Present the command output to the user exactly as returned. Preserve:

  • The snapshot path under .omc/transfers/
  • Every generated launch command verbatim, including its quoting — the prompt is already shell-escaped for the target shell, and rewriting or reflowing it breaks the handoff
  • Both the Bash/Zsh and PowerShell variants whenever both are printed

Do not run the generated commands. They are for the user to paste into an interactive terminal.

Read the full file on GitHub · 60 lines

Changes

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.

  1. 2d ago First seen · 60 lines · 22 tokens per session scan A a791782ed0f2

Subscribe to this mod's changes

transfer is a command published in the GitHub repository arcobaleno64/agy-plugin-cc (10 stars, last pushed 2d ago), licensed MIT. It adds 22 tokens to every session and 708 once invoked, about $0.0001 per session on Opus 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-08-31.