TRENDING NOW  ·  Loading date… Top 10  ·  How-To  ·  Comparisons  ·  AI Prompts  ·  Guides

NextGenAIVibe

LIVE
Loading latest headlines…

Google Antigravity /swarm Prompts: 25 Best Prompts to Try in 2026

Google Antigravity changed the way developers talk to AI on 10 November 2026. Instead of one assistant answering one prompt, a single command — /swarm — now spins up a whole team of agents: a coordinator that plans the work, parallel workers that build it, and adversarial verifiers that test every change before it lands. The catch is that a team is only as good as its brief. A vague one-line prompt gives you a vague swarm, while a well-structured prompt turns Antigravity into a small engineering team that works while you watch the shared board.

This guide collects 25 copy-paste Google Antigravity /swarm prompts for coding, debugging, testing, documentation, research and everyday work. Each one is written for the way /swarm actually works — named workers, a coordinator brief, verifier ratios and model pinning — so you can paste them straight into the Antigravity app or CLI and get useful results on the first run.

What Is Google Antigravity /swarm?

Google Antigravity is Google's agent-first development environment, available as a desktop app, a command-line tool and IDE extensions. On 10 November 2026, alongside the general availability of Gemini 4 Carbon, Google added /swarm in preview: a slash command that turns one prompt into a coordinated team of agents working in parallel.

Here is how a swarm is organised. Your current conversation becomes the coordinator. It names the swarm, splits the task into pieces that do not collide — one worker per file or per package, for example — briefs each worker, judges what comes back and reports to you. It does not do the technical work itself. Each piece of work gets a named worker, such as @parser or @api-tests, running in its own isolated git worktree so two workers can never overwrite each other's files. The coordinator usually adds one verifier for every two to four workers. The verifier reads the diffs, runs the tests and reports problems back to the worker that wrote the code, which then fixes them. Google calls these adversarial verifiers, because their job is to find what is broken, not to agree with the worker.

Every agent posts to one shared, append-only message board, addressing each other with @mentions. Workers do not message each other privately. An agent with nothing to do parks at zero token cost and wakes up when another member mentions it. You can watch the whole conversation live in the Antigravity side pane, or open a full-screen board in the CLI with /swarm board or Alt+S.

Google's own guidance on models is specific: give the expensive thinking to Gemini 4 Carbon for the coordinator, architecture, security auditing and verification roles, and let faster, lighter models do the parallel edits. Carbon became generally available on the same day /swarm launched, and inside Antigravity it is limited to Google AI Ultra subscribers and businesses through Gemini for Business. /swarm itself is available on Google AI Pro and Google AI Ultra, in the Antigravity app and CLI. Google warns that a swarm uses quota much faster than a standard chat, because several agents are working at once — so brief tightly and keep the team small.

Google Research followed up on 13 November 2026 with results from /teamwork, a related system that organises multiple Gemini 4-based agents into long-running research and engineering workflows — human-supervised, with independent verifiers — tackling mathematical proofs, chemistry and major systems-engineering projects. /swarm is the hands-on, code-focused sibling you can run today; /teamwork is the long-horizon research pattern behind it. The prompting habits in this guide work for both, because both reward the same thing: a clear goal, named roles and a verifier that is allowed to say no.

How to Write a Great /swarm Prompt

Before the 25 prompts, here are the five rules that make all of them work. First, name the swarm and its goal in one sentence — the coordinator uses that sentence to split the work, so if it is vague the split will be vague too. Second, name every worker and give each one a single owner, such as one worker per file or per package; overlapping briefs are how two agents edit the same function at the same time. Third, ask for a verifier explicitly — one for every two to four workers — and tell it to run the tests and report failures to the worker, not to you. Fourth, pin the models: Carbon for the coordinator and verifier, a lighter model for the workers, unless the task needs deep reasoning everywhere. Fifth, state the definition of done: tests passing, no new warnings, a summary on the board. A swarm without a finish line keeps working until your quota runs out.

Every prompt below follows that shape. Replace the bracketed placeholders with your own project details, paste the whole block after /swarm, and let the coordinator take it from there.

25 Best Google Antigravity /swarm Prompts to Try in 2026

