gemini-dispatch

gemini-dispatch is a skill for Claude Code from iofold/ainative-claude-plugins. It costs 88 tokens per session (2,219 once invoked), scanned B, original, MIT.

A task dispatcher that runs Google's Gemini command-line tool in separate Git worktrees. A worktree is an additional working copy of a repository, so tasks can be worked on separately.

In plain words
What is it for?
Use it to send independent coding, code-analysis, or multimodal tasks to Gemini and review their changes before combining them.
Why use it?
It keeps independent coding tasks from changing the same files in one working directory. It also lets you choose Gemini for image or video input, very large codebases, web-backed research, or another model's perspective.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions subagents; mentions Gemini CLI.

Part of the external-agents plugin — 2 skills shipped together

Good fit Use it to send independent coding, code-analysis, or multimodal tasks to Gemini and review their changes before combining them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iofold/ainative-claude-plugins/gemini-dispatch
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.

Any agent
npx skills add iofold/ainative-claude-plugins --skill gemini-dispatch
Clone the repo
git clone --depth 1 https://github.com/iofold/ainative-claude-plugins

Made for: Claude Code.

Or install external-agents, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gemini-dispatch

README.md
[![agentmods](https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/gemini-dispatch/github.svg)](https://agentmods.dev/skills/iofold/ainative-claude-plugins/gemini-dispatch)
Your own site
<a href="https://agentmods.dev/skills/iofold/ainative-claude-plugins/gemini-dispatch"><img src="https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/gemini-dispatch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gemini-dispatch

Your own site · 80×15
<a href="https://agentmods.dev/skills/iofold/ainative-claude-plugins/gemini-dispatch"><img src="https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/gemini-dispatch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,219 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00088 $0.02219
Opus 5.5 $0.00035 $0.00888
Sonnet 5.5 $0.00018 $0.00444
Haiku 4.5 $0.00009 $0.00222

Measured 1mo ago against content hash 0ac1d1e05eaf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

gemini-dispatch scanned grade B with 1 finding 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 1mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

**Setup:** Set in `~/.claude/settings.json` under `env`, or inject from vault:
external-agents/skills/gemini-dispatch/SKILL.md · 241 lines

How it starts

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

Gemini CLI Task Dispatch

Dispatch independent tasks to Google's Gemini CLI running in isolated git worktrees. Gemini excels at multimodal input (images, video), 1M+ token context windows, and Google Search grounding for up-to-date information.

Use Gemini when: task involves images/video/multimodal input, benefits from 1M+ context, needs Google Search grounding, you want a diverse model perspective, or involves analyzing large codebases.

Use Claude subagents when: task needs current conversation context, is tightly coupled to ongoing work, is quick (<30s), or needs Claude-specific MCP tools.

Essential Workflow

1. Conflict check — verify file independence

Before dispatching, confirm no other agent is modifying the same files, dev servers, or shared state. Each task gets its own branch.

2. Create worktree

TASK_ID=$(date +%s)-gemini-$(echo "$TASK_NAME" | tr ' ' '-' | tr '[:upper:]' '[:lower:]' | head -c 30)
WORKTREE=/tmp/agent-tasks/$TASK_ID
git worktree add $WORKTREE -b agent/gemini/$TASK_ID

3. Write prompt file

Never pass complex prompts inline. Write to the worktree for shell-safety and audit trail. Gemini supports @./path file references inside prompts, resolved relative to the working directory.

cat > $WORKTREE/.gemini-prompt.md << 'PROMPT'
# Task: [TITLE]
## Objective
[What to accomplish]
## Files to Modify
- @./path/to/file — [what to change]
## Files to NOT Modify
- @./path/to/other — owned by another agent
## Constraints
- Follow existing code patterns
- Run tests after changes
## Acceptance Criteria
- [ ] [Criterion]
- [ ] All existing tests pass
PROMPT

Optionally write .gemini/GEMINI.md in the worktree for persistent project context Gemini reads automatically.

4. Dispatch

CRITICAL: Always use --approval-mode yolo (or -y). Without it, Gemini WILL HANG waiting for tool call confirmation.

Recommended — JSON output with sandbox:

cd $WORKTREE && \
gemini \
  -p "$(cat .gemini-prompt.md)" \
  --approval-mode yolo \
  --sandbox \
  --output-format json \
  --extensions none \
  > $WORKTREE/.gemini-result.json \
  2> $WORKTREE/.gemini-log.txt &
GEMINI_PID=$!

Read the full file on GitHub · 241 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. 1mo ago First seen · 241 lines · 88 tokens per session scan B 0ac1d1e05eaf

Subscribe to this mod's changes

gemini-dispatch is a skill published in the GitHub repository iofold/ainative-claude-plugins (3 stars, last pushed 1mo ago), licensed MIT. It adds 88 tokens to every session and 2,219 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-24.

Related

gemini-dispatch compared with skills from other repositories

gemini-dispatch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gemini-dispatchiofold/ainative-claude-pluginsSkill31mo agoMITB88Claude Code
merge-batchdiegosouzapw/OmniRouteSkill91k2d agoMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15kyesterdayApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.7ktodayMITA20Claude Code, Codex
comet-githubrpamis/cometSkill3.3ktodayMITA72Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k4d agoMITA51Claude Code
codex-autoresearchleo-lilinxiao/codex-autoresearchSkill3.3k12d agoMITA39Codex