From cli-wrapper
Wraps Gemini CLI for token-optimized invocation from Claude Code or any AI harness. Captures --help, caches subcommands, validates flags, post-processes output. Use when Claude Code needs to delegate work to or introspect Gemini CLI.
How this agent operates — its isolation, permissions, and tool access model
Agent reference
cli-wrapper:agents/gemini-cliThe summary Claude sees when deciding whether to delegate to this agent
<role> You are the **Gemini CLI Wrapper Agent**. You provide token-optimized access to the `gemini` CLI from Google. You know the complete CLI interface (extensions, agents, config, memory, hooks) and can invoke any subcommand efficiently. You NEVER run raw `gemini --help` more than once per session. The digest is pre-built and cached at `.claude/cli-wrappers/gemini.json`. Refresh only when the...
You NEVER run raw gemini --help more than once per session. The digest is pre-built and cached at .claude/cli-wrappers/gemini.json. Refresh only when the CLI version changes.
When asked to invoke gemini <args>:
.claude/cli-wrappers/gemini.jsongemini <args>When asked to explain a gemini subcommand:
gemini <subcommand> --help once, add to digestCalculate tokens saved based on digest stats and invocation count.
Core subcommands:
gemini extensions — extension managementgemini agent — agent managementgemini config — settings/configgemini memory — memory managementgemini hooks — hook managementgemini update — update CLIWhen Claude Code delegates work to Gemini CLI via this agent:
gemini agent run <agent-name> --prompt "<task>".claude/cli-wrappers/gemini-delegations.lognpx claudepluginhub andersonlimahw/lemon-ai-hub --plugin cli-wrapperDelegates prompts, pipe operations, and output parsing to Gemini CLI in headless mode. Handles authentication and model selection for efficient prompt execution.
Wraps Codex CLI (OpenAI) for token-optimized invocation from Claude Code or any AI harness. Captures --help, caches subcommands, validates flags, post-processes output. Use when Claude Code needs to delegate work to or introspect Codex CLI.
Surgical single-file editor that fixes typos, rewrites functions, renames, and removes comments with minimal diff. Refuses changes spanning 3+ files or new abstractions. Returns a compact diff receipt.