1. Coding and Feature Building Prompts

Prompt 1 — Build a complete feature end to end:

/swarm Build a user settings page for [project name] with a profile form, notification toggles and a password change section. Coordinator: split the work into @frontend for the React components, @api for the settings endpoints, and @tests for unit and integration tests. Add @verifier to review every diff and run the test suite. Use Gemini 4 Carbon for the coordinator and verifier, and a lighter model for the workers. Definition of done: all tests pass, the page works on mobile and desktop, and no existing routes break.

This is the classic first swarm. Three workers, one verifier, a clear finish line — and the coordinator's split by layer keeps the frontend and API work from colliding.

Prompt 2 — Add a new API endpoint properly:

/swarm Add a POST /api/invoices endpoint to [project name] that creates an invoice, validates the payload, stores it in the database and returns the new record. Coordinator: brief @api for the route and validation, @db for the schema and migration, and @docs for the OpenAPI entry. Add @verifier to check the validation edge cases and run the existing test suite. Pin Gemini 4 Carbon to the coordinator and verifier.

Validation is where single-agent coding most often slips. A verifier that is told to hunt edge cases — empty fields, negative amounts, duplicate submissions — catches what a lone agent waves through.

Prompt 3 — Scaffold a whole new project:

/swarm Scaffold a new [language/framework] project called [name] with authentication, a database layer, linting, formatting and a CI workflow. Coordinator: brief @setup for the project structure and tooling, @auth for login and session handling, and @ci for the pipeline. Add @verifier to confirm the app boots cleanly, the linter passes with zero warnings and the CI pipeline runs green. Report the folder structure on the board when finished.

Scaffolding is a natural swarm job because the pieces are independent by design. Ask for the folder structure in the final report so you can sanity-check the layout at a glance.

Prompt 4 — Build a dashboard from a data source:

/swarm Build an analytics dashboard for [project name] showing daily active users, signups and revenue over the last 30 days, pulling from [data source]. Coordinator: brief @data for the queries and aggregation, @charts for the visualisations, and @ui for the dashboard layout and filters. Add @verifier to check every number against a manual query and confirm the charts match the data. Definition of done: all three metrics are correct to the row, and the dashboard loads in under two seconds.

The verifier's job here is arithmetic, not style. Telling it to check numbers against a manual query turns a vague "check the dashboard" into a test it can actually run.

Prompt 5 — Migrate a feature to a new library:

/swarm Migrate the [feature] in [project name] from [old library] to [new library]. Coordinator: brief @migrate for the code changes, @tests for updating and adding tests, and @cleanup for removing the old dependency and dead code. Add @verifier to run the full test suite and confirm no imports of the old library remain. Keep the public API unchanged and list every breaking change on the board before finishing.

Migrations fail quietly when an old import survives in one forgotten file. The verifier's "no imports of the old library remain" instruction is a check a human would take an hour to do by hand.

2. Debugging and Code Review Prompts

Prompt 6 — Hunt down a production bug:

/swarm Investigate why [describe the bug: what happens, when, and the error message] in [project name]. Coordinator: brief @repro to reproduce the bug reliably, @trace to find the root cause in the code, and @fix to write the smallest correct fix. Add @verifier to confirm the reproduction fails before the fix and passes after it, and to run the full test suite. Do not change unrelated code.

The reproduce-before-fix discipline is what separates a real fix from a guess. If the swarm cannot reproduce it, the coordinator should say so on the board instead of patching blindly.

Prompt 7 — Full security audit of one module:

/swarm Audit the [module, e.g. authentication] code in [project name] for security issues. Coordinator: brief @auth-check for authentication and session handling, @input-check for injection and validation flaws, and @secrets-check for leaked keys and unsafe logging. Add @verifier to rank every finding by severity and confirm each one with a concrete code reference. Use Gemini 4 Carbon for the coordinator and verifier. Report findings in a table with file, line, severity and fix.

Carbon is Google's recommended model for security auditing, so pin it to the roles that need deep reasoning and let the workers gather the evidence.

Prompt 8 — Review a pull request properly:

