Skip to main content

Compare

Bernstein vs Gemini: quick decision guide

Google Gemini / Antigravity CLI adapter.

Page built on 2026-08-10 from data/adapters-meta.json. Every claim below links to its primary source.

Install both

Gemini

No install command recorded in the bernstein adapter source as of 2026-08-10.

Bernstein

pipx install bernstein

Apache-2.0. Deterministic Python scheduler.

Feature matrix

CapabilityGeminiBernstein
Install methodNot recordedpipx install bernstein
LicenseNot recordedApache-2.0
AuthenticationNot recordedPer-agent credential scoping (no shared key)
Multi-agent orchestrationOne agent in a terminalGemini plus 40+ other adapters in parallel worktrees
MCP supportNot measuredYes
Parallel-safe in worktreesNot measuredYes (designed around git worktrees)
HMAC-chained audit logNoYes (RFC 2104 SHA-256 chain in .sdd/)
Deterministic schedulerNot applicable (single-agent CLI)Yes (Deterministic Python scheduler)

Adapter source: src/bernstein/adapters/gemini.py

Verifiable facts

The brief for this surface requires at least three facts that a reader can verify against a primary source. The list below is built from the bernstein adapter source and, when available, the upstream project's own pages.

  1. Bernstein ships a Gemini adapter at src/bernstein/adapters/gemini.py that wraps the upstream CLI as one of 42 routable agents. [source: bernstein adapter source, as of 2026-08-10]
  2. Bernstein is an open-source Multi-agent orchestrator licensed Apache-2.0, with a deterministic Python scheduler that routes work across CLI agents in parallel git worktrees. [source: bernstein repo, as of 2026-08-10]
  3. Bernstein records lineage and a replay journal on every run; with the audit log enabled it also writes an HMAC-SHA256 chained record under .sdd/ that lets a reviewer replay every routing and quality-gate decision. [source: bernstein repo, as of 2026-08-10]

Where Gemini fits in Bernstein

Bernstein registers Gemini under the slug "antigravity" and the registry name "antigravity". The adapter source lives at src/bernstein/adapters/gemini.py in the bernstein repo and was last touched at build time 2026-08-10. The Gemini adapter file is 361 lines and 13,591 bytes long, fingerprinted 8241cb35d741d169 (first 16 hex chars of SHA-256). No upstream GitHub repository is recorded in the bernstein adapter for Gemini; refer to the upstream vendor's documentation when auditing. The bernstein adapter file for Gemini does not yet carry a "Last verified against upstream" line; this means the adapter still tracks an unpinned upstream binary. Bernstein routes tasks to Gemini when its pass rate on similar work clears the configured threshold, otherwise the deterministic Python scheduler picks a different adapter from the 40+ adapter catalog.

Adapter source excerpt

The module docstring of the Gemini adapter, as it stands in the bernstein repo. Punctuation is normalised for the web; the wording is the author's. Length: 1738 characters.

Google Gemini / Antigravity CLI adapter. The upstream CLI is changing binary names ahead of a deprecation date: the legacy ``gemini`` binary stops serving free / AI Pro / Ultra subscribers on 2026-06-18; the replacement ``antigravity`` binary uses the same model set and the same ``--output-format`` semantics. Enterprise customers retain the legacy binary via paid API keys. The adapter is dual-binary aware. At spawn time it discovers which binary is on ``PATH`` using a deterministic cascade defined by ``_DISCOVERY_CASCADE``: 1. The operator override ``BERNSTEIN_GEMINI_BINARY`` wins when set (and must resolve on ``PATH``, regardless of ``strict`` mode). 2. Otherwise ``antigravity`` is preferred. 3. The legacy ``gemini`` binary is used as a fallback. 4. If neither resolves, behavior depends on the ``strict`` flag passed to :func:`resolve_google_cli_binary`: - ``strict=True`` (used by ``bernstein adapters check`` / doctor): the adapter raises :class:`BinaryNotInstalledError`. - ``strict=False`` (default, used by :meth:`GeminiAdapter.spawn`): the resolver returns the first cascade entry as a fallback, letting downstream :func:`subprocess.Popen` raise the natural ``FileNotFoundError`` on actual invocation. This matches the codex / aider adapter posture and keeps tests that mock ``subprocess`` from tripping on eager discovery. The adapter contract (flags, env-isolation allow-list, sandbox profile, rate-limit meter, network policy) is unchanged: only the binary name and the discovery step differ. Recommended models (identical on both binaries): ``gemini-3.1-pro`` (highest reasoning), ``gemini-3-flash`` (default in the Gemini app, Pro-grade reasoning at Flash speed), or ``gemini-3.1-flash-lite`` for the cheapest tier.

Adapter telemetry

Registry nameantigravity
Adapter classGemini
Source filesrc/bernstein/adapters/gemini.py
Source file size361 lines, 13,591 bytes
Source SHA-2568241cb35d741d169fccc9d5c0e00c69d1bc1c4a1499202e3489f24e1165b2e58
Category bucketopenai-family
Upstream repoNot derivable from adapter source
Upstream homepageNot recorded
Last verified upstreamNo "Last verified" line in adapter source
Operator-curated overlayNo (programmatic page)

When to pick which

Choose Gemini

Reach for Gemini when the work is a single thread that fits one agent: in a single-process terminal session, designed for single-instance use per repo. Auth model is configured per upstream docs. You skip the orchestrator round-trip and get the smallest possible surface between you and the model.

Choose Bernstein

Wrap Gemini under Bernstein when the goal splits into parallel tasks, when you want an HMAC-chained audit log on every routing decision, or when a deterministic Python scheduler (no LLM picking who runs what) is a hard requirement. Bernstein also runs Claude, Gemini, and Aider against the same plan so an OpenAI miss is caught by a cross-model verifier.

FAQ

Does Bernstein replace Gemini?

No. Bernstein wraps Gemini as one of 40+ CLI adapters and routes tasks to it based on per-task pass-rate history. Gemini keeps running unchanged; Bernstein decides when it gets work.

Can I run Gemini alongside other agents in the same repo?

Yes. Each agent runs in its own git worktree under .sdd/worktrees/{session_id}, so file edits never collide. Bernstein merges results back to the trunk only after the configured quality gates (lint, types, tests) pass.

Is this comparison page handwritten?

No. The template is fixed; every fact and every link is pulled from the bernstein adapter source in the master branch and (when available) the upstream project's own pages. The data extractor lives at scripts/gen-compare-data.mjs. No LLM writes the prose.