agent-council 0.3.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.
- checksums.yaml +4 -4
- data/CAUTIONS.md +254 -0
- data/DESIGN.md +137 -25
- data/INSTALL.md +14 -9
- data/README.md +413 -130
- data/RELEASE_NOTES.md +228 -110
- data/RUNAWAY_AGENTS.md +192 -10
- data/USE_CASES.md +3 -3
- data/examples/configs/antigravity.yml +20 -0
- data/examples/configs/mixed-harness.yml +17 -7
- data/examples/prompts/review-latest-commit-prompt.md +9 -0
- data/examples/prompts/review-pull-request-prompt.md +6 -0
- data/examples/prompts/test-coverage-analysis-prompt.md +56 -42
- data/exe/agent-council +6 -1
- data/exe/agent-council-ps +9 -0
- data/exe/pi-models +3 -33
- data/lib/agent_council/harnesses/antigravity_harness.rb +249 -0
- data/lib/agent_council/harnesses/claude_code_harness.rb +40 -60
- data/lib/agent_council/harnesses/codex_harness.rb +42 -89
- data/lib/agent_council/harnesses/harness.rb +193 -0
- data/lib/agent_council/harnesses/opencode_harness.rb +234 -0
- data/lib/agent_council/harnesses/pi_harness.rb +29 -59
- data/lib/agent_council/harnesses/scaffold.rb +6 -4
- data/lib/agent_council/harnesses.rb +14 -26
- data/lib/agent_council/pi_models.rb +40 -0
- data/lib/agent_council/plain_line.rb +24 -0
- data/lib/agent_council/platform.rb +2 -2
- data/lib/agent_council/progress_printer.rb +59 -0
- data/lib/agent_council/ps.rb +548 -0
- data/lib/agent_council/safe_stdout.rb +48 -0
- data/lib/agent_council/version.rb +1 -1
- data/lib/agent_council/worker_pool.rb +28 -15
- data/lib/agent_council.rb +167 -127
- metadata +17 -6
data/README.md
CHANGED
|
@@ -4,15 +4,19 @@ 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
|
|
11
11
|
[Pi](https://github.com/earendil-works/pi) harness, for any provider's
|
|
12
|
-
models; [
|
|
12
|
+
models; [OpenCode](https://opencode.ai/docs/cli), likewise for any
|
|
13
|
+
provider's; [Claude Code](https://code.claude.com/docs), for Anthropic's,
|
|
13
14
|
billed however your `claude` login is; or
|
|
14
15
|
[Codex](https://developers.openai.com/codex/cli), for OpenAI's, billed
|
|
15
|
-
however your `codex` login is
|
|
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
|
|
16
20
|
harnesses, providers, and models, including the same model more than
|
|
17
21
|
once, or under each harness.
|
|
18
22
|
|
|
@@ -36,6 +40,14 @@ dataset for comparing models and providers on your own work.
|
|
|
36
40
|
|
|
37
41
|
**New to Ruby? [Install agent-council from scratch](INSTALL.md)**
|
|
38
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
|
+
|
|
39
51
|
## Why use it
|
|
40
52
|
|
|
41
53
|
### A council of second opinions
|
|
@@ -61,12 +73,14 @@ harnesses, in the harnesses, whose tools and loaded context differ).
|
|
|
61
73
|
- **Speed.** Every agent's wall-clock duration, side by side. Find out
|
|
62
74
|
which models answer in two minutes and which take twenty, and whether
|
|
63
75
|
the wait buys anything.
|
|
64
|
-
- **Tokens and cost.** Input, cached input, and output tokens,
|
|
65
|
-
estimated dollar cost where the harness can price the model, per
|
|
66
|
-
and in total.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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).
|
|
70
84
|
- **Quality.** The reports sit side by side, labeled by source. The
|
|
71
85
|
consolidator shows which findings each model shared with the others,
|
|
72
86
|
which only it found, and where models contradicted each other, and its
|
|
@@ -119,7 +133,7 @@ agent-council can help with any question about a set of readable files
|
|
|
119
133
|
Weigh two costs as well: a council costs several times what one agent
|
|
120
134
|
costs and takes as long as its slowest agent plus the consolidation, and
|
|
121
135
|
whatever the agents read goes to their providers (see
|
|
122
|
-
[Safety and privacy](#safety-and-privacy)).
|
|
136
|
+
[`CAUTIONS.md`](CAUTIONS.md) and [Safety and privacy](#safety-and-privacy)).
|
|
123
137
|
|
|
124
138
|
For a catalog of uses, from code review to choosing models, see
|
|
125
139
|
[`USE_CASES.md`](USE_CASES.md).
|
|
@@ -139,7 +153,7 @@ in detail.
|
|
|
139
153
|
[`pi` CLI](https://github.com/earendil-works/pi) (`pi --version`). See
|
|
140
154
|
[Prerequisites](#prerequisites), or [INSTALL.md](INSTALL.md) if you
|
|
141
155
|
need to install Ruby too. These steps run every agent under pi; to
|
|
142
|
-
run agents under Claude Code or
|
|
156
|
+
run agents under OpenCode, Claude Code, Codex, or Antigravity as well, or instead (then
|
|
143
157
|
without pi), see [Choosing a harness](#choosing-a-harness).
|
|
144
158
|
2. **Set up credentials for at least one provider in pi** (see
|
|
145
159
|
[pi's documentation][pi-docs]), then list the models available to pi
|
|
@@ -193,7 +207,8 @@ in detail.
|
|
|
193
207
|
|
|
194
208
|
This calls each configured model at your providers' usual rates. Any
|
|
195
209
|
files an agent reads, and the output of any commands it runs, go to
|
|
196
|
-
that agent's provider; see [
|
|
210
|
+
that agent's provider; see [`CAUTIONS.md`](CAUTIONS.md) and
|
|
211
|
+
[Safety and privacy](#safety-and-privacy).
|
|
197
212
|
|
|
198
213
|
Each model's answer is saved as a Markdown file under
|
|
199
214
|
`agent-council-reports/<yyyy-mm-dd>/<hh-mm-ss>/reviews/`, and the
|
|
@@ -227,9 +242,19 @@ consolidator, see
|
|
|
227
242
|
- for Codex: the [`codex` CLI](https://developers.openai.com/codex/cli)
|
|
228
243
|
(`codex --version`; tested with 0.167.0, and earlier versions may
|
|
229
244
|
lack flags agent-council passes), logged in with a ChatGPT plan or
|
|
230
|
-
an API key
|
|
231
|
-
|
|
232
|
-
|
|
245
|
+
an API key;
|
|
246
|
+
- for OpenCode: the [`opencode` CLI](https://opencode.ai/docs/cli)
|
|
247
|
+
(`opencode --version`; tested with 1.19.6; 1.2.4 ignores
|
|
248
|
+
`OPENCODE_DB`, so its agents' sessions would be saved to your
|
|
249
|
+
history), with credentials for at least one provider
|
|
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
|
|
233
258
|
`PATH`, not your shell's aliases or functions of those names. If yours
|
|
234
259
|
add something, such as an environment variable or a directory on
|
|
235
260
|
`PATH`, set it in the environment you run agent-council from (for
|
|
@@ -241,7 +266,7 @@ consolidator, see
|
|
|
241
266
|
([INSTALL.md](INSTALL.md) has the steps). Windows drives are reachable
|
|
242
267
|
at `/mnt/c/...`, but file access there is much slower than in the Linux
|
|
243
268
|
filesystem (e.g. `~/projects`). Set up pi's provider credentials (and
|
|
244
|
-
log in to Claude Code or
|
|
269
|
+
log in to OpenCode, Claude Code, Codex, or Antigravity) inside WSL too; WSL doesn't share them
|
|
245
270
|
with Windows.
|
|
246
271
|
|
|
247
272
|
## Installation
|
|
@@ -262,15 +287,16 @@ to write one. To work on agent-council itself, see
|
|
|
262
287
|
|
|
263
288
|
### Finding the installed documentation and examples
|
|
264
289
|
|
|
265
|
-
The installed gem contains this README, [`
|
|
266
|
-
[`
|
|
267
|
-
[`
|
|
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
|
|
268
294
|
`examples/`, all matching the installed version. The help
|
|
269
295
|
output shows where they are for the copy of `agent-council` you are
|
|
270
296
|
actually running:
|
|
271
297
|
|
|
272
298
|
```bash
|
|
273
|
-
agent-council -h # see "Documentation (Local)" and "Examples (Local)"
|
|
299
|
+
agent-council -h # see "Documentation (Local)", "Cautions (Local)", and "Examples (Local)"
|
|
274
300
|
```
|
|
275
301
|
|
|
276
302
|
To get that copy's directory in a shell variable, used by the examples
|
|
@@ -282,16 +308,54 @@ AC_HOME=$(agent-council --gem-dir)
|
|
|
282
308
|
|
|
283
309
|
## Discovering and configuring models
|
|
284
310
|
|
|
311
|
+
Each harness has its own way to find the models it can use. pi,
|
|
312
|
+
OpenCode, Codex, and Antigravity list theirs:
|
|
313
|
+
|
|
285
314
|
```bash
|
|
286
|
-
pi
|
|
315
|
+
# pi: the models of the providers you have credentials for
|
|
316
|
+
pi --list-models
|
|
317
|
+
|
|
318
|
+
# OpenCode: its models, as provider/model
|
|
319
|
+
opencode models
|
|
320
|
+
opencode models opencode-go # only one provider's
|
|
321
|
+
opencode models --refresh # refresh its model catalog, then list
|
|
322
|
+
|
|
323
|
+
# Codex: its model names (slugs), leaving out the ones it marks hidden
|
|
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
|
|
287
328
|
```
|
|
288
329
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
330
|
+
- **pi.** An entry's `provider` and `model` are a listed model's
|
|
331
|
+
`provider` and `model` columns. `pi --list-models` lists only the
|
|
332
|
+
models of providers pi has credentials for, not its whole catalog, so
|
|
333
|
+
a provider missing from it may just lack credentials. A listed model
|
|
334
|
+
can still be unusable, e.g. one your plan doesn't include.
|
|
335
|
+
Credentials, and which one pi uses when a provider has several, are
|
|
336
|
+
pi's business; see [pi's documentation][pi-docs].
|
|
337
|
+
- **OpenCode.** An entry's `provider` is the part of a listed name
|
|
338
|
+
before the first `/`, and its `model` the rest. OpenCode keeps a
|
|
339
|
+
cached catalog of models from models.dev; `--refresh` updates it
|
|
340
|
+
first, for a model too new to be listed. See [OpenCode's CLI
|
|
341
|
+
commands](https://opencode.ai/docs/cli/commands), and
|
|
342
|
+
`opencode models --help` for the options.
|
|
343
|
+
- **Codex.** `codex debug models` prints Codex's model catalog as JSON
|
|
344
|
+
(the `jq` command above picks out the names); a listed model's `slug`
|
|
345
|
+
is what an entry's `model` takes. The catalog is Codex's own models,
|
|
346
|
+
so with a custom `model_provider` in your Codex config, give the
|
|
347
|
+
names that provider takes instead. It's a debugging command, so its
|
|
348
|
+
output may change between Codex versions (this was checked with
|
|
349
|
+
0.171.0).
|
|
350
|
+
- **Claude Code.** `model` is an alias, such as `opus` or `sonnet`, or
|
|
351
|
+
a full model name; Claude Code's [Model
|
|
352
|
+
configuration](https://code.claude.com/docs/en/model-config) page
|
|
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).
|
|
295
359
|
|
|
296
360
|
Edit the config to choose the ensemble. The config is the optional second
|
|
297
361
|
argument; if omitted, `./agent-council.yml` in the current directory is used
|
|
@@ -327,7 +391,7 @@ agent, and the consolidator, needs nonblank string `harness`,
|
|
|
327
391
|
`provider`, and `model` values (quote any value YAML would read as
|
|
328
392
|
something else, such as a number, a date, or `yes`). None has a default;
|
|
329
393
|
a 0.1.0 config needs `harness: pi` added to each entry. `harness` names
|
|
330
|
-
the harness the entry runs under, `pi`, `claude`, or `
|
|
394
|
+
the harness the entry runs under, `pi`, `claude`, `codex`, `opencode`, or `agy`; an unknown name is
|
|
331
395
|
rejected at startup (with `--consolidate`, only the consolidator's,
|
|
332
396
|
since no analysts run). Other keys are ignored. A config error lists
|
|
333
397
|
every bad entry, named as in `'agents' entry #2` or `'consolidator'`,
|
|
@@ -335,7 +399,8 @@ with every problem it has.
|
|
|
335
399
|
|
|
336
400
|
More samples are in [`examples/configs/`](examples/configs/), which is
|
|
337
401
|
included in the installed gem; `mixed-harness.yml` mixes pi, Claude
|
|
338
|
-
Code, and
|
|
402
|
+
Code, Codex, OpenCode, and Antigravity agents, and `antigravity.yml`
|
|
403
|
+
shows an Antigravity-only council. For scripts and agents,
|
|
339
404
|
[`pi-models`](#occasional-utility-pi-models) lists the models in
|
|
340
405
|
machine-readable forms.
|
|
341
406
|
|
|
@@ -378,7 +443,9 @@ consolidator:
|
|
|
378
443
|
```
|
|
379
444
|
|
|
380
445
|
- **Models.** `model` is any model name or alias `claude --model`
|
|
381
|
-
accepts
|
|
446
|
+
accepts (see [Discovering and configuring
|
|
447
|
+
models](#discovering-and-configuring-models)). Claude Code takes no
|
|
448
|
+
provider, so `provider` only labels the
|
|
382
449
|
agent: `anthropic`, or e.g. `bedrock` if your `claude` is set up to use
|
|
383
450
|
it.
|
|
384
451
|
- **Billing.** agent-council leaves authentication and billing to Claude
|
|
@@ -407,7 +474,7 @@ consolidator:
|
|
|
407
474
|
MCP call no rule allows, or one that a `permissions.deny` rule in your
|
|
408
475
|
settings or the project's forbids. The agent then carries on without
|
|
409
476
|
it; its report is kept, and a warning naming the call (up to five distinct calls, with a
|
|
410
|
-
count of the rest) is printed under its
|
|
477
|
+
count of the rest) is printed under its finish line (the
|
|
411
478
|
consolidator's, under its result table), shown in the report's
|
|
412
479
|
metadata table (so the consolidator sees an analyst's too), and
|
|
413
480
|
recorded in `run.json`, since the report may lack what the call would
|
|
@@ -426,8 +493,10 @@ agents:
|
|
|
426
493
|
model: gpt-5.6-terra
|
|
427
494
|
```
|
|
428
495
|
|
|
429
|
-
- **Models.** `model` is any model name `codex --model` accepts
|
|
430
|
-
|
|
496
|
+
- **Models.** `model` is any model name `codex --model` accepts (`codex
|
|
497
|
+
debug models` lists them; see [Discovering and configuring
|
|
498
|
+
models](#discovering-and-configuring-models)). As with Claude Code,
|
|
499
|
+
`provider` only labels the agent: Codex uses the
|
|
431
500
|
`model_provider` its own config names.
|
|
432
501
|
- **Billing.** agent-council leaves authentication and billing to Codex:
|
|
433
502
|
an agent bills however `codex` would at your terminal, to your ChatGPT
|
|
@@ -446,13 +515,16 @@ agents:
|
|
|
446
515
|
what an agent can write is whatever your `sandbox_mode` allows (see
|
|
447
516
|
[Codex's sandbox](#codexs-sandbox)). The read-only rules are
|
|
448
517
|
given as `developer_instructions`, which replaces any your config sets.
|
|
449
|
-
- **Tools.**
|
|
450
|
-
|
|
451
|
-
Codex
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
518
|
+
- **Tools.** Codex agents keep Codex's whole built-in toolset,
|
|
519
|
+
including its file-editing tool (`apply_patch`) and its subagent
|
|
520
|
+
tools: this Codex version has no way to withhold them. (pi and Claude
|
|
521
|
+
Code agents get only read and shell tools, plus MCP tools, as
|
|
522
|
+
described here, OpenCode agents lose their file-editing tools, and
|
|
523
|
+
Antigravity agents deny `write_file(*)`, `execute_url(*)`, and
|
|
524
|
+
`download_url(*)`.)
|
|
525
|
+
The subagent tools fail, though, since agent-council runs Codex with
|
|
526
|
+
`--ephemeral` (no session files), which subagents need, so a Codex
|
|
527
|
+
agent works alone.
|
|
456
528
|
- **MCP tools need approval in your config.** Your MCP servers load (see
|
|
457
529
|
[Safety and privacy](#safety-and-privacy)), but `codex exec` never asks
|
|
458
530
|
for approval, so an agent's MCP tool call is refused unless your config
|
|
@@ -462,12 +534,128 @@ agents:
|
|
|
462
534
|
warning, recorded the same way as Claude Code's refused calls.
|
|
463
535
|
- **Outside a git repository.** Codex normally refuses to run outside one
|
|
464
536
|
it trusts; agent-council passes `--skip-git-repo-check`, so Codex agents
|
|
465
|
-
run wherever pi
|
|
537
|
+
run wherever pi, Claude Code, OpenCode, and Antigravity agents do.
|
|
466
538
|
- **Warnings.** Errors Codex reports without failing the agent (such as
|
|
467
539
|
missing metadata for a model name) are printed as one warning, and
|
|
468
540
|
failed MCP tool calls (such as those refused for lack of approval) as
|
|
469
541
|
another, each recorded the same way as Claude Code's refused calls.
|
|
470
542
|
|
|
543
|
+
An entry with `harness: opencode` runs under
|
|
544
|
+
[OpenCode](https://opencode.ai/docs/cli) (`opencode run`), which, like
|
|
545
|
+
pi, reaches many providers, so a council can compare one model under
|
|
546
|
+
both:
|
|
547
|
+
|
|
548
|
+
```yaml
|
|
549
|
+
agents:
|
|
550
|
+
- harness: opencode
|
|
551
|
+
provider: opencode-go
|
|
552
|
+
model: glm-5.3
|
|
553
|
+
- harness: pi
|
|
554
|
+
provider: opencode-go
|
|
555
|
+
model: glm-5.3
|
|
556
|
+
```
|
|
557
|
+
|
|
558
|
+
- **Models.** Unlike Claude Code's and Codex's, `provider` is passed:
|
|
559
|
+
the agent runs `--model <provider>/<model>`, so give a provider and a
|
|
560
|
+
model as `opencode models` lists them, split at the first `/` (see
|
|
561
|
+
[Discovering and configuring
|
|
562
|
+
models](#discovering-and-configuring-models)).
|
|
563
|
+
- **Billing.** agent-council leaves authentication and billing to
|
|
564
|
+
OpenCode: an agent uses the credentials `opencode auth login` saved.
|
|
565
|
+
Cost is OpenCode's estimate from its own model catalog (see
|
|
566
|
+
[How far to trust the cost](#how-far-to-trust-the-cost)).
|
|
567
|
+
- **Context.** Each agent runs as an interactive session started in your
|
|
568
|
+
project would: your OpenCode config, plugins, and MCP servers apply,
|
|
569
|
+
and so do the project's `AGENTS.md` files and `opencode.json`.
|
|
570
|
+
agent-council adds its settings through `OPENCODE_CONFIG_CONTENT`,
|
|
571
|
+
which OpenCode merges over your config and the project's (a value of
|
|
572
|
+
your own for it is replaced): the read-only rules, as an
|
|
573
|
+
`instructions` file, and the settings below.
|
|
574
|
+
- **Agent.** Agents run as OpenCode's `build` agent (`--agent build`),
|
|
575
|
+
whatever `default_agent` your config or the project's names.
|
|
576
|
+
- **Tools.** Editing is denied (`permission.edit: deny`, globally and
|
|
577
|
+
for `build`), which withholds OpenCode's file-editing tools; `bash`
|
|
578
|
+
and the rest stay, its subagent tool (`task`) included. This is a
|
|
579
|
+
default, not a guarantee: your config or the project's can allow
|
|
580
|
+
editing again (for `build` or for a subagent it defines), and `bash`
|
|
581
|
+
can write files regardless, as under every harness.
|
|
582
|
+
- **No session history.** Each agent's session goes to a database in
|
|
583
|
+
its scratch directory (`OPENCODE_DB`), deleted afterward, so it isn't
|
|
584
|
+
added to your history (pi, Claude Code, and Codex save no session
|
|
585
|
+
either; Antigravity is the exception).
|
|
586
|
+
Snapshots (OpenCode's undo) are turned off, so a run doesn't copy the
|
|
587
|
+
project's files, untracked ones included, into OpenCode's data
|
|
588
|
+
directory. OpenCode still writes its logs there.
|
|
589
|
+
- **Permissions that ask are refused.** `opencode run` can't ask, so a
|
|
590
|
+
tool call set to `ask`, by your permissions or OpenCode's defaults
|
|
591
|
+
(e.g. for files outside the project), is refused with a warning, and
|
|
592
|
+
the agent goes on without it (agent-council sets
|
|
593
|
+
`experimental.continue_loop_on_deny`). The agent's scratch directory
|
|
594
|
+
is allowed, so it can read what it puts in `$TMPDIR`. To let agents
|
|
595
|
+
make other such calls, allow them in your permissions. MCP tools need
|
|
596
|
+
no permission by default.
|
|
597
|
+
- **Usage.** OpenCode's title request is turned off (its usage isn't
|
|
598
|
+
reported). A subagent's usage isn't reported either, so an agent that
|
|
599
|
+
starts subagents reports less than it used.
|
|
600
|
+
- **A `.gitignore` in the project's `.opencode` directory.** If the
|
|
601
|
+
analyzed project has one, OpenCode writes a `.gitignore` there, as an
|
|
602
|
+
interactive session would.
|
|
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
|
+
|
|
471
659
|
## Running
|
|
472
660
|
|
|
473
661
|
```bash
|
|
@@ -578,7 +766,7 @@ agent-council \
|
|
|
578
766
|
- `examples/prompts/test-coverage-analysis-prompt.md` — a line-coverage
|
|
579
767
|
analysis organized by the logical parts of the system, with gaps ranked by
|
|
580
768
|
risk and a ready-to-use prompt for each recommended fix. It reads
|
|
581
|
-
SimpleCov's
|
|
769
|
+
SimpleCov's coverage data through
|
|
582
770
|
[cov-loupe](https://github.com/keithrbennett/cov-loupe) and runs no tests,
|
|
583
771
|
so run your full test suite first; it stops with an error if the coverage
|
|
584
772
|
data looks out of date.
|
|
@@ -594,36 +782,48 @@ Config: [default] /home/me/.agent-council.yml
|
|
|
594
782
|
Prompt: examples/prompts/review-latest-commit-prompt.md
|
|
595
783
|
Run Dir: agent-council-reports/2026-11-18/22-46-15
|
|
596
784
|
|
|
597
|
-
Review Agents (4):
|
|
785
|
+
Configured Review Agents (4):
|
|
598
786
|
#1 pi / deepseek / deepseek-flash
|
|
599
787
|
#2 pi / deepseek / deepseek-flash
|
|
600
788
|
#3 pi / openrouter / deepseek/deepseek-v4.1-flash-1017
|
|
601
789
|
#4 pi / openrouter / deepseek/deepseek-v4.1-flash-1017
|
|
602
790
|
|
|
603
|
-
Consolidator Agent:
|
|
791
|
+
Configured Consolidator Agent:
|
|
604
792
|
pi / anthropic / claude-sonnet-5-5
|
|
605
793
|
|
|
606
|
-
|
|
794
|
+
Run this in another terminal to see (sub)process statuses:
|
|
795
|
+
agent-council-ps 48200
|
|
796
|
+
|
|
797
|
+
Started Agents:
|
|
798
|
+
- pid 48211 #1 deepseek / deepseek-flash
|
|
799
|
+
- pid 48212 #2 deepseek / deepseek-flash
|
|
800
|
+
- pid 48214 #3 openrouter / deepseek/deepseek-v4.1-flash-1017
|
|
801
|
+
- pid 48216 #4 openrouter / deepseek/deepseek-v4.1-flash-1017
|
|
802
|
+
|
|
803
|
+
Finished Agents:
|
|
607
804
|
✓ 00:01:53 #3 openrouter / deepseek/deepseek-v4.1-flash-1017
|
|
608
805
|
✓ 00:02:31 #4 openrouter / deepseek/deepseek-v4.1-flash-1017
|
|
609
806
|
✓ 00:02:42 #2 deepseek / deepseek-flash
|
|
610
807
|
✓ 00:03:45 #1 deepseek / deepseek-flash
|
|
611
808
|
|
|
612
809
|
Reviews (in agent-council-reports/2026-11-18/22-46-15/reviews):
|
|
613
|
-
Ok Duration Agent In Cached Out
|
|
614
|
-
✓ 00:03:45 #1 deepseek / deepseek-flash 1.1M 1.1M 29.4k
|
|
615
|
-
✓ 00:02:42 #2 deepseek / deepseek-flash 967.2k 924.8k 22.8k
|
|
616
|
-
✓ 00:01:53 #3 openrouter / deepseek/deepseek-v4.1-flash-1017 1.4M 1.4M 30.0k
|
|
617
|
-
✓ 00:02:31 #4 openrouter / deepseek/deepseek-v4.1-flash-1017 1.4M 1.3M 25.6k
|
|
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
|
|
618
815
|
|
|
619
816
|
--- Reviews complete (4/4 succeeded; 4.9M in (4.7M cached) / 107.9k out, $0.18) ---
|
|
620
817
|
|
|
621
818
|
Consolidation Report (in agent-council-reports/2026-11-18/22-46-15):
|
|
622
|
-
|
|
623
|
-
|
|
819
|
+
- pid 48390 anthropic / claude-sonnet-5-5
|
|
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
|
|
624
822
|
```
|
|
625
823
|
|
|
626
|
-
|
|
824
|
+
Each agent gets a line under `Started Agents:` as it starts, with its
|
|
825
|
+
process ID, and one under `Finished Agents:` as it finishes, with `✓` or
|
|
826
|
+
`✗`. Costs are the harness's
|
|
627
827
|
estimates and can be far off; see [How far to trust the
|
|
628
828
|
cost](#how-far-to-trust-the-cost). The files the run wrote are described
|
|
629
829
|
in [What you get](#what-you-get).
|
|
@@ -658,7 +858,9 @@ Ctrl-C (or SIGTERM, SIGHUP, or SIGQUIT) stops the run, keeping reports
|
|
|
658
858
|
already written:
|
|
659
859
|
|
|
660
860
|
- Running agents, the consolidator included, get SIGTERM (pi, Claude
|
|
661
|
-
Code, and
|
|
861
|
+
Code, Codex, and Antigravity then also stop the commands they started; OpenCode
|
|
862
|
+
doesn't, and didn't exit within the 5 seconds in a check with 1.19.6)
|
|
863
|
+
and a shared 5 seconds to exit before
|
|
662
864
|
they are killed. A killed agent can't stop the commands it started, so
|
|
663
865
|
those may keep running.
|
|
664
866
|
- A second SIGINT, SIGTERM, or SIGQUIT kills them at once; further SIGHUPs
|
|
@@ -676,7 +878,13 @@ agent-council has no time limit, so an agent that never finishes holds
|
|
|
676
878
|
up the run until you stop it. To stop a run automatically after a set
|
|
677
879
|
time, run it under the `timeout` command; [`RUNAWAY_AGENTS.md`](RUNAWAY_AGENTS.md)
|
|
678
880
|
explains how, the options to use and avoid, and why there's no
|
|
679
|
-
built-in limit yet.
|
|
881
|
+
built-in limit yet. It also explains how to [see what an agent is
|
|
882
|
+
doing](RUNAWAY_AGENTS.md#seeing-what-an-agent-is-doing) with
|
|
883
|
+
`agent-council-ps` (which the gem includes), including an example of
|
|
884
|
+
[asking a coding assistant to look
|
|
885
|
+
closer](RUNAWAY_AGENTS.md#asking-a-coding-assistant-to-look-closer),
|
|
886
|
+
and how to [stop one agent](RUNAWAY_AGENTS.md#stopping-one-agent) by
|
|
887
|
+
the process ID printed as it started, letting the others finish.
|
|
680
888
|
|
|
681
889
|
### Consolidating a finished run
|
|
682
890
|
|
|
@@ -833,7 +1041,7 @@ agent-council-reports/
|
|
|
833
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,
|
|
834
1042
|
and `<provider>` and `<model>` are sanitized like the query slug below,
|
|
835
1043
|
but keep their case. `<harness>` is the agent's (or consolidator's)
|
|
836
|
-
`harness` config value, `pi`, `claude`, or `
|
|
1044
|
+
`harness` config value, `pi`, `claude`, `codex`, `opencode`, or `agy` (see
|
|
837
1045
|
[Choosing a harness](#choosing-a-harness)).
|
|
838
1046
|
`<agent-number>` is the agent's 1-based position in the config's
|
|
839
1047
|
`agents` list (`01`, `02`, ...), so every report has a unique name even
|
|
@@ -894,12 +1102,15 @@ agent-council-reports/
|
|
|
894
1102
|
script's `models.classify` calls), as reported by the harness: `input` (excluding cached input),
|
|
895
1103
|
`cache_read`, `cache_write`, and `output` token counts, plus `cost` in
|
|
896
1104
|
US dollars when the harness could price the usage (pi uses its own price
|
|
897
|
-
table, so models missing from it have no cost;
|
|
898
|
-
|
|
899
|
-
|
|
1105
|
+
table, so models missing from it have no cost; OpenCode uses its own
|
|
1106
|
+
model catalog; Claude Code prices usage
|
|
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,
|
|
900
1109
|
only rounded to six decimal places. It is an estimate, not what you're
|
|
901
1110
|
billed; see [How far to trust the cost](#how-far-to-trust-the-cost).
|
|
902
|
-
`usage` is `null` when the provider reports no usage.
|
|
1111
|
+
`usage` is `null` when the provider reports no usage. OpenCode and
|
|
1112
|
+
Antigravity agents' `usage` can leave out their subagents' (see
|
|
1113
|
+
[Choosing a harness](#choosing-a-harness)).
|
|
903
1114
|
|
|
904
1115
|
`--consolidate` relies on the analysts' `prompt_file`, `config_file`,
|
|
905
1116
|
`run_stamp`, and `query`, and on `agent_index` to tell which configured
|
|
@@ -912,7 +1123,7 @@ agent-council-reports/
|
|
|
912
1123
|
(for consolidated reports, under a `# Consolidated Report` title and a
|
|
913
1124
|
`### Prompt:` line, and followed by a `### Sources` table giving each
|
|
914
1125
|
source's duration, input (cached included), cached input, output, and
|
|
915
|
-
cost, from `run.json`), followed by the
|
|
1126
|
+
estimated cost, from `run.json`), followed by the
|
|
916
1127
|
model's final message, minus any top-level `#` heading the message
|
|
917
1128
|
starts with. The consolidator is asked to put a line containing only `=== META ===`
|
|
918
1129
|
between its findings and its `Agent Consultants` and `Agent performance`
|
|
@@ -929,8 +1140,8 @@ agent-council-reports/
|
|
|
929
1140
|
name, and a warning says why.
|
|
930
1141
|
- The copied prompt, config, and report-format addendum keep an analyst's
|
|
931
1142
|
inputs recoverable after the fact. The harness and
|
|
932
|
-
agent-council versions, the scaffolding text appended to the harness's
|
|
933
|
-
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
|
|
934
1145
|
consolidation template are not recorded.
|
|
935
1146
|
- The prompt and config copies keep their own file names (e.g.
|
|
936
1147
|
`single.yml`), so the prompt, the config, and `analyst_format.md` must
|
|
@@ -940,9 +1151,12 @@ agent-council-reports/
|
|
|
940
1151
|
Each run starts by printing its working directory (`Working Dir:`, which
|
|
941
1152
|
relative paths below are shown against), config, prompt, and run
|
|
942
1153
|
directory (`Run Dir: agent-council-reports/2026-09-03/09-14-02`), then
|
|
943
|
-
its agents under `Review Agents (N):` and, if
|
|
944
|
-
`Consolidator Agent:`; these labels also name the harness
|
|
945
|
-
(e.g. `#2 pi / openai / gpt-6.1-sol`).
|
|
1154
|
+
its agents under `Configured Review Agents (N):` and, if there is one,
|
|
1155
|
+
`Configured Consolidator Agent:`; these labels also name the harness
|
|
1156
|
+
(e.g. `#2 pi / openai / gpt-6.1-sol`). A line follows naming the
|
|
1157
|
+
`agent-council-ps` command, with the run's process ID, that shows what
|
|
1158
|
+
its agents are doing (see [Seeing what an agent is
|
|
1159
|
+
doing](RUNAWAY_AGENTS.md#seeing-what-an-agent-is-doing)).
|
|
946
1160
|
You can open the run dir while agents are still working, or after a
|
|
947
1161
|
Ctrl-C (see [Stopping a run](#stopping-a-run)). Other access patterns:
|
|
948
1162
|
|
|
@@ -955,15 +1169,20 @@ ls agent-council-reports/$(date +%F)/
|
|
|
955
1169
|
ls agent-council-reports/*/*/reviews/*codebase-review*
|
|
956
1170
|
```
|
|
957
1171
|
|
|
958
|
-
While the agents run, a `
|
|
959
|
-
agent as it
|
|
1172
|
+
While the agents run, a `Started Agents:` section prints a line per
|
|
1173
|
+
agent as it starts: `- pid`, its process ID (also the ID of its process
|
|
1174
|
+
group, so `kill -TERM -<pid>` stops that agent alone; see [Stopping one
|
|
1175
|
+
agent](RUNAWAY_AGENTS.md#stopping-one-agent)), and its label. A
|
|
1176
|
+
`Finished Agents:` section follows, with a line per agent as it
|
|
1177
|
+
finishes (held until every agent has started, so the sections don't
|
|
1178
|
+
mix): `✓` or `✗`, its duration, its label (e.g.
|
|
960
1179
|
`#2 openai / gpt-6.1-sol`) and, for a failure, the reason on the line
|
|
961
1180
|
below; any warnings about an agent (such as tool calls Claude Code
|
|
962
|
-
refused) follow as indented `Warning:` lines, under its
|
|
1181
|
+
refused) follow as indented `Warning:` lines, under its finish line or,
|
|
963
1182
|
for the consolidator, under its result row. When all reviews finish, a `Reviews` table shows which models
|
|
964
1183
|
succeeded, how long each took (`HH:MM:SS`) and their token usage in
|
|
965
|
-
`In`, `Cached`, `Out`, and `Cost` columns (`In` counts cached input too;
|
|
966
|
-
`-` 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,
|
|
967
1186
|
see [How far to trust the cost](#how-far-to-trust-the-cost)), with the failures'
|
|
968
1187
|
reasons listed below it under `Errors:`. A
|
|
969
1188
|
`--- Reviews complete (N/M succeeded; <total usage>) ---` line follows,
|
|
@@ -973,8 +1192,8 @@ cost of the analysts whose cost is known follows, e.g. `; $0.12 for the 2 of 3 a
|
|
|
973
1192
|
a known cost`. The total notes `(from K of M agents)` when some reported no usage (as some
|
|
974
1193
|
providers don't). With a consolidator,
|
|
975
1194
|
the `Consolidation Report (in <run dir>):` heading (with
|
|
976
|
-
`--consolidate`, `(in <run dir>, from N review(s)):`) then prints
|
|
977
|
-
|
|
1195
|
+
`--consolidate`, `(in <run dir>, from N review(s)):`) then prints, then
|
|
1196
|
+
its `- pid` line as it starts, its result row when it finishes, and finally `--- Consolidation
|
|
978
1197
|
complete ---` (or `--- Consolidation error ---`). One model's failure
|
|
979
1198
|
does not affect the others. Exit status is 0 only if every analyst
|
|
980
1199
|
agent succeeded; the consolidator's result doesn't affect it.
|
|
@@ -989,41 +1208,42 @@ which default was picked up.
|
|
|
989
1208
|
|
|
990
1209
|
### How far to trust the cost
|
|
991
1210
|
|
|
992
|
-
Every
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
and
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
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.
|
|
1019
1237
|
|
|
1020
1238
|
## How it works (and what the agents are told)
|
|
1021
1239
|
|
|
1022
|
-
- Every analyst agent receives the **same
|
|
1023
|
-
contents (with one trailing newline removed), a blank
|
|
1024
|
-
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
|
|
1025
1243
|
(`lib/agent_council/templates/analyst_format.md`, copied into each run
|
|
1026
|
-
dir), piped to the agent's harness on stdin
|
|
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
|
|
1027
1247
|
Markdown report with `##` section headings, which can conflict with a
|
|
1028
1248
|
prompt that asks for some other output form (the smoke-test prompt's
|
|
1029
1249
|
"Reply with just the number, then one sentence explaining how you got
|
|
@@ -1107,11 +1327,40 @@ usage page.
|
|
|
1107
1327
|
agent whose turn fails (say, a model your account can't use) is
|
|
1108
1328
|
reported with the reason Codex gives. [`DESIGN.md`](DESIGN.md) §13
|
|
1109
1329
|
has the details.
|
|
1330
|
+
- Under OpenCode, each agent runs as
|
|
1331
|
+
`opencode run --format json --agent build --model P/M`:
|
|
1332
|
+
- `OPENCODE_CONFIG_CONTENT`, merged over your config and the
|
|
1333
|
+
project's, adds the scaffolding as an `instructions` file and the
|
|
1334
|
+
settings listed under OpenCode in [Choosing a
|
|
1335
|
+
harness](#choosing-a-harness).
|
|
1336
|
+
- `OPENCODE_DB`, a database in the scratch directory, keeps agents
|
|
1337
|
+
independent: no session is added to your history.
|
|
1338
|
+
- No `--auto` is passed, so a tool call your permissions set to `ask`
|
|
1339
|
+
is refused, with a warning; `experimental.continue_loop_on_deny`
|
|
1340
|
+
lets the agent go on.
|
|
1341
|
+
- The final response is the text of the last message with text; an
|
|
1342
|
+
`error` event fails the agent, whatever the exit status, and so does
|
|
1343
|
+
a model request cut off or failed (by the token limit, a content
|
|
1344
|
+
filter, or an error) if it was the last one or the report's.
|
|
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.
|
|
1110
1359
|
- The tool limits above are the only restrictions
|
|
1111
1360
|
agent-council enforces (see [Safety and
|
|
1112
1361
|
privacy](#safety-and-privacy)). A fixed scaffolding text appended to
|
|
1113
|
-
the system prompt (
|
|
1114
|
-
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,
|
|
1115
1364
|
software, or configuration, or start persistent services (they get a
|
|
1116
1365
|
scratch directory for temporary files); not to act outside the machine
|
|
1117
1366
|
(post, comment, or change remote data, MCP tools included); and,
|
|
@@ -1133,49 +1382,71 @@ usage page.
|
|
|
1133
1382
|
|
|
1134
1383
|
## Safety and privacy
|
|
1135
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
|
+
|
|
1136
1392
|
agent-council does not sandbox the agents (Claude Code's own sandbox,
|
|
1137
1393
|
off by default, restricts Claude Code agents' commands if Claude
|
|
1138
1394
|
Code's settings enable it, and the analyzed repository's settings can
|
|
1139
1395
|
enable or disable it; see
|
|
1140
1396
|
[Claude Code's sandbox](#claude-codes-sandbox); Codex's, whatever your
|
|
1141
1397
|
Codex config's `sandbox_mode` sets, restricts Codex agents; see
|
|
1142
|
-
[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`).
|
|
1143
1401
|
Before running it, know that:
|
|
1144
1402
|
|
|
1145
1403
|
- **Agents have a shell.** Each agent, the consolidator included, gets a
|
|
1146
|
-
shell tool (pi's `bash`, Claude Code's `Bash`,
|
|
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
|
|
1147
1406
|
the directory you run from, with your environment (including any API
|
|
1148
|
-
keys in it; agent-council only sets `TMPDIR
|
|
1149
|
-
|
|
1407
|
+
keys in it; agent-council only sets `TMPDIR`, to the agent's scratch
|
|
1408
|
+
directory, and, by harness, `CLAUDE_CODE_TMPDIR` (the same directory)
|
|
1409
|
+
or `OPENCODE_DB` and `OPENCODE_CONFIG_CONTENT`), your file
|
|
1410
|
+
permissions, and
|
|
1150
1411
|
your network access (for Claude Code agents, unless its sandbox
|
|
1151
1412
|
restricts writes and network access; for Codex agents, unless your
|
|
1152
|
-
Codex config allows it, its sandbox blocks network access
|
|
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
|
|
1153
1416
|
`edit` and `write` (and the Windows-only `powershell`) are withheld;
|
|
1417
|
+
of OpenCode's, the file-editing ones, unless your config or the
|
|
1418
|
+
project's allows them;
|
|
1154
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
|
|
1155
1422
|
Codex's, none, so Codex agents also have its file-editing tool, and
|
|
1156
1423
|
only Codex's sandbox limits what they can write. The
|
|
1157
|
-
read-only rules described above are instructions in the system prompt,
|
|
1158
|
-
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.
|
|
1159
1426
|
- **Agents get your MCP servers.** Every harness loads the MCP servers
|
|
1160
1427
|
it would load for you interactively, so agents can use their tools:
|
|
1161
1428
|
the ones you've configured, the analyzed project's (for pi and Codex,
|
|
1162
|
-
if you trust the project; for Claude Code, those you've approved
|
|
1163
|
-
those
|
|
1429
|
+
if you trust the project; for Claude Code, those you've approved; for
|
|
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
|
|
1164
1434
|
provide, and Codex's bundled apps connectors (GitHub and others). A
|
|
1165
1435
|
server that writes (posting to chat, commenting on an issue, changing a ticket or a database) is as
|
|
1166
1436
|
available to a pi agent as it is to you, and only the read-only
|
|
1167
1437
|
instructions keep the agent from using it. In a council, that would
|
|
1168
1438
|
happen once per agent: five agents, five comments. Each agent also
|
|
1169
1439
|
starts every server it loads, so a server that does something merely
|
|
1170
|
-
by starting does it once per agent. Claude Code
|
|
1171
|
-
an MCP tool only if your settings or config (or, for Claude
|
|
1172
|
-
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
|
|
1173
1443
|
they can't ask (see [Choosing a harness](#choosing-a-harness)); pi
|
|
1174
|
-
agents can call any MCP tool pi gives them
|
|
1444
|
+
agents can call any MCP tool pi gives them, and OpenCode agents any
|
|
1445
|
+
that their permissions don't set to `ask` or `deny`. The read-only instructions
|
|
1175
1446
|
tell agents not to act outside the machine (post, comment, or change
|
|
1176
1447
|
records), but they are only instructions. Before a run, remove or
|
|
1177
|
-
disable servers you don't want agents to have (in pi, Claude Code,
|
|
1178
|
-
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
|
|
1179
1450
|
plugin that provides them; Codex's apps connectors are its `apps`
|
|
1180
1451
|
feature), or run in an environment without them.
|
|
1181
1452
|
- **pi agents can call other models.** `codemode`, which every pi agent
|
|
@@ -1185,12 +1456,15 @@ Before running it, know that:
|
|
|
1185
1456
|
script passes it to any model pi has credentials for, billed to you
|
|
1186
1457
|
(its usage is counted in the agent's). The read-only instructions
|
|
1187
1458
|
don't limit it.
|
|
1188
|
-
- **Your pi extensions, your Claude Code hooks
|
|
1189
|
-
Codex skills, plugins, and trusted hooks,
|
|
1190
|
-
|
|
1459
|
+
- **Your pi extensions, your OpenCode plugins, your Claude Code hooks
|
|
1460
|
+
and plugins, your Codex skills, plugins, and trusted hooks, and your
|
|
1461
|
+
Antigravity hooks, skills, and plugins load.**
|
|
1462
|
+
Extensions you've installed load for every pi agent, as you, and
|
|
1463
|
+
OpenCode plugins, yours and the project's, for every OpenCode agent.
|
|
1191
1464
|
Your Claude Code hooks and plugins run for every Claude Code agent, as
|
|
1192
1465
|
you, and so do hooks the analyzed repository's `.claude` settings
|
|
1193
|
-
define (see the next item).
|
|
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
|
|
1194
1468
|
for the project, so your memory notes go to their provider, and an
|
|
1195
1469
|
agent may add or change a memory file (with `Bash`), as an
|
|
1196
1470
|
interactive session may. `CLAUDE_CODE_DISABLE_AUTO_MEMORY=1` in the
|
|
@@ -1199,7 +1473,11 @@ Before running it, know that:
|
|
|
1199
1473
|
repository's files, and the harness loads the repository's context
|
|
1200
1474
|
files and settings: pi its context files (such as `AGENTS.md`) and, if
|
|
1201
1475
|
the project is trusted, its `.pi` resources; Codex its `AGENTS.md`
|
|
1202
|
-
files and, if you trust the project, its `.codex` config;
|
|
1476
|
+
files and, if you trust the project, its `.codex` config; OpenCode its
|
|
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);
|
|
1480
|
+
Claude Code its
|
|
1203
1481
|
`CLAUDE.md` files and `.claude` settings, which apply without the
|
|
1204
1482
|
trust prompt an interactive session would show first (their hooks,
|
|
1205
1483
|
for one, run commands; checked). So the repository can direct what
|
|
@@ -1216,7 +1494,10 @@ Before running it, know that:
|
|
|
1216
1494
|
and the output of whatever it runs, is sent to that agent's provider
|
|
1217
1495
|
(for a Claude Code agent, wherever your `claude` sends it: Anthropic,
|
|
1218
1496
|
unless it is set up for another; for a Codex agent, wherever your
|
|
1219
|
-
`codex` sends it: OpenAI, unless its config names another provider
|
|
1497
|
+
`codex` sends it: OpenAI, unless its config names another provider;
|
|
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
|
|
1220
1501
|
consolidator's provider receives the prompt and all reports, plus
|
|
1221
1502
|
anything the consolidator itself reads or runs. Check those providers'
|
|
1222
1503
|
data policies before analyzing private code.
|
|
@@ -1282,11 +1563,12 @@ checked; most apply on any platform, the last two were checked on Linux.
|
|
|
1282
1563
|
the environment you run agent-council from.
|
|
1283
1564
|
- **Commands ran unsandboxed** in a check where a socket path under the
|
|
1284
1565
|
temporary directory exceeded the Unix limit of about 108 bytes.
|
|
1285
|
-
agent-council sets each agent's `TMPDIR
|
|
1566
|
+
agent-council sets each agent's `TMPDIR`, and each Claude Code agent's
|
|
1567
|
+
`CLAUDE_CODE_TMPDIR`, to a
|
|
1286
1568
|
scratch directory inside your own temporary directory (from `TMPDIR`,
|
|
1287
1569
|
`TMP`, or `TEMP`, else `/tmp`), which adds about 36 bytes, so keep
|
|
1288
1570
|
yours short, e.g. `TMPDIR=/tmp agent-council ...`. A
|
|
1289
|
-
`CLAUDE_CODE_TMPDIR` of your own doesn't reach agents.
|
|
1571
|
+
`CLAUDE_CODE_TMPDIR` of your own doesn't reach Claude Code agents.
|
|
1290
1572
|
|
|
1291
1573
|
### Codex's sandbox
|
|
1292
1574
|
|
|
@@ -1322,7 +1604,8 @@ directory layout, and report front matter may change incompatibly before 1.0.
|
|
|
1322
1604
|
## Development
|
|
1323
1605
|
|
|
1324
1606
|
In a git checkout (the gemspec lists files with `git ls-files`),
|
|
1325
|
-
`./exe/agent-council
|
|
1607
|
+
`./exe/agent-council`, `./exe/agent-council-ps`, and `./exe/pi-models` are
|
|
1608
|
+
equivalent to the installed `agent-council`, `agent-council-ps`, and
|
|
1326
1609
|
`pi-models`. Agents analyze the working directory, so running
|
|
1327
1610
|
`./exe/agent-council` from the checkout analyzes agent-council itself; to
|
|
1328
1611
|
analyze another project, `cd` there and run the checkout's executable by
|