/swarm Review pull request #[number] in [repository] as if you were a senior engineer. Coordinator: brief @logic for correctness and edge cases, @style for consistency with the codebase, and @tests for coverage of the new code. Add @verifier to check that every comment points to a real line and a real problem. Post the review as a summary with must-fix items first and nice-to-have items last.

A swarm review beats a single-pass review because the logic, style and test checks happen in parallel — and the verifier keeps the review honest by rejecting comments that do not point at real code.

Prompt 9 — Fix flaky tests:

/swarm Find and fix the flaky tests in [project or test folder]. Coordinator: brief @detect to run the suite five times and list every test that fails intermittently, @diagnose to find the cause of each failure, and @fix to repair them. Add @verifier to run the suite ten times after the fixes and confirm zero failures. Do not skip or delete any test without explaining why on the board.

Flaky tests are a perfect swarm task: detection is boring repetition, diagnosis needs reasoning, and the verifier's ten-run check is the only proof that matters.

Prompt 10 — Performance investigation:

/swarm Investigate why [page or endpoint] in [project name] takes [X seconds] to load. Coordinator: brief @profile to measure where the time goes, @queries to check database queries and indexes, and @frontend to check render-blocking work. Add @verifier to re-measure after every change and confirm the improvement with numbers. Target: under [target time], and list the three biggest wins on the board.

Ask for numbers, not adjectives. "Faster" is not a result; a before-and-after measurement from the verifier is.

3. Testing and Quality Prompts

Prompt 11 — Raise test coverage on a module:

/swarm Raise test coverage on the [module] in [project name] from [current %] to at least 85%. Coordinator: brief @coverage to find the untested lines and branches, @write for the new tests, and @edge for edge cases and error paths. Add @verifier to run the coverage report and confirm the target is met without weakening existing tests. Do not change production code to make tests pass.

The last sentence matters: without it, an agent under pressure will sometimes "fix" a test by changing the code it tests. The verifier exists to stop exactly that.

Prompt 12 — Write end-to-end tests for a user journey:

/swarm Write end-to-end tests for the [user journey, e.g. checkout] in [project name], covering the happy path, a failed payment, and an empty cart. Coordinator: brief @happy for the main flow, @errors for the failure cases, and @setup for the test data and fixtures. Add @verifier to run the full journey suite twice and confirm it is stable. Use the existing test framework and follow the patterns in [test folder].

Pointing the swarm at your existing test patterns stops it inventing a new style. Consistency is a feature when the next human has to maintain these tests.

Prompt 13 — Accessibility audit:

/swarm Audit [page or app] for accessibility issues against WCAG 2.2 AA. Coordinator: brief @keyboard for keyboard navigation and focus order, @contrast for colour contrast and text sizing, and @screenreader for labels, roles and alt text. Add @verifier to re-check every reported issue against the live page and rank them by impact. Report the findings in a table with page, issue, severity and fix.

Accessibility audits split cleanly by category, which is exactly the shape a swarm likes: three independent workers, one verifier, one table at the end.

Prompt 14 — Load-test a new endpoint:

/swarm Load-test the [endpoint] in [project name] at [number] requests per second for five minutes. Coordinator: brief @script for the load-test script, @run for executing it and collecting results, and @analyse for finding the bottleneck. Add @verifier to repeat the test after any fix and confirm the numbers. Report p50, p95 and p99 latency, error rate and the single biggest bottleneck.

Latency percentiles are the language of load testing. Asking for p50, p95 and p99 up front stops the swarm reporting a meaningless average.

4. Documentation and Refactoring Prompts

Prompt 15 — Document an undocumented codebase:

/swarm Write documentation for the [module or project] in [repository], which currently has almost none. Coordinator: brief @overview for the architecture and how the pieces fit together, @api for every public function and endpoint with examples, and @guides for a getting-started guide and common tasks. Add @verifier to check every code example in the docs actually runs and every link resolves. Write in clear, plain English and keep each page under 400 words.

The verifier's "every code example actually runs" instruction is the difference between documentation and fiction. Stale examples are worse than no examples.

Prompt 16 — Refactor a messy module safely:

/swarm Refactor the [module] in [project name] to remove duplication and split it into smaller, testable functions. Coordinator: brief @split for breaking the module apart, @dedupe for removing duplicated logic, and @tests for keeping coverage at or above its current level. Add @verifier to run the full test suite and confirm the public behaviour is unchanged. No new features, no behaviour changes, and list every renamed function on the board.

