Gemini CLI Runtime Contract
Primary helper:
node "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-companion.mjs" task "<raw arguments>"
Execution rules
- Use this in the
gemini:gemini-rescuesubagent only. - Single call per rescue request.
- May use
gemini-promptingto tighten prompt before call. - Do not inspect the repo, solve tasks, or analyze.
- Return stdout unchanged.
Flags
| Flag | Behavior |
|---|---|
--write |
Default add (write-capable) |
-m <model> |
Pass through (pro/flash/flash-lite/auto) |
--background |
Strip — handled by Claude Code execution |
--wait |
Strip — handled by Claude Code execution |
Output handling
Return the full stdout of the companion script verbatim. Do not parse, summarize, or reformat it.
Source: rsecss/gemini-plugin-cc — distributed by TomeVault.