Compare
Bernstein vs Agy: quick decision guide
Antigravity CLI (``agy``) adapter.
Page built on 2026-08-10 from data/adapters-meta.json. Every claim below links to its primary source.
Install both
Agy
No install command recorded in the bernstein adapter source as of 2026-08-10.
Bernstein
pipx install bernsteinApache-2.0. Deterministic Python scheduler.
Feature matrix
| Capability | Agy | Bernstein |
|---|---|---|
| Install method | Not recorded | pipx install bernstein |
| License | Not recorded | Apache-2.0 |
| Authentication | Not recorded | Per-agent credential scoping (no shared key) |
| Multi-agent orchestration | One agent in a terminal | Agy plus 40+ other adapters in parallel worktrees |
| MCP support | Not measured | Yes |
| Parallel-safe in worktrees | Not measured | Yes (designed around git worktrees) |
| HMAC-chained audit log | No | Yes (RFC 2104 SHA-256 chain in .sdd/) |
| Deterministic scheduler | Not applicable (single-agent CLI) | Yes (Deterministic Python scheduler) |
Adapter source: src/bernstein/adapters/agy.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.
- Bernstein ships a Agy adapter at src/bernstein/adapters/agy.py that wraps the upstream CLI as one of 42 routable agents. [source: bernstein adapter source, as of 2026-08-10]
- 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]
- 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 Agy fits in Bernstein
Bernstein registers Agy under the slug "agy" and the registry name "agy". The adapter source lives at src/bernstein/adapters/agy.py in the bernstein repo and was last touched at build time 2026-08-10. The Agy adapter file is 303 lines and 11,784 bytes long, fingerprinted 49a84edf239cdc52 (first 16 hex chars of SHA-256). No upstream GitHub repository is recorded in the bernstein adapter for Agy; refer to the upstream vendor's documentation when auditing. The bernstein adapter file for Agy does not yet carry a "Last verified against upstream" line; this means the adapter still tracks an unpinned upstream binary. Bernstein routes tasks to Agy 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 Agy adapter, as it stands in the bernstein repo. Punctuation is normalised for the web; the wording is the author's. Length: 2313 characters.
Antigravity CLI (``agy``) adapter. ``agy`` is the successor CLI for the hosted backend that the legacy ``gemini`` binary served on the free / AI Pro / Ultra path; that backend was discontinued for non-enterprise users in June 2026. The gemini adapter remains registered for enterprise and API-key operators, so the two lanes stay separate: * ``agy`` -- this adapter. Single closed-source binary, headless ``-p``/``--print`` invocation, terminal sandbox pinned, permission prompts auto-approved for unattended runs. * ``gemini`` -- the dual-binary adapter for the legacy ``gemini`` / transitional ``antigravity`` binaries (enterprise / API-key lane). Verified against Antigravity CLI 1.0.0. The upstream surface the adapter relies on (and that the conformance contract pins): * ``-p`` / ``--print`` -- run a single prompt non-interactively and print the response (the headless harness path). * ``--sandbox`` -- run with terminal restrictions enabled; pinned on every spawn so unattended runs stay inside the sandbox. * ``--dangerously-skip-permissions`` -- auto-approve tool permission requests; required for unattended operation. * ``--print-timeout`` -- upstream-side wait bound for print mode; the adapter maps ``timeout_seconds`` onto it so the CLI's own timeout agrees with Bernstein's watchdog. * ``--conversation <id>`` -- resume a previous conversation by id (upstream-minted; native resume is not wired yet, so the strategy matrix declares resume as unsupported and the orchestrator falls back to fresh sessions with scratchpad reinjection). The CLI accepts ``--model`` for explicit model selection. Bernstein's ``default`` sentinel omits that flag so zero-config runs retain the CLI's server-side default. Binary discovery is a two-step cascade: 1. The operator override ``BERNSTEIN_AGY_BINARY`` wins when set (and must resolve on ``PATH``, regardless of ``strict`` mode). 2. Otherwise the ``agy`` binary is used. ``strict=True`` (doctor / ``bernstein adapters check``) raises :class:`AgyBinaryNotInstalledError` when nothing resolves; ``strict=False`` (spawn path, default) returns the default binary name so the downstream :func:`subprocess.Popen` surfaces the natural ``FileNotFoundError`` -- the codex / aider posture, which also keeps tests that mock ``subprocess`` from tripping on eager discovery.Adapter telemetry
| Registry name | agy |
|---|---|
| Adapter class | Agy |
| Source file | src/bernstein/adapters/agy.py |
| Source file size | 303 lines, 11,784 bytes |
| Source SHA-256 | 49a84edf239cdc52794ea14c0c0395b42423d0521b8a034ac525fe567c0cf3c9 |
| Category bucket | openai-family |
| Upstream repo | Not derivable from adapter source |
| Upstream homepage | Not recorded |
| Last verified upstream | No "Last verified" line in adapter source |
| Operator-curated overlay | No (programmatic page) |
When to pick which
Choose Agy
Reach for Agy 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 Agy 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 Agy?
No. Bernstein wraps Agy as one of 40+ CLI adapters and routes tasks to it based on per-task pass-rate history. Agy keeps running unchanged; Bernstein decides when it gets work.
Can I run Agy 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.