agent-council 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -4,7 +4,7 @@ Run one prompt through several AI coding agents at once, against your
4
4
  own project, and get two things back: a **consolidated report** that is
5
5
  better than any single agent's, and a **head-to-head comparison** of the
6
6
  models and providers behind the agents, measured on speed, token usage,
7
- cost, and quality.
7
+ estimated cost, and quality.
8
8
 
9
9
  agent-council runs the **same analytical prompt** through each agent,
10
10
  under the coding-agent harness each one names: the
@@ -13,7 +13,10 @@ models; [OpenCode](https://opencode.ai/docs/cli), likewise for any
13
13
  provider's; [Claude Code](https://code.claude.com/docs), for Anthropic's,
14
14
  billed however your `claude` login is; or
15
15
  [Codex](https://developers.openai.com/codex/cli), for OpenAI's, billed
16
- however your `codex` login is. The agents can use any mix of
16
+ however your `codex` login is; or
17
+ [Google Antigravity](https://antigravity.google/docs/getting-started)
18
+ (`agy`), billed however your `agy` login is (Google AI subscription,
19
+ Gemini API key, or Vertex AI). The agents can use any mix of
17
20
  harnesses, providers, and models, including the same model more than
18
21
  once, or under each harness.
19
22
 
@@ -37,6 +40,14 @@ dataset for comparing models and providers on your own work.
37
40
 
38
41
  **New to Ruby? [Install agent-council from scratch](INSTALL.md)**
39
42
 
43
+ > **Read [`CAUTIONS.md`](CAUTIONS.md) before running on sensitive code or
44
+ > pay-per-token accounts.** agent-council is a process orchestrator, not a
45
+ > sandbox, security boundary, spend cap, or billing auditor: it does not
46
+ > sandbox agents, they get shell access and send what they read to
47
+ > configured providers, you are responsible for each harness's security
48
+ > and billing, and reported token and cost figures are rough estimates
49
+ > that can miss subagents, hidden calls, and real pricing.
50
+
40
51
  ## Why use it
41
52
 
42
53
  ### A council of second opinions
@@ -62,12 +73,14 @@ harnesses, in the harnesses, whose tools and loaded context differ).
62
73
  - **Speed.** Every agent's wall-clock duration, side by side. Find out
63
74
  which models answer in two minutes and which take twenty, and whether
64
75
  the wait buys anything.
65
- - **Tokens and cost.** Input, cached input, and output tokens, and an
66
- estimated dollar cost where the harness can price the model, per agent
67
- and in total. See whether the model that costs ten times as much finds
68
- ten times as much. The cost is an estimate that can be far from what
69
- you pay, in either direction; see
70
- [How far to trust the cost](#how-far-to-trust-the-cost).
76
+ - **Tokens and estimated cost.** Input, cached input, and output tokens,
77
+ and an estimated dollar cost where the harness can price the model, per
78
+ agent and in total. Useful for rough order-of-magnitude comparisons, not
79
+ as a bill or exact benchmark: estimates can be far from what you
80
+ actually pay or consume, in either direction (subagents, hidden calls,
81
+ subscriptions, price tables, and more); see
82
+ [How far to trust the cost](#how-far-to-trust-the-cost) and
83
+ [`CAUTIONS.md`](CAUTIONS.md#token-counts-and-cost-estimates-why-they-are-unreliable).
71
84
  - **Quality.** The reports sit side by side, labeled by source. The
72
85
  consolidator shows which findings each model shared with the others,
73
86
  which only it found, and where models contradicted each other, and its
@@ -120,7 +133,7 @@ agent-council can help with any question about a set of readable files
120
133
  Weigh two costs as well: a council costs several times what one agent
121
134
  costs and takes as long as its slowest agent plus the consolidation, and
122
135
  whatever the agents read goes to their providers (see
123
- [Safety and privacy](#safety-and-privacy)).
136
+ [`CAUTIONS.md`](CAUTIONS.md) and [Safety and privacy](#safety-and-privacy)).
124
137
 
125
138
  For a catalog of uses, from code review to choosing models, see
126
139
  [`USE_CASES.md`](USE_CASES.md).
@@ -140,7 +153,7 @@ in detail.
140
153
  [`pi` CLI](https://github.com/earendil-works/pi) (`pi --version`). See
141
154
  [Prerequisites](#prerequisites), or [INSTALL.md](INSTALL.md) if you
142
155
  need to install Ruby too. These steps run every agent under pi; to
143
- run agents under OpenCode, Claude Code, or Codex as well, or instead (then
156
+ run agents under OpenCode, Claude Code, Codex, or Antigravity as well, or instead (then
144
157
  without pi), see [Choosing a harness](#choosing-a-harness).
145
158
  2. **Set up credentials for at least one provider in pi** (see
146
159
  [pi's documentation][pi-docs]), then list the models available to pi
@@ -194,7 +207,8 @@ in detail.
194
207
 
195
208
  This calls each configured model at your providers' usual rates. Any
196
209
  files an agent reads, and the output of any commands it runs, go to
197
- that agent's provider; see [Safety and privacy](#safety-and-privacy).
210
+ that agent's provider; see [`CAUTIONS.md`](CAUTIONS.md) and
211
+ [Safety and privacy](#safety-and-privacy).
198
212
 
199
213
  Each model's answer is saved as a Markdown file under
200
214
  `agent-council-reports/<yyyy-mm-dd>/<hh-mm-ss>/reviews/`, and the
@@ -233,9 +247,14 @@ consolidator, see
233
247
  (`opencode --version`; tested with 1.19.6; 1.2.4 ignores
234
248
  `OPENCODE_DB`, so its agents' sessions would be saved to your
235
249
  history), with credentials for at least one provider
236
- (`opencode auth login`).
237
-
238
- agent-council runs the `pi`, `opencode`, `claude`, and `codex` executables found on its
250
+ (`opencode auth login`);
251
+ - for Google Antigravity: the [`agy` CLI](https://antigravity.google/docs/getting-started)
252
+ (`agy --version`; tested with 1.5.22, and earlier versions may lack
253
+ flags agent-council passes), signed in interactively
254
+ beforehand (e.g. a Google AI subscription, or API key / Vertex AI
255
+ configured in `agy`).
256
+
257
+ agent-council runs the `pi`, `opencode`, `claude`, `codex`, and `agy` executables found on its
239
258
  `PATH`, not your shell's aliases or functions of those names. If yours
240
259
  add something, such as an environment variable or a directory on
241
260
  `PATH`, set it in the environment you run agent-council from (for
@@ -247,7 +266,7 @@ consolidator, see
247
266
  ([INSTALL.md](INSTALL.md) has the steps). Windows drives are reachable
248
267
  at `/mnt/c/...`, but file access there is much slower than in the Linux
249
268
  filesystem (e.g. `~/projects`). Set up pi's provider credentials (and
250
- log in to OpenCode, Claude Code, or Codex) inside WSL too; WSL doesn't share them
269
+ log in to OpenCode, Claude Code, Codex, or Antigravity) inside WSL too; WSL doesn't share them
251
270
  with Windows.
252
271
 
253
272
  ## Installation
@@ -268,15 +287,16 @@ to write one. To work on agent-council itself, see
268
287
 
269
288
  ### Finding the installed documentation and examples
270
289
 
271
- The installed gem contains this README, [`INSTALL.md`](INSTALL.md),
272
- [`USE_CASES.md`](USE_CASES.md), [`DESIGN.md`](DESIGN.md),
273
- [`RUNAWAY_AGENTS.md`](RUNAWAY_AGENTS.md), `RELEASE_NOTES.md`, and the sample prompts and configs under
290
+ The installed gem contains this README, [`CAUTIONS.md`](CAUTIONS.md),
291
+ [`INSTALL.md`](INSTALL.md), [`USE_CASES.md`](USE_CASES.md),
292
+ [`DESIGN.md`](DESIGN.md), [`RUNAWAY_AGENTS.md`](RUNAWAY_AGENTS.md),
293
+ `RELEASE_NOTES.md`, and the sample prompts and configs under
274
294
  `examples/`, all matching the installed version. The help
275
295
  output shows where they are for the copy of `agent-council` you are
276
296
  actually running:
277
297
 
278
298
  ```bash
279
- agent-council -h # see "Documentation (Local)" and "Examples (Local)"
299
+ agent-council -h # see "Documentation (Local)", "Cautions (Local)", and "Examples (Local)"
280
300
  ```
281
301
 
282
302
  To get that copy's directory in a shell variable, used by the examples
@@ -289,7 +309,7 @@ AC_HOME=$(agent-council --gem-dir)
289
309
  ## Discovering and configuring models
290
310
 
291
311
  Each harness has its own way to find the models it can use. pi,
292
- OpenCode, and Codex list theirs:
312
+ OpenCode, Codex, and Antigravity list theirs:
293
313
 
294
314
  ```bash
295
315
  # pi: the models of the providers you have credentials for
@@ -302,6 +322,9 @@ opencode models --refresh # refresh its model catalog, then list
302
322
 
303
323
  # Codex: its model names (slugs), leaving out the ones it marks hidden
304
324
  codex debug models | jq -r '.models[] | select(.visibility != "hide") | .slug'
325
+
326
+ # Antigravity: its model slugs (effort is baked into the slug)
327
+ agy models
305
328
  ```
306
329
 
307
330
  - **pi.** An entry's `provider` and `model` are a listed model's
@@ -328,6 +351,11 @@ codex debug models | jq -r '.models[] | select(.visibility != "hide") | .slug'
328
351
  a full model name; Claude Code's [Model
329
352
  configuration](https://code.claude.com/docs/en/model-config) page
330
353
  lists the aliases.
354
+ - **Antigravity.** `agy models` prints model slugs such as
355
+ `gemini-4-neon-high` or `claude-sonnet-5-5-high` (reasoning effort is
356
+ part of the slug). `provider` is label-only, as with Claude Code and
357
+ Codex (use `google`, or `anthropic`/`openai` for non-Gemini models
358
+ served through Antigravity).
331
359
 
332
360
  Edit the config to choose the ensemble. The config is the optional second
333
361
  argument; if omitted, `./agent-council.yml` in the current directory is used
@@ -363,7 +391,7 @@ agent, and the consolidator, needs nonblank string `harness`,
363
391
  `provider`, and `model` values (quote any value YAML would read as
364
392
  something else, such as a number, a date, or `yes`). None has a default;
365
393
  a 0.1.0 config needs `harness: pi` added to each entry. `harness` names
366
- the harness the entry runs under, `pi`, `claude`, `codex`, or `opencode`; an unknown name is
394
+ the harness the entry runs under, `pi`, `claude`, `codex`, `opencode`, or `agy`; an unknown name is
367
395
  rejected at startup (with `--consolidate`, only the consolidator's,
368
396
  since no analysts run). Other keys are ignored. A config error lists
369
397
  every bad entry, named as in `'agents' entry #2` or `'consolidator'`,
@@ -371,7 +399,8 @@ with every problem it has.
371
399
 
372
400
  More samples are in [`examples/configs/`](examples/configs/), which is
373
401
  included in the installed gem; `mixed-harness.yml` mixes pi, Claude
374
- Code, Codex, and OpenCode agents. For scripts and agents,
402
+ Code, Codex, OpenCode, and Antigravity agents, and `antigravity.yml`
403
+ shows an Antigravity-only council. For scripts and agents,
375
404
  [`pi-models`](#occasional-utility-pi-models) lists the models in
376
405
  machine-readable forms.
377
406
 
@@ -490,7 +519,9 @@ agents:
490
519
  including its file-editing tool (`apply_patch`) and its subagent
491
520
  tools: this Codex version has no way to withhold them. (pi and Claude
492
521
  Code agents get only read and shell tools, plus MCP tools, as
493
- described here, and OpenCode agents lose their file-editing tools.)
522
+ described here, OpenCode agents lose their file-editing tools, and
523
+ Antigravity agents deny `write_file(*)`, `execute_url(*)`, and
524
+ `download_url(*)`.)
494
525
  The subagent tools fail, though, since agent-council runs Codex with
495
526
  `--ephemeral` (no session files), which subagents need, so a Codex
496
527
  agent works alone.
@@ -503,7 +534,7 @@ agents:
503
534
  warning, recorded the same way as Claude Code's refused calls.
504
535
  - **Outside a git repository.** Codex normally refuses to run outside one
505
536
  it trusts; agent-council passes `--skip-git-repo-check`, so Codex agents
506
- run wherever pi, Claude Code, and OpenCode agents do.
537
+ run wherever pi, Claude Code, OpenCode, and Antigravity agents do.
507
538
  - **Warnings.** Errors Codex reports without failing the agent (such as
508
539
  missing metadata for a model name) are printed as one warning, and
509
540
  failed MCP tool calls (such as those refused for lack of approval) as
@@ -550,7 +581,8 @@ agents:
550
581
  can write files regardless, as under every harness.
551
582
  - **No session history.** Each agent's session goes to a database in
552
583
  its scratch directory (`OPENCODE_DB`), deleted afterward, so it isn't
553
- added to your history, as the other harnesses' sessions aren't.
584
+ added to your history (pi, Claude Code, and Codex save no session
585
+ either; Antigravity is the exception).
554
586
  Snapshots (OpenCode's undo) are turned off, so a run doesn't copy the
555
587
  project's files, untracked ones included, into OpenCode's data
556
588
  directory. OpenCode still writes its logs there.
@@ -569,6 +601,61 @@ agents:
569
601
  analyzed project has one, OpenCode writes a `.gitignore` there, as an
570
602
  interactive session would.
571
603
 
604
+ An entry with `harness: agy` runs under
605
+ [Google Antigravity](https://antigravity.google/docs/getting-started)
606
+ (`agy`), using its NDJSON stream-json input/output mode:
607
+
608
+ ```yaml
609
+ agents:
610
+ - harness: agy
611
+ provider: google
612
+ model: gemini-4-neon-high
613
+ - harness: agy
614
+ provider: anthropic
615
+ model: claude-sonnet-5-5-high
616
+ ```
617
+
618
+ - **Provider and model.** `agy` takes only `--model` (a slug from
619
+ `agy models`); `provider` only labels the agent in tables and
620
+ filenames.
621
+ - **Authentication, billing, and quotas.** Authentication and billing
622
+ are left to `agy`: an agent uses whatever account or provider `agy`
623
+ would at your terminal (a personal Google AI subscription, a Gemini
624
+ API key when `modelProvider: "gemini"` is set in `settings.json`, or
625
+ Vertex AI when `AGY_ADC_AUTH=true`). Sign in interactively before
626
+ running headless councils (under WSL or SSH, inside that environment)
627
+ so concurrent agents do not stall waiting for OAuth. All concurrent
628
+ `agy` agents share your subscription's weekly and 5-hour quota windows
629
+ per model group (`agy usage`), and if `useG1Credits` is enabled, runs
630
+ past quota can spend purchased AI credits with no dollar figure shown.
631
+ Like Codex, `agy` reports tokens but no dollar cost, so Antigravity
632
+ agents are counted as unknown-cost runs.
633
+ - **Context and permissions.** Agents load your `agy` settings, global
634
+ and workspace rules (`AGENTS.md`, `GEMINI.md`, `.agents/rules/`),
635
+ hooks (`.agents/hooks.json`), skills (prompt-level skill expansion is
636
+ disabled by `--disable-slash-commands`), plugins, and MCP servers as an
637
+ interactive session would (subject to `agy`'s workspace trust rules).
638
+ Session-only `--settings` merges `permissions.deny` for `write_file(*)`,
639
+ `execute_url(*)`, and `download_url(*)` (to block file-editing tools,
640
+ browser actions, and direct URL downloads while keeping allow rules for
641
+ other actions such as MCP servers). `agent-council` does not pass
642
+ `--sandbox` or `--mode`, so shell commands stay governed by your `agy`
643
+ settings (`$TMPDIR` is writable from the shell, while file tools are
644
+ read-only). Tool calls that require approval in headless mode (such as
645
+ MCP tools without an allow rule, or commands under an `ask` rule) are
646
+ soft-denied and surfaced as warnings.
647
+ - **Scaffolding.** `agy` has no system-prompt flag, so the shared
648
+ read-only scaffolding is prepended to the user message sent on stdin.
649
+ `--disable-slash-commands` disables slash command and prompt-level
650
+ skill expansion in print mode.
651
+ - **Sessions persist on disk.** `agy` has no ephemeral flag, so each
652
+ agent saves a conversation database under
653
+ `~/.gemini/antigravity-cli/conversations/` (containing the prompt and
654
+ report). Use `agy conversations clean` to reclaim space.
655
+ - **Subagents.** Subagent tools cannot be disabled via CLI flags; as
656
+ with OpenCode, a subagent's token usage may not appear in its parent's
657
+ usage totals.
658
+
572
659
  ## Running
573
660
 
574
661
  ```bash
@@ -720,18 +807,18 @@ Finished Agents:
720
807
  ✓ 00:03:45 #1 deepseek / deepseek-flash
721
808
 
722
809
  Reviews (in agent-council-reports/2026-11-18/22-46-15/reviews):
723
- Ok Duration Agent In Cached Out Cost
724
- ✓ 00:03:45 #1 deepseek / deepseek-flash 1.1M 1.1M 29.4k $0.05
725
- ✓ 00:02:42 #2 deepseek / deepseek-flash 967.2k 924.8k 22.8k $0.05
726
- ✓ 00:01:53 #3 openrouter / deepseek/deepseek-v4.1-flash-1017 1.4M 1.4M 30.0k $0.06
727
- ✓ 00:02:31 #4 openrouter / deepseek/deepseek-v4.1-flash-1017 1.4M 1.3M 25.6k $0.02
810
+ Ok Duration Agent In Cached Out Est. Cost
811
+ ✓ 00:03:45 #1 deepseek / deepseek-flash 1.1M 1.1M 29.4k $0.05
812
+ ✓ 00:02:42 #2 deepseek / deepseek-flash 967.2k 924.8k 22.8k $0.05
813
+ ✓ 00:01:53 #3 openrouter / deepseek/deepseek-v4.1-flash-1017 1.4M 1.4M 30.0k $0.06
814
+ ✓ 00:02:31 #4 openrouter / deepseek/deepseek-v4.1-flash-1017 1.4M 1.3M 25.6k $0.02
728
815
 
729
816
  --- Reviews complete (4/4 succeeded; 4.9M in (4.7M cached) / 107.9k out, $0.18) ---
730
817
 
731
818
  Consolidation Report (in agent-council-reports/2026-11-18/22-46-15):
732
819
  - pid 48390 anthropic / claude-sonnet-5-5
733
- Ok Duration Agent In Cached Out Cost
734
- ✓ 00:00:17 anthropic / claude-sonnet-5-5 11.7k 0 2.2k $0.05
820
+ Ok Duration Agent In Cached Out Est. Cost
821
+ ✓ 00:00:17 anthropic / claude-sonnet-5-5 11.7k 0 2.2k $0.05
735
822
  ```
736
823
 
737
824
  Each agent gets a line under `Started Agents:` as it starts, with its
@@ -771,7 +858,7 @@ Ctrl-C (or SIGTERM, SIGHUP, or SIGQUIT) stops the run, keeping reports
771
858
  already written:
772
859
 
773
860
  - Running agents, the consolidator included, get SIGTERM (pi, Claude
774
- Code, and Codex then also stop the commands they started; OpenCode
861
+ Code, Codex, and Antigravity then also stop the commands they started; OpenCode
775
862
  doesn't, and didn't exit within the 5 seconds in a check with 1.19.6)
776
863
  and a shared 5 seconds to exit before
777
864
  they are killed. A killed agent can't stop the commands it started, so
@@ -954,7 +1041,7 @@ agent-council-reports/
954
1041
  `<agent-number>`, and, if the report was split, ends in `_findings` or `_meta` before `.md`); `<hh-mm-ss>` includes the run dir's suffix, if any,
955
1042
  and `<provider>` and `<model>` are sanitized like the query slug below,
956
1043
  but keep their case. `<harness>` is the agent's (or consolidator's)
957
- `harness` config value, `pi`, `claude`, `codex`, or `opencode` (see
1044
+ `harness` config value, `pi`, `claude`, `codex`, `opencode`, or `agy` (see
958
1045
  [Choosing a harness](#choosing-a-harness)).
959
1046
  `<agent-number>` is the agent's 1-based position in the config's
960
1047
  `agents` list (`01`, `02`, ...), so every report has a unique name even
@@ -1017,12 +1104,12 @@ agent-council-reports/
1017
1104
  US dollars when the harness could price the usage (pi uses its own price
1018
1105
  table, so models missing from it have no cost; OpenCode uses its own
1019
1106
  model catalog; Claude Code prices usage
1020
- at Anthropic's API list prices; Codex prices nothing, so a Codex
1021
- agent has no cost), recorded as the harness reports it,
1107
+ at Anthropic's API list prices; Codex and Antigravity price nothing,
1108
+ so Codex and Antigravity agents have no cost), recorded as the harness reports it,
1022
1109
  only rounded to six decimal places. It is an estimate, not what you're
1023
1110
  billed; see [How far to trust the cost](#how-far-to-trust-the-cost).
1024
- `usage` is `null` when the provider reports no usage. An OpenCode
1025
- agent's `usage` leaves out its subagents' (see
1111
+ `usage` is `null` when the provider reports no usage. OpenCode and
1112
+ Antigravity agents' `usage` can leave out their subagents' (see
1026
1113
  [Choosing a harness](#choosing-a-harness)).
1027
1114
 
1028
1115
  `--consolidate` relies on the analysts' `prompt_file`, `config_file`,
@@ -1036,7 +1123,7 @@ agent-council-reports/
1036
1123
  (for consolidated reports, under a `# Consolidated Report` title and a
1037
1124
  `### Prompt:` line, and followed by a `### Sources` table giving each
1038
1125
  source's duration, input (cached included), cached input, output, and
1039
- cost, from `run.json`), followed by the
1126
+ estimated cost, from `run.json`), followed by the
1040
1127
  model's final message, minus any top-level `#` heading the message
1041
1128
  starts with. The consolidator is asked to put a line containing only `=== META ===`
1042
1129
  between its findings and its `Agent Consultants` and `Agent performance`
@@ -1053,8 +1140,8 @@ agent-council-reports/
1053
1140
  name, and a warning says why.
1054
1141
  - The copied prompt, config, and report-format addendum keep an analyst's
1055
1142
  inputs recoverable after the fact. The harness and
1056
- agent-council versions, the scaffolding text appended to the harness's
1057
- system prompt, and the
1143
+ agent-council versions, the scaffolding text (appended to the harness's
1144
+ system prompt, or prepended to the user message for Antigravity), and the
1058
1145
  consolidation template are not recorded.
1059
1146
  - The prompt and config copies keep their own file names (e.g.
1060
1147
  `single.yml`), so the prompt, the config, and `analyst_format.md` must
@@ -1094,8 +1181,8 @@ below; any warnings about an agent (such as tool calls Claude Code
1094
1181
  refused) follow as indented `Warning:` lines, under its finish line or,
1095
1182
  for the consolidator, under its result row. When all reviews finish, a `Reviews` table shows which models
1096
1183
  succeeded, how long each took (`HH:MM:SS`) and their token usage in
1097
- `In`, `Cached`, `Out`, and `Cost` columns (`In` counts cached input too;
1098
- `-` when unknown; failed agents show what they used; `Cost` is an estimate,
1184
+ `In`, `Cached`, `Out`, and `Est. Cost` columns (`In` counts cached input too;
1185
+ `-` when unknown; failed agents show what they used; `Est. Cost` is an estimate,
1099
1186
  see [How far to trust the cost](#how-far-to-trust-the-cost)), with the failures'
1100
1187
  reasons listed below it under `Errors:`. A
1101
1188
  `--- Reviews complete (N/M succeeded; <total usage>) ---` line follows,
@@ -1121,46 +1208,42 @@ which default was picked up.
1121
1208
 
1122
1209
  ### How far to trust the cost
1123
1210
 
1124
- Every cost agent-council shows or records is the harness's estimate
1125
- from per-token prices, not a bill, and it can be far off in either
1126
- direction:
1127
-
1128
- - **Subscriptions.** On a subscription or plan (a Claude Code login, a
1129
- Codex ChatGPT login, or a plan-based pi or OpenCode provider such as
1130
- `opencode-go`), the estimate is what the usage would cost
1131
- at pay-per-token prices. What you actually pay for a run may be
1132
- nothing extra, while the run uses up your plan's limits.
1133
- - **Price tables.** pi prices usage from its own price table, which may
1134
- not match what your provider charges (discounts, price changes, or
1135
- routing to a differently priced upstream), and a model missing from
1136
- it gets no cost at all. OpenCode likewise prices usage from its own
1137
- model catalog. Claude Code prices usage at Anthropic's API
1138
- list prices. Codex prices nothing, so Codex agents have no cost, and
1139
- a run's total then has no cost; the console summary and `run.json`'s
1140
- `known_cost` give only the other agents' cost, and say how many those
1141
- are.
1142
- - **Stopped agents.** An agent stopped by Ctrl-C (or another signal to
1143
- agent-council) records no usage, though its provider still bills for
1144
- what it used, and a run stopped before every analyst finished writes
1145
- no `run.json` at all. A runaway agent stopped that way, the most
1146
- expensive kind of agent, is therefore missing from the totals
1147
- entirely. One stopped on its own (see [Stopping one
1148
- agent](RUNAWAY_AGENTS.md#stopping-one-agent)) records only what its
1149
- output had reported by then, which may be little or nothing.
1150
- - **Token counts.** Providers count tokens somewhat differently
1151
- (reasoning tokens, for example), so compare counts, and the costs
1152
- built on them, across providers only roughly.
1153
-
1154
- For what you were actually charged, check your provider's billing or
1155
- usage page.
1211
+ Every token count and dollar figure agent-council prints (in the
1212
+ `Est. Cost` columns, console summaries, and report metadata tables) or
1213
+ records in `run.json` is a rough, incomplete estimate relayed from each
1214
+ harness — **not a bill, an accounting record, or an exact cross-provider
1215
+ benchmark.** Actual spend or token consumption can differ dramatically in
1216
+ either direction, because:
1217
+
1218
+ - harnesses that spawn subagents (such as OpenCode's `task` tool) or make
1219
+ background/MCP calls can omit large amounts of real usage;
1220
+ - subscription plans are priced notionally at API list rates while
1221
+ consuming opaque plan quotas;
1222
+ - bundled price tables go stale and miss tiered/cache/host pricing, while
1223
+ Codex and Antigravity report no prices at all (leaving only the priced
1224
+ agents in the partial cost summary and `run.json`'s `known_cost`);
1225
+ - interrupted agents usually record no usage (Claude Code and Codex agents
1226
+ killed individually report none, while Antigravity reports usage on
1227
+ graceful SIGTERM); and
1228
+ - tokenizers, reasoning-token accounting, cumulative multi-turn input,
1229
+ and per-harness prompt/tool overhead make cross-provider and
1230
+ cross-harness comparisons only rough (and `Reviews complete` excludes
1231
+ the consolidator, printed separately).
1232
+
1233
+ See [`CAUTIONS.md`](CAUTIONS.md#token-counts-and-cost-estimates-why-they-are-unreliable)
1234
+ for the complete breakdown. For what you were actually charged or how
1235
+ much of your plan was used, always check your provider's billing or usage
1236
+ page.
1156
1237
 
1157
1238
  ## How it works (and what the agents are told)
1158
1239
 
1159
- - Every analyst agent receives the **same bytes**: the prompt file's
1160
- contents (with one trailing newline removed), a blank line, and the
1161
- report-format addendum
1240
+ - Every analyst agent receives the **same substantive prompt**: the
1241
+ prompt file's contents (with one trailing newline removed), a blank
1242
+ line, and the report-format addendum
1162
1243
  (`lib/agent_council/templates/analyst_format.md`, copied into each run
1163
- dir), piped to the agent's harness on stdin as the prompt. No roles, no per-model customization. The addendum asks for a
1244
+ dir), piped to the agent's harness on stdin (verbatim for pi, Claude
1245
+ Code, Codex, and OpenCode; wrapped as an NDJSON user message with the
1246
+ shared scaffolding prepended for Antigravity). No roles, no per-model customization. The addendum asks for a
1164
1247
  Markdown report with `##` section headings, which can conflict with a
1165
1248
  prompt that asks for some other output form (the smoke-test prompt's
1166
1249
  "Reply with just the number, then one sentence explaining how you got
@@ -1260,11 +1343,24 @@ usage page.
1260
1343
  a model request cut off or failed (by the token limit, a content
1261
1344
  filter, or an error) if it was the last one or the report's.
1262
1345
  [`DESIGN.md`](DESIGN.md) §13 has the details.
1346
+ - Under Antigravity, each agent runs as
1347
+ `agy --input-format stream-json --output-format stream-json --disable-slash-commands --model M --settings '{"permissions":{"deny":["write_file(*)","execute_url(*)","download_url(*)"]}}'`,
1348
+ with the shared scaffolding prepended to the prompt inside one NDJSON
1349
+ `user` message on stdin (`AntigravityHarness.stdin_data`).
1350
+ - `--disable-slash-commands` keeps prompts starting with `/` literal.
1351
+ - `--settings` merges the deny rules over your `settings.json` for the
1352
+ session without saving them; MCP servers and shell commands stay
1353
+ governed by your `agy` settings and terminal sandbox.
1354
+ - Conversations persist under `~/.gemini/antigravity-cli/conversations/`
1355
+ (`agy` has no ephemeral flag; clean up with `agy conversations clean`).
1356
+ - The final response, usage (without cost), and soft-denied tool call
1357
+ warnings (`denied_actions`) are read from the terminal `result` event.
1358
+ [`DESIGN.md`](DESIGN.md) §11 and §13 have the details.
1263
1359
  - The tool limits above are the only restrictions
1264
1360
  agent-council enforces (see [Safety and
1265
1361
  privacy](#safety-and-privacy)). A fixed scaffolding text appended to
1266
- the system prompt (identical for all agents, the consolidator
1267
- included) tells agents not to modify project files, git state,
1362
+ the system prompt (or prepended to the user message for Antigravity;
1363
+ identical for all agents, the consolidator included) tells agents not to modify project files, git state,
1268
1364
  software, or configuration, or start persistent services (they get a
1269
1365
  scratch directory for temporary files); not to act outside the machine
1270
1366
  (post, comment, or change remote data, MCP tools included); and,
@@ -1286,17 +1382,27 @@ usage page.
1286
1382
 
1287
1383
  ## Safety and privacy
1288
1384
 
1385
+ **See [`CAUTIONS.md`](CAUTIONS.md) for the full cautions and disclaimers,
1386
+ including your responsibility for harness security, upstream CLI changes,
1387
+ billing/quotas, data privacy, and AI output reliability (including false
1388
+ consensus).** Any "checked with version X" notes below are point-in-time
1389
+ observations from development, not guarantees about your installed harness
1390
+ versions.
1391
+
1289
1392
  agent-council does not sandbox the agents (Claude Code's own sandbox,
1290
1393
  off by default, restricts Claude Code agents' commands if Claude
1291
1394
  Code's settings enable it, and the analyzed repository's settings can
1292
1395
  enable or disable it; see
1293
1396
  [Claude Code's sandbox](#claude-codes-sandbox); Codex's, whatever your
1294
1397
  Codex config's `sandbox_mode` sets, restricts Codex agents; see
1295
- [Codex's sandbox](#codexs-sandbox)).
1398
+ [Codex's sandbox](#codexs-sandbox); Antigravity's terminal sandbox
1399
+ restricts Antigravity shell commands as configured by your `agy`
1400
+ settings — `agent-council` passes neither `--sandbox` nor `--mode`).
1296
1401
  Before running it, know that:
1297
1402
 
1298
1403
  - **Agents have a shell.** Each agent, the consolidator included, gets a
1299
- shell tool (pi's and OpenCode's `bash`, Claude Code's `Bash`, or Codex's), running as you, in
1404
+ shell tool (pi's and OpenCode's `bash`, Claude Code's `Bash`, Codex's,
1405
+ or Antigravity's `run_command`), running as you, in
1300
1406
  the directory you run from, with your environment (including any API
1301
1407
  keys in it; agent-council only sets `TMPDIR`, to the agent's scratch
1302
1408
  directory, and, by harness, `CLAUDE_CODE_TMPDIR` (the same directory)
@@ -1304,37 +1410,43 @@ Before running it, know that:
1304
1410
  permissions, and
1305
1411
  your network access (for Claude Code agents, unless its sandbox
1306
1412
  restricts writes and network access; for Codex agents, unless your
1307
- Codex config allows it, its sandbox blocks network access). Of pi's built-in tools, only
1413
+ Codex config allows it, its sandbox blocks network access; for
1414
+ Antigravity agents, unless your `agy` settings enable its terminal
1415
+ sandbox). Of pi's built-in tools, only
1308
1416
  `edit` and `write` (and the Windows-only `powershell`) are withheld;
1309
1417
  of OpenCode's, the file-editing ones, unless your config or the
1310
1418
  project's allows them;
1311
1419
  of Claude Code's, all but `Read`, `Grep`, `Glob`, and `Bash`; of
1420
+ Antigravity's, `write_file(*)`, `execute_url(*)`, and `download_url(*)`
1421
+ are denied via `--settings`; of
1312
1422
  Codex's, none, so Codex agents also have its file-editing tool, and
1313
1423
  only Codex's sandbox limits what they can write. The
1314
- read-only rules described above are instructions in the system prompt,
1315
- which a model can ignore or misapply.
1424
+ read-only rules described above are instructions (in the system prompt,
1425
+ or in the user message for Antigravity), which a model can ignore or misapply.
1316
1426
  - **Agents get your MCP servers.** Every harness loads the MCP servers
1317
1427
  it would load for you interactively, so agents can use their tools:
1318
1428
  the ones you've configured, the analyzed project's (for pi and Codex,
1319
1429
  if you trust the project; for Claude Code, those you've approved; for
1320
- OpenCode, those its `opencode.json` names, without asking),
1321
- those your pi extensions or your OpenCode, Claude Code, and Codex plugins
1430
+ OpenCode, those its `opencode.json` names, without asking; for
1431
+ Antigravity, those `.agents/mcp_config.json` names),
1432
+ those your pi extensions or your OpenCode, Claude Code, Codex, and
1433
+ Antigravity plugins
1322
1434
  provide, and Codex's bundled apps connectors (GitHub and others). A
1323
1435
  server that writes (posting to chat, commenting on an issue, changing a ticket or a database) is as
1324
1436
  available to a pi agent as it is to you, and only the read-only
1325
1437
  instructions keep the agent from using it. In a council, that would
1326
1438
  happen once per agent: five agents, five comments. Each agent also
1327
1439
  starts every server it loads, so a server that does something merely
1328
- by starting does it once per agent. Claude Code and Codex agents run
1329
- an MCP tool only if your settings or config (or, for Claude Code, the
1330
- analyzed project's settings) already allow it, since
1440
+ by starting does it once per agent. Claude Code, Codex, and Antigravity
1441
+ agents run an MCP tool only if your settings or config (or, for Claude
1442
+ Code, the analyzed project's settings) already allow it, since
1331
1443
  they can't ask (see [Choosing a harness](#choosing-a-harness)); pi
1332
1444
  agents can call any MCP tool pi gives them, and OpenCode agents any
1333
1445
  that their permissions don't set to `ask` or `deny`. The read-only instructions
1334
1446
  tell agents not to act outside the machine (post, comment, or change
1335
1447
  records), but they are only instructions. Before a run, remove or
1336
- disable servers you don't want agents to have (in pi, OpenCode, Claude Code, or
1337
- Codex's own config, the analyzed project's, or the extension or
1448
+ disable servers you don't want agents to have (in pi, OpenCode, Claude Code,
1449
+ Codex, or Antigravity's own config, the analyzed project's, or the extension or
1338
1450
  plugin that provides them; Codex's apps connectors are its `apps`
1339
1451
  feature), or run in an environment without them.
1340
1452
  - **pi agents can call other models.** `codemode`, which every pi agent
@@ -1345,12 +1457,14 @@ Before running it, know that:
1345
1457
  (its usage is counted in the agent's). The read-only instructions
1346
1458
  don't limit it.
1347
1459
  - **Your pi extensions, your OpenCode plugins, your Claude Code hooks
1348
- and plugins, and your Codex skills, plugins, and trusted hooks, load.**
1460
+ and plugins, your Codex skills, plugins, and trusted hooks, and your
1461
+ Antigravity hooks, skills, and plugins load.**
1349
1462
  Extensions you've installed load for every pi agent, as you, and
1350
1463
  OpenCode plugins, yours and the project's, for every OpenCode agent.
1351
1464
  Your Claude Code hooks and plugins run for every Claude Code agent, as
1352
1465
  you, and so do hooks the analyzed repository's `.claude` settings
1353
- define (see the next item). Agents also get Claude Code's auto memory
1466
+ define (see the next item). Antigravity hooks (`.agents/hooks.json`),
1467
+ skills, and plugins likewise load for every Antigravity agent. Agents also get Claude Code's auto memory
1354
1468
  for the project, so your memory notes go to their provider, and an
1355
1469
  agent may add or change a memory file (with `Bash`), as an
1356
1470
  interactive session may. `CLAUDE_CODE_DISABLE_AUTO_MEMORY=1` in the
@@ -1361,6 +1475,8 @@ Before running it, know that:
1361
1475
  the project is trusted, its `.pi` resources; Codex its `AGENTS.md`
1362
1476
  files and, if you trust the project, its `.codex` config; OpenCode its
1363
1477
  `AGENTS.md` files and `opencode.json`, with no trust step (checked);
1478
+ Antigravity its `AGENTS.md`, `GEMINI.md`, `.agents/rules/`, and
1479
+ `.agents/hooks.json` (subject to `agy`'s workspace trust rules);
1364
1480
  Claude Code its
1365
1481
  `CLAUDE.md` files and `.claude` settings, which apply without the
1366
1482
  trust prompt an interactive session would show first (their hooks,
@@ -1379,7 +1495,9 @@ Before running it, know that:
1379
1495
  (for a Claude Code agent, wherever your `claude` sends it: Anthropic,
1380
1496
  unless it is set up for another; for a Codex agent, wherever your
1381
1497
  `codex` sends it: OpenAI, unless its config names another provider;
1382
- for an OpenCode agent, to its entry's provider). The
1498
+ for an OpenCode agent, to its entry's provider; for an Antigravity
1499
+ agent, wherever your `agy` sends it: Google AI, Gemini API, or Vertex
1500
+ AI). The
1383
1501
  consolidator's provider receives the prompt and all reports, plus
1384
1502
  anything the consolidator itself reads or runs. Check those providers'
1385
1503
  data policies before analyzing private code.
data/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,45 @@
1
1
  # Release Notes
2
2
 
3
+ ## Unreleased
4
+
5
+ _No entries yet._
6
+
7
+ ## 0.5.0 (2026-12-03)
8
+
9
+ - **A fifth harness: Google Antigravity (`harness: agy`).** Agents (and
10
+ the consolidator) can now run under Google's `agy` CLI (tested with
11
+ 1.5.22), billed however your `agy` login is (Google AI subscription,
12
+ Gemini API key, or Vertex AI). `provider` is label-only and `model` is
13
+ a slug from `agy models`. Prompts are piped as one NDJSON `user`
14
+ message via `--input-format stream-json --output-format stream-json
15
+ --disable-slash-commands` with the shared read-only scaffolding
16
+ prepended (`Harness.stdin_data`). Session-only `--settings` merges
17
+ `permissions.deny` rules for `write_file(*)`, `execute_url(*)`, and
18
+ `download_url(*)` while leaving user allow rules, MCP servers, and the
19
+ terminal sandbox intact. Token usage is read from the terminal `result`
20
+ event without cost (`known_cost` treats Antigravity runs as unknown
21
+ cost, like Codex), and headless soft-denials (`result.denied_actions`)
22
+ surface as warnings. Unlike the other harnesses, `agy` has no ephemeral
23
+ flag and persists conversations under
24
+ `~/.gemini/antigravity-cli/conversations/` (`agy conversations clean`).
25
+ - **A new `CAUTIONS.md` document spells out the division of responsibility
26
+ and token/cost estimation pitfalls.** It states plainly that
27
+ agent-council is a process orchestrator, not a sandbox, security
28
+ boundary, spend cap, billing auditor, or verifier of AI output: harness
29
+ security, upstream CLI drift, billing/quota/ToS compliance, data
30
+ privacy, and verifying AI output (including false consensus) remain the
31
+ user's responsibility. It also expands on why token counts and cost
32
+ estimates are unreliable (missing subagent and delegated-workflow usage,
33
+ hidden harness calls, MCP/tool-side spend, killed Claude Code and Codex
34
+ agents reporting no usage, tiered/cache/host pricing, tokenizer and
35
+ reasoning-token differences, and cross-harness overhead). `CAUTIONS.md`
36
+ is packaged in the gem, listed in `agent-council -h` as `Cautions
37
+ (Local)`, and linked from the README and other docs.
38
+ - **Cost columns in console and consolidated reports are now labeled
39
+ `Est. Cost`.** The console result table and consolidated reports'
40
+ `### Sources` table now head the column `Est. Cost` rather than `Cost`
41
+ (`run.json` keys are unchanged).
42
+
3
43
  ## 0.4.0 (2026-12-02)
4
44
 
5
45
  - **A new command, `agent-council-ps`, shows what a run's agents are