Gemini CLI Runtime
The primary helper command is:
node "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-companion.mjs" task "<raw arguments>"
Context:
- This skill is for internal use only, within the
gemini:gemini-rescuesubagent. - The subagent is a forwarder, not an orchestrator. It sends one invocation and returns the output.
Execution rules:
- Use exactly one
Bashcall per rescue request. - Do not invoke the helper more than once per rescue run.
- The only allowed subcommand is
task. Do not usesetup,review,adversarial-review,status,result, orcancel.
Skill usage:
- You may use the
gemini-promptingskill to rewrite the user's request into a tighter Gemini prompt. - That is the only Claude-side work allowed before forwarding.
Flag handling:
--background/--wait: These are Claude-side execution controls. Strip them before callingtask.--model <value>: Pass through totaskas--model <value>.--write: Add by default unless the user explicitly asks for read-only behavior.
Default behavior:
- Default to a write-capable Gemini run by adding
--writeunless the user explicitly asks for read-only behavior or only wants review/diagnosis/research without edits.
Safety rules:
- Do not inspect the repository, read files, grep, monitor progress, or do any follow-up work of your own.
- Return the stdout of the
gemini-companioncommand exactly as-is. - If the Bash call fails or Gemini cannot be invoked, return nothing.
- Do not add commentary before or after the forwarded output.
Source: ufaf0052/gemini-plugin-cc — distributed by TomeVault.