Gemini does the writing. Your orchestrator plans and reviews. gemini-swarm is a Claude Code plugin/skill (portable to other harnesses) that makes Gemini the default writer for substantial work.
FAQ
gemini-swarm is a Claude Code plugin with 2 hand-picked skills for development work, indexed on Flowy. Install it with the command on its page. It includes gemini-imagegen, gemini-swarm. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
> /plugin marketplace add Vallykrie/gemini-swarm-skill> /plugin install gemini-swarm@gemini-swarm-skill
Repo: Vallykrie/gemini-swarm-skill
Gemini does the writing. Your orchestrator plans and reviews.
gemini-swarm is a Claude Code plugin/skill (portable to other harnesses) that makes Gemini the default writer for substantial work. Whenever a task means writing more than a trivial amount of code or content, your orchestrator splits it into subtasks, fans each one out to a live agy (Antigravity CLI) session running the right Gemini model, and integrates the results โ all while its own context stays clean. It also ships gemini-imagegen for generating real images through Gemini's generate_image tool, something Claude can't do on its own.
New here?
Installing?
agy? Jump to Step 3 โ just add the pluginReference
The orchestrator:
agy) โ reasoning-heavy work to Gemini 3.1 Pro (High), bulk/mechanical work to Gemini 3.6 Flash,agy sessions, and.gemini-swarm/logs/.The orchestrator model does planning and review; Gemini does the token-heavy bulk work.
In 2025, Google gave students a free year of Gemini Pro. Most of us claimed it and then barely touched it โ because for real work (writing code, debugging, thinking through a design) Claude and ChatGPT are simply better, so we pay for those and leave the free Gemini plan sitting idle. It's the most wasted subscription in every student's account.
But not all work is hard work. A big task is usually ~5% hard reasoning (deciding what to do) and ~95% mechanical grind (typing out twenty near-identical files). Making your expensive, smart model do the grind burns its context window and your money on the most boilerplate text imaginable.
gemini-swarm splits those roles: your smart, paid model plans and reviews, while Gemini does the token-heavy writing in parallel โ on the free plan you already have. The companion skill, gemini-imagegen, goes further and does something Claude can't do at all โ generate real images โ again through that same free Gemini plan. Right AI for the right job, and your unused free credits finally earn their keep.
You need three things: the Antigravity CLI (agy), a logged-in + trusted workspace, and this plugin. ~5 minutes from a clean machine.
agy)agy is Google's terminal agent; it's the process that actually runs each Gemini job. Install it with the official one-line script (no Node/Python needed โ it's a single Go binary):
# macOS / Linux
curl -fsSL https://antigravity.google/cli/install.sh | bash
# Windows PowerShell
irm https://antigravity.google/cli/install.ps1 | iex
The script drops the binary at ~/.local/bin/agy (macOS/Linux) and adds it to your PATH. Open a new terminal, then confirm it's reachable:
agy --version # built & tested against agy 1.0.15
If agy: command not found, add its directory to your PATH (export PATH="$HOME/.local/bin:$PATH" in your shell profile) and reopen the terminal.
Run agy once, interactively, inside the project you want to swarm in:
cd /path/to/your/project
agy
On first run it opens Google Sign-In (or prints an authorization URL for remote/SSH sessions โ complete it in a local browser). It also asks whether to trust this workspace โ say yes. This trust is per-directory, so repeat agy once in each new project. Type /quit (or Ctrl-C) to exit once you're logged in and trusted.
That's the whole
agyside. Everything below runsagyfor you โ you won't open it by hand again.
This is two separate commands โ run them one at a time at the Claude Code prompt:
/plugin marketplace add Vallykrie/gemini-swarm-skill
/plugin install gemini-swarm@gemini-swarm-skill
โ ๏ธ Don't paste both onto one line, and don't paste
/plugin install โฆinto the "Add Marketplace / Enter marketplace source" box โ that field wants only the source (Vallykrie/gemini-swarm-skill). The install is a second, separate step.
This gives you both skills (gemini-swarm, gemini-imagegen), the /gemini-swarm and /gemini-imagegen commands, and the gemini-dispatcher subagent. You're ready โ jump to Usage.
Copy the skill folder into your personal skills directory:
git clone https://github.com/Vallykrie/gemini-swarm-skill
cp -r gemini-swarm-skill/skills/gemini-swarm ~/.claude/skills/
cp -r gemini-swarm-skill/skills/gemini-imagegen ~/.claude/skills/
The skill folders are self-contained: each SKILL.md holds the full playbook, and gemini-swarm's bundled scripts/dispatch.sh is the only dependency.
The core logic is one Markdown playbook (skills/gemini-swarm/SKILL.md) plus one shell script. See docs/harnesses.md for thin adapter instructions per harness.
In Claude Code:
/gemini-swarm # same as "default"
/gemini-swarm default # mirror the host agent's current permission mode
/gemini-swarm auto # force full autonomy (sandboxed) for all agy jobs
/gemini-swarm request # force request-review for all agy jobs
Then just describe the task:
/gemini-swarm auto Port every module under
src/legacy/to TypeScript and write a migration report.
The orchestrator splits the work into independent subtasks, assigns a model per subtask (never asking you which), launches all of them concurrently, auto-accepts the results, and writes a run log.
You don't need to invoke it explicitly. With the plugin installed, the skill's trigger is delegate by default: any writing work spanning more than one file or more than ~20 lines should activate it, so ordinary requests like "build a todo app" or "add tests for the parser" get written by Gemini with the orchestrator planning and reviewing. A single coherent task is dispatched as a swarm of one โ parallel fan-out is an optimization, not a requirement. Explicit phrases ("swarm this across Gemini", "fan this out") also work, with default mode.
/gemini-imagegen)Claude can't generate raster images โ Gemini via agy can. The bundled gemini-imagegen skill dispatches an agy session whose generate_image tool creates the image and saves it wherever you ask:
/gemini-imagegen a flat-style logo of a hummingbird in teal and orange, transparent background, save as assets/logo.png
It also triggers implicitly whenever a task needs image assets ("make me a hero image for the landing page") or the user asks to generate/edit an image. Multiple images are dispatched in parallel, one agy job per image, and the orchestrator views each result to verify it matches before delivering.
gemini-swarm pays off whenever a task splits into independent chunks that don't share state โ so they can run at once without stepping on each other โ and the bulk of the work is mechanical enough to hand to Gemini while your orchestrator just plans and reviews.
Scenario: you have a repo with 20 API-route files and no tests. Writing them serially in your main agent would burn its whole context window on boilerplate.
/gemini-swarm auto
Write unit tests for every file in src/routes/. One test file per route,
covering the happy path and the main error cases. Match the existing style
in tests/.
What happens:
Gemini 3.6 Flash; anything needing deeper reasoning โ Gemini 3.1 Pro (High). It never asks you which.agy jobs run in parallel, each writing its own test file directly to disk..gemini-swarm/logs/, and reports back a short summary โ not 20 walls of Gemini output.Your main agent's context stays clean; the token-heavy grind happened in the Gemini sessions. Other good fits: porting many modules to a new language, generating docstrings across a package, researching several topics at once, refactoring a set of unrelated files. Poor fits: one big file everything edits, or steps that must happen in order โ those have no parallelism to exploit.
| Mode | What the agy jobs get |
|---|---|
default | Mirrors the host: if Claude Code is in auto-accept/bypass mode, jobs run with --dangerously-skip-permissions --sandbox; if Claude Code is in review mode, jobs run under agy's configured request-review tool permission. |
auto | Always --dangerously-skip-permissions --sandbox (full autonomy, terminal-restricted sandbox). |
request | Never skips permissions; jobs run under agy's request-review policy. |
Every swarm run writes .gemini-swarm/logs/<ISO-timestamp>.md in your project, containing:
Output is auto-accepted โ the log is the audit trail, not a review gate. Add .gemini-swarm/ to your project's .gitignore if you don't want logs committed.
gemini-swarm/
โโโ LICENSE # MIT
โโโ README.md
โโโ .claude-plugin/
โ โโโ plugin.json # Claude Code plugin manifest
โ โโโ marketplace.json # so /plugin marketplace add works on this repo
โโโ skills/
โ โโโ gemini-swarm/
โ โ โโโ SKILL.md # the decomposition + dispatch + logging playbook
โ โ โโโ scripts/
โ โ โโโ dispatch.sh # symlink-free copy for standalone skill installs
โ โโโ gemini-imagegen/
โ โโโ SKILL.md # image generation via Gemini's generate_image tool
โโโ agents/
โ โโโ gemini-dispatcher.md # cheap Bash-only subagent that runs the dispatch
โโโ commands/
โ โโโ gemini-swarm.md # /gemini-swarm default|auto|request
โ โโโ gemini-imagegen.md # /gemini-imagegen <image description>
โโโ docs/
โ โโโ harnesses.md # Codex CLI / OpenCode / Antigravity adapter notes
โโโ scripts/
โโโ dispatch.sh # parallel dispatcher (source of truth)
SKILL.md; the plugin command, the subagent, and the other-harness adapters are thin wrappers around it.gemini-dispatcher subagent (a cheap model with only Bash/Read/Write) calls scripts/dispatch.sh, waits for all jobs, writes the run log, and returns only a short summary plus the log path. Raw Gemini stdout never enters the orchestrator's context.dispatch.sh launches every agy --print job concurrently with & and waits for all of them. No concurrency cap, no throttling..claude-plugin/
marketplace.json
plugin.json
.gitignore
agents/
gemini-dispatcher.md
commands/
gemini-imagegen.md
gemini-swarm.md
docs/
harnesses.md
LICENSE
README.md
scripts/
dispatch.sh
skills/
gemini-imagegen/
SKILL.md
gemini-swarm/
scripts/
dispatch.sh
SKILL.mdยฉ 2026 Flowy ยท Free and open source
Built for Claude Code ยท Not affiliated with Anthropic