Refactoring without a behaviour-change ban is how a tidy-up becomes a rewrite. The verifier's job is to prove nothing changed except the shape of the code.

Prompt 17 — Update a project to a new framework version:

/swarm Upgrade [project name] from [framework] version [old] to version [new]. Coordinator: brief @deps for the dependency updates, @breaking for the breaking changes in the changelog, and @tests for fixing what the upgrade breaks. Add @verifier to run the full test suite and the linter, and to confirm the app boots and the main user flows work. List every breaking change handled, in a table, on the board.

Framework upgrades are changelog-driven work, and a swarm can read a changelog in parallel while the workers apply it. The table of breaking changes is your audit trail.

Prompt 18 — Clean up dead code across a repository:

/swarm Find and remove dead code in [repository]: unused functions, unreachable branches, unused imports and orphaned files. Coordinator: brief @scan for finding candidates, @check for confirming each one is genuinely unused, and @remove for deleting them safely. Add @verifier to run the full test suite and build after every batch of removals. Never remove code that is used by tests, configuration or scripts without flagging it on the board first.

Dead-code removal is dangerous without a checker, because "unused" is easy to get wrong. The two-step scan-then-check structure is what makes this swarm safe to run.

5. Research and Planning Prompts

Prompt 19 — Research a technology choice:

/swarm Research whether [project name] should use [option A] or [option B] for [purpose]. Coordinator: brief @research-a for the case for option A, @research-b for the case for option B, and @costs for pricing, maintenance burden and hiring implications. Add @verifier to check every claim against a real source and flag anything unverified. Report a comparison table and a recommendation with reasons, and list the sources used.

Two researchers arguing opposite sides is a better way to make a decision than one agent quietly picking its favourite. The verifier's source-checking role keeps the comparison honest.

Prompt 20 — Plan a product launch:

/swarm Plan the launch of [feature or product] for [date], covering engineering, marketing and support. Coordinator: brief @eng for the build and release checklist, @marketing for the announcement and content plan, and @support for the help articles and common questions. Add @verifier to check every date against the calendar and flag any dependency that is missing an owner. Report a single timeline with owners and deadlines.

Launch plans fail on missing owners and impossible dates. A verifier that checks dates and ownership turns a wish list into a plan you can actually run.

Prompt 21 — Competitor teardown:

/swarm Analyse the top three competitors to [product]: [competitor 1], [competitor 2] and [competitor 3]. Coordinator: brief one worker per competitor to cover pricing, key features and positioning, and @gaps to find the features none of them offer. Add @verifier to check every price and feature claim against the competitor's own site and flag anything unverified. Report a comparison table, the three biggest gaps, and the sources used.

Prices and feature lists go stale fast, so the verifier's source check is doing the most valuable work in this swarm. Never ship a teardown whose numbers nobody verified.

Prompt 22 — Break down a big idea into a roadmap:

/swarm Turn this idea into a three-phase roadmap: [describe the idea]. Coordinator: brief @phase1 for the minimum viable version, @phase2 for the improvements that follow, and @phase3 for the long-term vision. Add @verifier to check that every phase has a clear definition of done and that no phase depends on work from a later phase. Report the roadmap as a table with phase, scope, owner and success metric.

The verifier's dependency check is the whole point here: a roadmap where phase one secretly needs phase three is not a roadmap, it is a trap.

6. Everyday and Creative Prompts

Prompt 23 — Build a personal tool in one session:

/swarm Build a small web tool that [describe what it should do, e.g. converts meeting notes into a task list]. Coordinator: brief @ui for the interface, @logic for the core function, and @polish for error handling and a clean empty state. Add @verifier to test it with five realistic inputs and confirm the output is correct for each one. Keep it to a single page, no backend, no login, and report the file list on the board.

Small tools are the best way to learn /swarm, because the feedback loop is minutes long and the verifier's five-input test is easy to check by hand afterwards.

Prompt 24 — Turn a messy draft into a finished article:

/swarm Turn my draft below into a finished article for [audience]. Coordinator: brief @structure for the headings and flow, @rewrite for clear, plain-English prose, and @factcheck for checking every claim in the draft. Add @verifier to confirm the final article has no unsupported claims and reads well from start to finish. Draft: [paste your draft]. Keep the author's voice and cut anything that does not serve the reader.

This is a writing swarm, not a coding one, and it works because the roles are genuinely different jobs. The fact-checker is the role most people skip — and the one that matters most.

Prompt 25 — Plan a week of content:

/swarm Plan a week of [platform] content about [topic] for [audience]. Coordinator: brief @ideas for seven post ideas with hooks, @drafts for the first draft of each post, and @schedule for the best posting times and a checklist. Add @verifier to check every factual claim in the drafts and confirm the hooks match the content. Report a table with day, topic, hook and first line, and flag any claim that could not be verified.

Content planning is the everyday use case that shows /swarm is not only for code. Seven posts, three workers, one verifier — and a table you can start publishing from the same afternoon.

/swarm vs /teamwork vs Subagents: Which Prompt Style Fits?

Antigravity now offers four ways to put several agents on one task — subagents, /boost, /swarm and /teamwork — and the prompt style changes with each. Subagents suit a single well-defined side task handed off from your main conversation; the prompt is short because the context is already there. /boost is for a quick parallel push on one job. /swarm is for work that splits into parallel pieces with a shared board and a verifier — the prompts in this guide, with named workers and a definition of done. /teamwork is for long-horizon research and engineering where the team runs for hours under human supervision, with independent verifiers checking proofs, chemistry or systems work; the prompt there is a research brief, not a task list. The rule of thumb: if the work has one owner and one answer, use a subagent; if it has several independent pieces and a quality bar, use /swarm; if it runs for hours and needs verification you would trust in a paper, use /teamwork.

Common /swarm Prompt Mistakes to Avoid

The most common mistake is giving the swarm a goal without a finish line. "Improve the code" has no end, so the swarm keeps working until the quota warning appears. Always state the definition of done. The second mistake is overlapping briefs — two workers told to "fix the API" will edit the same files in their own worktrees and produce a merge nobody enjoys. Give each worker one owner and one boundary. The third is skipping the verifier to save quota; that is exactly backwards, because the verifier is the cheapest insurance in the whole swarm. The fourth is pinning Carbon to everything: Google's own guidance is Carbon for the coordinator and verifier, lighter models for the workers, because Carbon thinks longer and costs more. The fifth is huge teams for small jobs: a three-worker swarm with one verifier handles most tasks, and Google publishes no maximum team size, but every extra agent burns quota faster. Start small, watch the board, and only add workers when the coordinator's split genuinely needs them.

What Happens Next for Antigravity Agent Teams

/swarm is still in preview, so expect the behaviour and access rules to change — Google has said as much, and new versions roll out gradually. The direction of travel is clear from the November announcements: Gemini 4 Hydrogen, launched on 12 November, brings faster everyday agentic work to the Gemini app and Search, while Carbon handles the deep reasoning in Antigravity; Orchestrator, the new Antigravity feature, dynamically switches between models during a session depending on the task. The November 13 Google Research results on /teamwork point further ahead, toward agent teams that can be trusted with mathematical proofs and chemistry, not just code. For now, the practical move is simple: learn the prompting shape in this guide on small jobs, keep your teams small, and let the verifier earn your trust one green test suite at a time.

Final Thoughts

A swarm is not a magic button. It is a team, and teams need a brief worth following. The 25 prompts above all share the same skeleton — a named goal, named workers with single owners, a verifier with real authority, pinned models and a definition of done — because that skeleton is what turns parallel agents from a curiosity into a reliable way to ship work. Copy one, replace the brackets, watch the board, and read the verifier's report before you merge anything. The best prompt in the list is the one you adapt to your own project today.

#GoogleAntigravity #AISwarm #Gemini4Carbon #AIPrompts #AIAgents #AICoding #NextGenAIVibe

Sponsored

Comments (0)

Blog Archive

Powered by Blogger.

How to Use AnythingLLM in 2026: 7 Steps

AnythingLLM is an all-in-one AI application for turning documents and other resources into context that a large language model can use dur...