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.
- checksums.yaml +4 -4
- data/CAUTIONS.md +254 -0
- data/DESIGN.md +57 -16
- data/INSTALL.md +13 -10
- data/README.md +214 -96
- data/RELEASE_NOTES.md +40 -0
- data/RUNAWAY_AGENTS.md +10 -6
- data/USE_CASES.md +3 -3
- data/examples/configs/antigravity.yml +20 -0
- data/examples/configs/mixed-harness.yml +10 -7
- data/exe/agent-council +3 -1
- data/lib/agent_council/harnesses/antigravity_harness.rb +249 -0
- data/lib/agent_council/harnesses/harness.rb +8 -0
- data/lib/agent_council/harnesses/opencode_harness.rb +2 -2
- data/lib/agent_council/harnesses/scaffold.rb +4 -2
- data/lib/agent_council/harnesses.rb +4 -1
- data/lib/agent_council/version.rb +1 -1
- data/lib/agent_council/worker_pool.rb +1 -1
- data/lib/agent_council.rb +15 -10
- metadata +8 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94800af13248204864b3c13c3cc94487e314c5dc574dab4dddc2ea79f02ae529
|
|
4
|
+
data.tar.gz: 942f69cd7c1d8897a30feaf1c93860452d52c076575a95cc7e8d77c1e9706085
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 774e38907a9840812248627a53b18e230ba4108e257a461abaf22e0a65ab8f2b63c3fa49b2d2adadc8e37a880208432bb79bdcec349f0013af47e872c8913270
|
|
7
|
+
data.tar.gz: 9ebd22f12be3e2335785acc7bda4d2291ae5f7825fe93bbbf2c78a0534793f7ea6ad5d09c7e29cf6c2ab72aeea0e497604ef77350917b24a7db8ed6e1d0df346
|
data/CAUTIONS.md
ADDED
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
# Cautions and Disclaimers
|
|
2
|
+
|
|
3
|
+
`agent-council` is a thin process orchestrator. It invokes third-party AI
|
|
4
|
+
coding-agent harnesses (`pi`, `opencode`, `claude`, `codex`, `agy`, and any
|
|
5
|
+
harness added in the future) concurrently in your working directory,
|
|
6
|
+
running as your user account, and collects their final text responses.
|
|
7
|
+
|
|
8
|
+
It is **not** a sandbox, a security boundary, a spend cap, a billing
|
|
9
|
+
auditor, or a verifier of AI output. By running `agent-council`, you
|
|
10
|
+
accept sole responsibility for the harnesses you configure, the data they
|
|
11
|
+
access and transmit, the money and quotas they consume, and any decisions
|
|
12
|
+
you make from their reports. Under the MIT license in
|
|
13
|
+
[`LICENSE.txt`](LICENSE.txt), the software is provided as is, without
|
|
14
|
+
warranty of any kind, and the authors and copyright holders disclaim
|
|
15
|
+
liability for any claim or damages.
|
|
16
|
+
|
|
17
|
+
Read this document before running `agent-council` on private code,
|
|
18
|
+
untrusted repositories, or pay-per-token accounts.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Division of responsibility
|
|
23
|
+
|
|
24
|
+
### Harness security and upstream drift
|
|
25
|
+
|
|
26
|
+
- **You own each harness's security posture.** Every harness is an
|
|
27
|
+
independent third-party CLI with its own permission system, sandbox (if
|
|
28
|
+
any), plugin/extension/hook loader, MCP client, credential handling,
|
|
29
|
+
and data policies. `agent-council` runs each harness largely as an
|
|
30
|
+
interactive session would, inheriting your user account, file
|
|
31
|
+
permissions, network access, and environment variables. Configuring,
|
|
32
|
+
hardening, and keeping each harness up to date is your responsibility.
|
|
33
|
+
- **Harnesses change faster than this documentation.** Upstream CLI
|
|
34
|
+
updates frequently change flags, defaults, trust prompts, sandbox
|
|
35
|
+
enforcement, toolsets, and subagent behavior. Any "checked with version
|
|
36
|
+
X" note in [`README.md`](README.md) or [`DESIGN.md`](DESIGN.md) is a
|
|
37
|
+
point-in-time observation from development, **not a guarantee** that
|
|
38
|
+
your installed version behaves the same way. A harness update can
|
|
39
|
+
silently weaken a restriction or change what gets logged or billed
|
|
40
|
+
without `agent-council` detecting it. Consult each harness's own
|
|
41
|
+
documentation and test upgrades in a safe environment.
|
|
42
|
+
- **Read-only rules are advisory, not enforced.** The scaffolding
|
|
43
|
+
appended to each agent's system prompt (or prepended to the user
|
|
44
|
+
message for Antigravity, which has no system-prompt flag) tells agents
|
|
45
|
+
not to modify files, git state, configuration, or remote services. Those are
|
|
46
|
+
instructions to an LLM, which a model can ignore, misinterpret, or be
|
|
47
|
+
prompt-injected into violating. Every harness retains a shell tool
|
|
48
|
+
running as you; some harnesses also retain built-in file-editing tools
|
|
49
|
+
(Codex) or allow user or project configuration to re-enable them
|
|
50
|
+
(OpenCode).
|
|
51
|
+
- **Untrusted repositories can run code and steer agents.** Harnesses
|
|
52
|
+
load project context files (`AGENTS.md`, `CLAUDE.md`) and, depending on
|
|
53
|
+
the harness, project settings, hooks, plugins, or MCP server
|
|
54
|
+
definitions — in some cases without any interactive trust prompt (such
|
|
55
|
+
as Claude Code's `.claude` hooks under `-p` and OpenCode's
|
|
56
|
+
`opencode.json`, or subject to workspace trust such as Antigravity's
|
|
57
|
+
`.agents/hooks.json`). Files in the repository can also prompt-inject agents
|
|
58
|
+
into executing commands or calling tools. Prompts that permit tests,
|
|
59
|
+
linters, or builds execute the repository's own code directly.
|
|
60
|
+
- **MCP servers, extensions, plugins, hooks, and auto memory.** Every
|
|
61
|
+
harness loads what it would load interactively. A write-capable MCP
|
|
62
|
+
server (chat, issue trackers, ticket systems, databases, cloud APIs) or
|
|
63
|
+
a server with startup side effects can fire **once per agent** in a
|
|
64
|
+
council. Under `pi`, agents also receive `codemode` and its `models`
|
|
65
|
+
API, which can call other models billed to you. Before running, disable
|
|
66
|
+
or remove servers, extensions, plugins, hooks, and memory features you
|
|
67
|
+
do not want council agents to use. See
|
|
68
|
+
[Safety and privacy](README.md#safety-and-privacy) for the
|
|
69
|
+
harness-specific mechanics and opt-outs.
|
|
70
|
+
|
|
71
|
+
**Practical rule:** run `agent-council` only on repositories you trust,
|
|
72
|
+
or inside a container, VM, or disposable checkout that holds no
|
|
73
|
+
credentials or data you are unwilling to expose.
|
|
74
|
+
|
|
75
|
+
### Financial, quota, and Terms of Service exposure
|
|
76
|
+
|
|
77
|
+
- **No spend cap, token cap, or time limit.** `agent-council` has no
|
|
78
|
+
built-in budget or timeout. A council multiplies spend (every analyst,
|
|
79
|
+
plus consolidation, plus any later `--consolidate` reruns), and a
|
|
80
|
+
single runaway agent can consume money and rate-limit quota for hours
|
|
81
|
+
until stopped. See [`RUNAWAY_AGENTS.md`](RUNAWAY_AGENTS.md) for
|
|
82
|
+
monitoring with `agent-council-ps`, stopping one agent by PID, and
|
|
83
|
+
timeboxing runs with `timeout`.
|
|
84
|
+
- **Authentication and billing are controlled by each harness.**
|
|
85
|
+
`agent-council` sets no credentials or billing flags. Subtle surprises
|
|
86
|
+
exist: for example, unlike interactive mode, `claude -p` silently uses
|
|
87
|
+
an `ANTHROPIC_API_KEY` in your environment without prompting, billing
|
|
88
|
+
API rates instead of your subscription. Subscription logins share usage
|
|
89
|
+
limits with your interactive work, and parallel agents exhaust them
|
|
90
|
+
much faster.
|
|
91
|
+
- **Terms of Service compliance.** You are responsible for ensuring that
|
|
92
|
+
your use of each harness, login method, and provider — including
|
|
93
|
+
parallel or automated runs under subscription plans or third-party
|
|
94
|
+
harnesses — complies with the applicable Terms of Service.
|
|
95
|
+
|
|
96
|
+
### Data privacy and confidentiality
|
|
97
|
+
|
|
98
|
+
- **Everything an agent reads or runs goes to its provider.** Source
|
|
99
|
+
files, git history, untracked files (including `.env` or local secrets),
|
|
100
|
+
environment variables printed by shell commands, project auto-memory
|
|
101
|
+
notes, and MCP tool responses are sent to that agent's configured
|
|
102
|
+
provider. The consolidator's provider receives the original prompt,
|
|
103
|
+
every analyst's report, and anything the consolidator itself reads or
|
|
104
|
+
runs.
|
|
105
|
+
- **No secret redaction or data-loss prevention.** `agent-council` does
|
|
106
|
+
not scrub secrets, tokens, PII, or proprietary code from prompts,
|
|
107
|
+
command output, or saved reports. Review every configured provider's
|
|
108
|
+
data-retention and training policies before analyzing private projects,
|
|
109
|
+
and add `agent-council-reports/` to `.gitignore` if you do not want
|
|
110
|
+
reports committed.
|
|
111
|
+
|
|
112
|
+
### Repository side effects and process cleanup
|
|
113
|
+
|
|
114
|
+
- **Live working directory and harness files.** Agents run concurrently
|
|
115
|
+
in your actual working directory, not an isolated copy. Even if agents
|
|
116
|
+
follow the read-only instructions, harnesses themselves may write files
|
|
117
|
+
outside `$TMPDIR` — such as harness logs, Claude Code auto memory,
|
|
118
|
+
`.opencode/.gitignore`, or Antigravity's persisted conversation
|
|
119
|
+
databases under `~/.gemini/antigravity-cli/conversations/`.
|
|
120
|
+
- **Imperfect cleanup on interruption.** Sending a second Ctrl-C,
|
|
121
|
+
killing `agent-council` with `SIGKILL`, or stopping a harness that does
|
|
122
|
+
not terminate its own child processes on `SIGTERM` (observed with
|
|
123
|
+
OpenCode) can leave child commands running and scratch directories
|
|
124
|
+
behind.
|
|
125
|
+
|
|
126
|
+
### AI output reliability and false consensus
|
|
127
|
+
|
|
128
|
+
- **Agreement across models is not proof of correctness.** Running
|
|
129
|
+
several models surfaces blind spots, but consensus does not establish
|
|
130
|
+
truth. Models share training corpora, common misconceptions, and blind
|
|
131
|
+
spots; every analyst can independently agree on a wrong claim or be
|
|
132
|
+
steered by the same misleading comment, stale doc, or prompt injection
|
|
133
|
+
in the repository.
|
|
134
|
+
- **The consolidator is an LLM too.** It can misattribute findings,
|
|
135
|
+
drop caveats, gloss over real contradictions, or hallucinate
|
|
136
|
+
verification results. Treat reports as analytical input — verify
|
|
137
|
+
important findings, security claims, and proposed fixes against the
|
|
138
|
+
code and tests before acting on them.
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Token counts and cost estimates: why they are unreliable
|
|
143
|
+
|
|
144
|
+
Treat every token count and dollar figure `agent-council` prints (in the
|
|
145
|
+
`Est. Cost` columns, summaries, and report metadata tables) or writes to
|
|
146
|
+
`run.json` as a **rough, incomplete, best-effort signal — never as a
|
|
147
|
+
bill, an accounting record, or a precise cross-provider benchmark.**
|
|
148
|
+
|
|
149
|
+
`agent-council` does not meter API traffic or query provider billing
|
|
150
|
+
APIs. It simply parses and sums whatever each harness happens to emit in
|
|
151
|
+
its output stream. Actual charges and true token consumption can differ
|
|
152
|
+
from the reported numbers in **either** direction — sometimes by an order
|
|
153
|
+
of magnitude or more — for all of the reasons below.
|
|
154
|
+
|
|
155
|
+
### Missing and uncounted work
|
|
156
|
+
|
|
157
|
+
- **Subagents, child agents, and delegated workflows.** Coding-agent
|
|
158
|
+
harnesses that can spawn subagents, background workers, or multi-agent
|
|
159
|
+
workflows (such as OpenCode's `task` tool, or any other harness with
|
|
160
|
+
subagent fan-out) frequently **omit** child agents' token usage and
|
|
161
|
+
cost from the parent agent's event stream, aggregate them incompletely,
|
|
162
|
+
or price them under the parent's model instead of the child's. Because
|
|
163
|
+
one parent agent can fan out into many subagents, missing subagent
|
|
164
|
+
usage can easily hide the majority of a run's actual tokens and cost.
|
|
165
|
+
- **Hidden and auxiliary harness LLM calls.** Harnesses often make
|
|
166
|
+
background model calls outside the main turn stream: context compaction
|
|
167
|
+
and summarization, session title generation (disabled for OpenCode, not
|
|
168
|
+
necessarily elsewhere), memory extraction, tool routing or
|
|
169
|
+
classification, and web-search synthesis. Depending on the harness,
|
|
170
|
+
these calls may never appear in reported usage.
|
|
171
|
+
- **Tool- and MCP-side spend and non-token surcharges.** An MCP server
|
|
172
|
+
may call LLMs or paid external APIs of its own, completely invisible to
|
|
173
|
+
the harness. Built-in tools can also invoke other models at your
|
|
174
|
+
expense (`pi` counts `codemode`'s `models` API usage in the agent's
|
|
175
|
+
totals, though it can call models not listed in your config; other
|
|
176
|
+
harnesses may not report tool-side model calls at all). Providers also
|
|
177
|
+
charge non-token fees — web search, grounding, code-execution
|
|
178
|
+
sandboxes, image generation, or storage — that per-token estimates do
|
|
179
|
+
not capture.
|
|
180
|
+
- **Stopped, failed, and retried work.**
|
|
181
|
+
- Stopping a run with Ctrl-C (or another signal to `agent-council`)
|
|
182
|
+
records **no usage** for interrupted agents and writes no `run.json`
|
|
183
|
+
if reviews have not finished. A runaway agent you stop — often the
|
|
184
|
+
most expensive agent in the run — is completely absent from the
|
|
185
|
+
totals, even though your provider bills every token it spent.
|
|
186
|
+
- Stopping one agent by PID records only what its stream had already
|
|
187
|
+
emitted. Under Claude Code (which reports totals only in its final
|
|
188
|
+
`result` event) and Codex (which reports totals only in
|
|
189
|
+
`turn.completed`), a killed agent — or a Codex agent whose turn
|
|
190
|
+
failed — records **no usage at all** (Antigravity emits a terminal
|
|
191
|
+
`result` with usage on graceful `SIGTERM`, but reports none if
|
|
192
|
+
killed with `SIGKILL`).
|
|
193
|
+
- Harnesses retry transient provider errors (429s, 5xxs, dropped
|
|
194
|
+
streams). Whether failed or retried attempts appear in the final
|
|
195
|
+
usage depends on the harness and provider.
|
|
196
|
+
|
|
197
|
+
### Pricing and billing mismatches
|
|
198
|
+
|
|
199
|
+
- **Subscriptions and flat-rate plans.** On a subscription or plan (a
|
|
200
|
+
Claude Code login, a Codex ChatGPT login, a Google AI Antigravity
|
|
201
|
+
subscription, or a plan-based provider such
|
|
202
|
+
as `opencode-go`), dollar figures are notional estimates calculated at
|
|
203
|
+
pay-per-token API list prices. Your extra cash charge for a run may be
|
|
204
|
+
`$0`, while the run burns opaque plan limits or rate-limit windows that
|
|
205
|
+
dollar estimates do not measure.
|
|
206
|
+
- **Stale, incomplete, or mismatched price tables.** `pi` and OpenCode
|
|
207
|
+
price usage from their own bundled model catalogs, Claude Code prices
|
|
208
|
+
at Anthropic's API list prices, and Codex and Antigravity report no
|
|
209
|
+
price at all.
|
|
210
|
+
Bundled price tables go stale whenever providers adjust rates, and they
|
|
211
|
+
commonly miss:
|
|
212
|
+
- **Long-context tiered pricing** (surcharges once a request exceeds a
|
|
213
|
+
context threshold such as 200k tokens);
|
|
214
|
+
- **Cache TTL and write multipliers** (e.g. 5-minute vs. 1-hour prompt
|
|
215
|
+
caching rates, or provider-specific cache-read discounts);
|
|
216
|
+
- **Service tiers and hosting markups** (priority/fast vs. batch/flex
|
|
217
|
+
pricing, Bedrock/Vertex/Azure regional markups, and aggregator or
|
|
218
|
+
router fees such as OpenRouter upstream variance);
|
|
219
|
+
- **Account-specific rates** (enterprise discounts, committed-use
|
|
220
|
+
pricing, promotional credits, or free tiers).
|
|
221
|
+
Models absent from a harness's price table get no cost at all, and a
|
|
222
|
+
`$0` cost renders as `-` in tables.
|
|
223
|
+
|
|
224
|
+
### Token-counting and comparison pitfalls
|
|
225
|
+
|
|
226
|
+
- **Tokenizers differ across model families.** The same codebase produces
|
|
227
|
+
different token counts under different tokenizers, so raw token counts
|
|
228
|
+
are not directly comparable across model families.
|
|
229
|
+
- **Reasoning and thinking tokens are counted inconsistently.** Providers
|
|
230
|
+
and harnesses vary in whether reasoning tokens are folded into
|
|
231
|
+
`output`, reported separately, omitted from visible counts, or billed
|
|
232
|
+
at different rates.
|
|
233
|
+
- **Input counts are cumulative across turns.** A figure like `1.4M in`
|
|
234
|
+
sums every turn's prompt as the agent re-reads its growing conversation
|
|
235
|
+
history (mostly cached). It does **not** mean the agent read 1.4M
|
|
236
|
+
unique tokens of repository files.
|
|
237
|
+
- **Cross-harness comparisons include harness overhead.** Even for the
|
|
238
|
+
exact same model and provider, different harnesses send different
|
|
239
|
+
system prompts, tool schemas, MCP definitions, project context files,
|
|
240
|
+
and compaction prompts. Differences in reported tokens or estimated
|
|
241
|
+
cost across harnesses reflect harness design as much as model
|
|
242
|
+
efficiency.
|
|
243
|
+
- **Partial and separated totals.**
|
|
244
|
+
- When a run mixes priced and unpriced agents (such as Codex alongside
|
|
245
|
+
`pi`), `total_usage` in `run.json` omits `cost` and the console
|
|
246
|
+
summary prints only the partial sum (`for the K of M agents with a
|
|
247
|
+
known cost`). Do not mistake that partial sum for the run's total
|
|
248
|
+
cost.
|
|
249
|
+
- The `Reviews complete` summary covers **only the review analysts**;
|
|
250
|
+
the consolidator's estimated cost is printed separately below it, and
|
|
251
|
+
any later `--consolidate` reruns add further spend.
|
|
252
|
+
|
|
253
|
+
**Always check your provider's billing, usage, or quota dashboard for
|
|
254
|
+
what you were actually charged or how much of your plan was consumed.**
|
data/DESIGN.md
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
The long-term goal is to collect genuinely different viewpoints on the same question from multiple harness/model instances, and, because every instance gets the identical task, to compare those instances against each other on speed, token usage, cost, and quality.
|
|
6
6
|
|
|
7
|
-
This repository is the first step: it varies the models and, per agent, the harness, which is Pi or OpenCode (for any provider's models), Claude Code (for Anthropic's),
|
|
7
|
+
This repository is the first step: it varies the models and, per agent, the harness, which is Pi or OpenCode (for any provider's models), Claude Code (for Anthropic's), Codex (for OpenAI's), or Google Antigravity (for models served through `agy`, including Gemini, Claude, and GPT models). More harnesses may follow (§18).
|
|
8
8
|
|
|
9
9
|
It is packaged as a gem for easy installation, but it is intentionally not a general-purpose framework.
|
|
10
10
|
|
|
11
|
-
agent-council is a small Ruby CLI that runs the **same prompt** through several AI harness/provider/model combinations, under the Pi, OpenCode, Claude Code, or
|
|
11
|
+
agent-council is a small Ruby CLI that runs the **same prompt** through several AI harness/provider/model combinations, under the Pi, OpenCode, Claude Code, Codex, or Antigravity coding-agent harness, and saves each final response to a deterministic Markdown file.
|
|
12
12
|
|
|
13
13
|
The objective is utility, not completeness. Given a config (§5), one command:
|
|
14
14
|
|
|
@@ -62,7 +62,7 @@ For example:
|
|
|
62
62
|
|
|
63
63
|
## 4. Architecture
|
|
64
64
|
|
|
65
|
-
There are
|
|
65
|
+
There are five harnesses, pi, Claude Code, Codex, OpenCode, and Antigravity, and the orchestration is harness-agnostic: it looks up each agent's harness class by its config entry's `harness` key (§5) in `AgentCouncil::Harnesses::BY_NAME` (`lib/agent_council/harnesses.rb`), so another harness is another such class, added there. Every config entry names its harness (§5); reports and `run.json` entries always record theirs, and one that gives none (hand-edited, or older than 0.1.0, when every agent ran under pi) is read as pi's. Each is a subclass of `AgentCouncil::Harnesses::Harness` (`lib/agent_council/harnesses/harness.rb`), used through class methods, never instantiated: it defines `NAME`, `argv`, `usage`, `error_message`, `final_response`, and `assistant_messages`, and inherits defaults for `env`, `stdin_data`, `exit_detail`, and `warnings` unless it overrides them, and for `model_label`, which reads an agent's provider and model back from its command line for `agent-council-ps`; `NAME` is both the config value and the executable that `argv` runs, which the startup check looks for on `PATH`, and goes into filenames unsanitized, so it must be filename-safe. In `Harness`, the methods a harness must define raise `NoMethodError`, as calling a missing method would, so a harness missing one fails only its agents, not the whole run. `env` gives the variables an agent's process needs beyond its `TMPDIR` (Claude Code's `CLAUDE_CODE_TMPDIR`, OpenCode's database and injected config, §11), each a String, and may write files into the scratch dir. `stdin_data` transforms the prompt bytes piped to stdin (by default unchanged; Antigravity wraps the prompt with the scaffolding as an NDJSON user message, §11). Claude Code, Codex, and Antigravity take no provider argument, so their entries' provider only labels the agent. The scaffolding text (§10) is shared.
|
|
66
66
|
|
|
67
67
|
**Labels.** The short labels (`#1 provider / model`) don't show the harness. They appear in the lines printed as agents start and finish, result tables, the consolidation prompt, and a consolidated report's `### Sources` table and `sources` front matter. The startup agent list, each report's byline table, and the findings file's legend (`#1 pi / provider / model`) do show it. Short labels don't need the harness to stay unique: the only ones used as lookup keys are the analysts', which match reports to their `run.json` entries and to the configured agents, and each carries its agent number. Nor does the consolidator need it in the labels, since each report it reads states its harness in its byline (§12). So they stay as they are, and a mixed run's output reads the same as before.
|
|
68
68
|
|
|
@@ -76,6 +76,7 @@ Ruby CLI
|
|
|
76
76
|
+-- Claude Code + model C
|
|
77
77
|
+-- Codex + model D
|
|
78
78
|
+-- OpenCode + model E
|
|
79
|
+
+-- Antigravity + model F
|
|
79
80
|
```
|
|
80
81
|
|
|
81
82
|
---
|
|
@@ -114,9 +115,9 @@ consolidator: # optional; synthesizes the agents' reports (§12)
|
|
|
114
115
|
model: MODEL_ID_HERE
|
|
115
116
|
```
|
|
116
117
|
|
|
117
|
-
Every entry gives `harness`, `provider`, and `model`, each a nonblank string; there are no defaults, and no `defaults:` section supplying them (one was considered and rejected). A default harness or provider would go stale as harnesses change (pi is the right default only as long as it is), and a `defaults:` section's provider would apply across harnesses whose providers differ. `harness` is `pi`, `claude`, `codex`, or `
|
|
118
|
+
Every entry gives `harness`, `provider`, and `model`, each a nonblank string; there are no defaults, and no `defaults:` section supplying them (one was considered and rejected). A default harness or provider would go stale as harnesses change (pi is the right default only as long as it is), and a `defaults:` section's provider would apply across harnesses whose providers differ. `harness` is `pi`, `claude`, `codex`, `opencode`, or `agy`; an unknown one is rejected at startup (with `--consolidate`, only the consolidator's, since no analysts run). A `claude` entry's provider is not passed to Claude Code (§4) and only labels the agent (e.g. `bedrock`, for a `claude` set up to use it); likewise a `codex` entry's (since Codex uses the `model_provider` its config names) and an `agy` entry's. A config error lists every bad entry, each named by its key (`'agents' entry #2`, `'consolidator'`) with every problem it has, so one edit fixes them all; when an entry gives no harness, a line saying what every entry needs follows, and, if no entry gives one (as in a 0.1.0 config, which ran everything under pi), a hint to add `harness: pi`. A run made by 0.1.0, when every entry ran under pi, has a config copy without `harness`; `--consolidate` rejects its consolidator like any other entry, with a hint to add `harness: pi`, while its reports and `run.json` are still read as pi's.
|
|
118
119
|
|
|
119
|
-
Exact provider and model identifiers must be verified against the installed harness: `pi --list-models` for pi, the names and aliases `claude --model` accepts for Claude Code, the names `codex --model` accepts for Codex (`codex debug models` lists those of its own catalog, not a custom `model_provider`'s),
|
|
120
|
+
Exact provider and model identifiers must be verified against the installed harness: `pi --list-models` for pi, the names and aliases `claude --model` accepts for Claude Code, the names `codex --model` accepts for Codex (`codex debug models` lists those of its own catalog, not a custom `model_provider`'s), `opencode models` for OpenCode (whose `provider/model` names give an entry's `provider` before the first `/` and `model` after it; the harness joins them again for `--model`), and `agy models` for Antigravity (whose slugs already encode reasoning effort).
|
|
120
121
|
|
|
121
122
|
They belong in configuration because available models and names change frequently.
|
|
122
123
|
|
|
@@ -163,7 +164,7 @@ Agents run concurrently, one Ruby thread per agent, each driving one harness pro
|
|
|
163
164
|
`AgentCouncil::WorkerPool` (`lib/agent_council/worker_pool.rb`) also handles signals, keeping the main thread free to take them. The README's [Stopping a run](README.md#stopping-a-run) section describes what Ctrl-C and the other signals do; the reasons behind that behavior are:
|
|
164
165
|
|
|
165
166
|
- **Each agent leads its own process group**, so the terminal's signals reach only agent-council, which then stops the agents itself, in an orderly way, and Ctrl-Z suspends agent-council without suspending the agents under it. It also lets the user stop one agent, by the pid printed as it starts (its group's ID), while the others go on: an agent so stopped is an ordinary failure, reported with the signal that stopped it (see [RUNAWAY_AGENTS.md](RUNAWAY_AGENTS.md#stopping-one-agent)).
|
|
166
|
-
- **Agents get SIGTERM and a shared grace period before being killed**, so the harness can stop the commands it started (pi, Claude Code, and
|
|
167
|
+
- **Agents get SIGTERM and a shared grace period before being killed**, so the harness can stop the commands it started (pi, Claude Code, Codex, and Antigravity do; OpenCode doesn't: checked for 1.19.6, a running `sleep`, in a process group of its own, survived SIGTERM to the agent's group, and `opencode` was still running 5 seconds later, so it is killed and its command left running; checked for Codex 0.167.0: a running `sleep` was gone after `codex` got SIGTERM; checked for Claude Code 2.1.325: a command its Bash tool was running, in the foreground or with `run_in_background`, ran in a process group of its own, which agent-council's SIGTERM to the agent's group doesn't reach, and ended when `claude` got SIGTERM; checked for Antigravity 1.5.22: a running `sleep 60` ended when `agy` got SIGTERM, and `agy` emitted a terminal `result` event with `status: "ERROR"`, `error: "interrupted"`, and its token usage before exiting 1); a second signal skips the wait for a user who doesn't want to.
|
|
167
168
|
- **agent-council then dies by the signal** rather than exiting normally, so a shell (e.g. one running it in a loop) sees it was killed and stops too. SIGQUIT exits 131 instead, since a core dump is no use here.
|
|
168
169
|
- **Extra SIGHUPs are ignored**, since a closing terminal can send them in pairs, and **signals agent-council was started ignoring stay ignored**, so `nohup` works.
|
|
169
170
|
- **SIGQUIT isn't trapped under JRuby**, where the JVM reserves it for thread dumps.
|
|
@@ -182,7 +183,7 @@ agent-council does not:
|
|
|
182
183
|
- ask models to identify themselves;
|
|
183
184
|
- add model-specific output instructions.
|
|
184
185
|
|
|
185
|
-
Execution metadata stays outside the substantive prompt: the scratch dir is referred to only as `$TMPDIR` in the system
|
|
186
|
+
Execution metadata stays outside the substantive prompt: the scratch dir is referred to only as `$TMPDIR` in the shared scaffolding (appended to the system prompt, or prepended to the user message for Antigravity, §11), which is identical for every agent, and model identity is in the report's front matter.
|
|
186
187
|
|
|
187
188
|
---
|
|
188
189
|
|
|
@@ -205,7 +206,7 @@ The harness is started with an argv array, not through a shell.
|
|
|
205
206
|
|
|
206
207
|
Agents are analyzers, not modifiers.
|
|
207
208
|
|
|
208
|
-
The scaffolding appended to each agent's system prompt (`Harnesses.scaffold_text` in `lib/agent_council/harnesses/scaffold.rb`, shared by every harness) states the rules agents get, and the README's [How it works](README.md#how-it-works-and-what-the-agents-are-told) section summarizes them. They are instructions, not enforced restrictions: each harness's tool limit (pi's `--tools` allowlist, which activates only the built-in, extension, and custom tools it lists, and the MCP tools that `codemode`, `tool_search`, and `mcp__*` reach, §11; Claude Code's `--tools`; OpenCode's denied edit permission; Codex has none, §11) is the only restriction agent-council enforces (Claude Code's own sandbox can also restrict Claude Code agents if Claude Code's settings enable it, and the analyzed repository's settings can enable or disable it; Codex's sandbox restricts Codex agents as the user's Codex config sets it; §11), and the shell tool remains a full shell running as the user (see the README's [Safety and privacy](README.md#safety-and-privacy)). A shell is kept because investigation (`git log`, dependency inspection, running a documented command) is much of what makes an analysis useful.
|
|
209
|
+
The scaffolding appended to each agent's system prompt (or prepended to the user message for Antigravity, §11; `Harnesses.scaffold_text` in `lib/agent_council/harnesses/scaffold.rb`, shared by every harness) states the rules agents get, and the README's [How it works](README.md#how-it-works-and-what-the-agents-are-told) section summarizes them. They are instructions, not enforced restrictions: each harness's tool limit (pi's `--tools` allowlist, which activates only the built-in, extension, and custom tools it lists, and the MCP tools that `codemode`, `tool_search`, and `mcp__*` reach, §11; Claude Code's `--tools`; OpenCode's denied edit permission; Antigravity's `--settings` permission denials for `write_file(*)`, `execute_url(*)`, and `download_url(*)`; Codex has none, §11) is the only restriction agent-council enforces (Claude Code's own sandbox can also restrict Claude Code agents if Claude Code's settings enable it, and the analyzed repository's settings can enable or disable it; Codex's sandbox restricts Codex agents as the user's Codex config sets it; Antigravity's terminal sandbox restricts Antigravity shell commands if enabled in the user's `agy` config — `agent-council` does not pass `--sandbox`; §11), and the shell tool remains a full shell running as the user (see [CAUTIONS.md](CAUTIONS.md) and the README's [Safety and privacy](README.md#safety-and-privacy)). A shell is kept because investigation (`git log`, dependency inspection, running a documented command) is much of what makes an analysis useful.
|
|
209
210
|
|
|
210
211
|
The rules follow from agents running concurrently in the user's own working tree:
|
|
211
212
|
|
|
@@ -285,7 +286,7 @@ codex exec --json --ephemeral --skip-git-repo-check --color never
|
|
|
285
286
|
Checked with codex-cli 0.167.0:
|
|
286
287
|
|
|
287
288
|
- `-c developer_instructions=...` adds the scaffolding to the system prompt (checked: an instruction given this way was followed). It replaces any `developer_instructions` the user's config sets; Codex has no option that appends.
|
|
288
|
-
- `--skip-git-repo-check` is needed outside a git repository Codex trusts: without it Codex refuses ("Not inside a trusted directory"), while pi, Claude Code, and
|
|
289
|
+
- `--skip-git-repo-check` is needed outside a git repository Codex trusts: without it Codex refuses ("Not inside a trusted directory"), while pi, Claude Code, OpenCode, and Antigravity agents run anywhere (OpenCode and Antigravity checked).
|
|
289
290
|
- Codex's `read-only` and `workspace-write` sandboxes also block network access unless the user's config allows it (checked with `codex sandbox`: `curl` couldn't resolve a host under either, and worked unsandboxed).
|
|
290
291
|
- No `--sandbox` or approval option is passed: the user's `sandbox_mode` applies, as in an interactive session (§11's premise). The user's `approval_policy` doesn't: `codex exec` never asks, so a command that needs approval is refused (checked: an agent told `approval_policy="on-request"` reported `never`, and `"untrusted"` made `codex exec` exit with "no longer supported"). Under `read-only`, Codex's default, commands can write nothing, `$TMPDIR` included (checked: "read-only file system"), so agents get no scratch space although the scaffolding offers it; under `workspace-write`, `$TMPDIR` is writable (checked), and so is the analyzed repository. Forcing `read-only` was tried and dropped: it overrode the user's setting, and the scaffolding would have needed a variant without scratch space.
|
|
291
292
|
- No tool is withheld: this Codex version has no option for it. Codex agents keep `apply_patch` (file editing) and the subagent tools (`spawn_agent` and others); `--disable multi_agent`, `-c features.multi_agent=false`, and `-c include_apply_patch_tool=false` each left them in the rendered prompt (`codex debug prompt-input`). The README says so. The subagent tools fail, though: under `--ephemeral`, `spawn_agent` fails with "collab spawn failed: ... no rollout found for thread id" (on stderr; the stream shows only the agent's `wait`), and the agent carries on alone (checked with codex-cli 0.167.0). That also keeps usage whole: without `--ephemeral`, a subagent ran, and its tokens (31,708 input in its own session) were not in its parent's `turn.completed`, which matched the parent's session alone. If a Codex version lets `--ephemeral` agents spawn, usage will undercount them.
|
|
@@ -319,7 +320,7 @@ OPENCODE_CONFIG_CONTENT={"instructions":["<scratch>/agent-council-scaffold.md"],
|
|
|
319
320
|
- `experimental.continue_loop_on_deny`: `opencode run` refuses every `ask` (no `--auto` is passed, as `codex exec` refuses approvals), and by default a refusal ends the session, leaving the model's lead-in as the report. With this, the agent sees the refusal and goes on.
|
|
320
321
|
- `agent.title.disable`: the title agent's request isn't in the stream, so its usage wouldn't be counted.
|
|
321
322
|
- `snapshot: false`: snapshots (for undo) copy the project's files, untracked ones included, into OpenCode's data dir, kept after the run.
|
|
322
|
-
- `OPENCODE_DB` in the scratch dir: the session is deleted with the scratch dir when the agent finishes, so it isn't kept (
|
|
323
|
+
- `OPENCODE_DB` in the scratch dir: the session is deleted with the scratch dir when the agent finishes, so it isn't kept (pi, Claude Code, and Codex save none either; Antigravity is the exception), and concurrent agents don't share one SQLite database. opencode 1.2.4 ignored it.
|
|
323
324
|
|
|
324
325
|
**Context.** OpenCode behaves as in an interactive session started in the analyzed repository: the user's config and plugins apply, and so do the project's `AGENTS.md` files and `opencode.json`, with no trust step. If the project has a `.opencode` directory, OpenCode writes a `.gitignore` there. An inherited `OPENCODE_PERMISSION` is left alone.
|
|
325
326
|
|
|
@@ -327,19 +328,41 @@ OPENCODE_CONFIG_CONTENT={"instructions":["<scratch>/agent-council-scaffold.md"],
|
|
|
327
328
|
|
|
328
329
|
**Subagents.** The `task` tool's subagents run, but their usage isn't in the parent's stream, so it isn't counted.
|
|
329
330
|
|
|
331
|
+
### Antigravity
|
|
332
|
+
|
|
333
|
+
**Invocation.** One `agy` process per agent, started from an argv array (§9), with the prompt wrapped as one NDJSON user message on stdin (`AntigravityHarness.stdin_data`):
|
|
334
|
+
|
|
335
|
+
```text
|
|
336
|
+
agy --input-format stream-json --output-format stream-json --disable-slash-commands \
|
|
337
|
+
--model MODEL --settings '{"permissions":{"deny":["write_file(*)","execute_url(*)","download_url(*)"]}}'
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
- `--input-format stream-json` is used instead of `-p`: `agy -p` takes its prompt as a string argv value rather than reading stdin, whereas `--input-format stream-json` reads one NDJSON user message per line from stdin and exits cleanly on EOF (checked with `agy` 1.5.22).
|
|
341
|
+
- `--disable-slash-commands` disables slash command and prompt-level skill expansion in print mode.
|
|
342
|
+
- `agy` has no system-prompt flag or settings key, so `AntigravityHarness.stdin_data` prepends `Harnesses.scaffold_text` to the user message (for `agy` only, rather than appending to the system prompt).
|
|
343
|
+
- `--settings` merges `permissions` over `~/.gemini/antigravity-cli/settings.json` for the session without saving it (checked with `agy` 1.5.22: `agy` started cleanly with all three deny rules, `write_file(*)` blocked `write_file` and `edit_file`, and user `permissions.allow` rules for MCP remained active; whether user `permissions.deny` rules also merge and whether every write-ish, browser, or download tool maps to these actions are not exhaustively verified). `agent-council` does not pass `--sandbox` or `--mode`, so shell commands stay governed by the user's `agy` settings (`$TMPDIR` is writable from the shell, while file tools are read-only because `write_file(*)` is denied).
|
|
344
|
+
- **Sessions persist on disk.** `agy` 1.5.22 has no `--no-session` or `--ephemeral` flag, so each agent saves a conversation database under `~/.gemini/antigravity-cli/conversations/` (`agy conversations clean` removes old ones).
|
|
345
|
+
|
|
346
|
+
**Context.** Antigravity behaves as in an interactive session started in the analyzed repository: workspace rules (`AGENTS.md`, `GEMINI.md`, `.agents/rules/`), hooks (`.agents/hooks.json`), skills (prompt-level skill expansion is disabled by `--disable-slash-commands`), plugins, and MCP servers load subject to `agy`'s workspace trust rules.
|
|
347
|
+
|
|
348
|
+
**Billing.** agent-council leaves authentication and billing to `agy`: an agent uses whatever account or provider `agy` would at the user's terminal (Google AI subscription, Gemini API key when `modelProvider: "gemini"`, or Vertex AI). The entry's provider only labels the agent.
|
|
349
|
+
|
|
350
|
+
**Subagents.** Subagent tools cannot be disabled via CLI flags; as with OpenCode, their token usage may not appear in the parent's `result.usage`.
|
|
351
|
+
|
|
330
352
|
### MCP servers load, in every harness
|
|
331
353
|
|
|
332
|
-
Agents get the MCP servers the user has configured for their harness, as an interactive session would: pi's (`~/.pi/agent/mcp.json`, a trusted project's, and extensions'), Claude Code's (the user's, plugins', and the project's approved ones), Codex's (`config.toml`, plugins, the apps connectors, and a trusted project's),
|
|
354
|
+
Agents get the MCP servers the user has configured for their harness, as an interactive session would: pi's (`~/.pi/agent/mcp.json`, a trusted project's, and extensions'), Claude Code's (the user's, plugins', and the project's approved ones), Codex's (`config.toml`, plugins, the apps connectors, and a trusted project's), OpenCode's (the user's config, plugins', and the project's `opencode.json`), and Antigravity's (`~/.gemini/config/mcp_config.json` and `<workspace>/.agents/mcp_config.json`). agent-council passes no MCP option. Leaving them out would make agents worse at the user's own work (a coverage server, an issue tracker, internal docs), which matters more here than isolation (§11's premise).
|
|
333
355
|
|
|
334
|
-
The cost is risk, which the README's Safety section
|
|
356
|
+
The cost is risk, which [CAUTIONS.md](CAUTIONS.md) and the README's Safety section state prominently. A server that writes (posting to chat, commenting on an issue, changing a ticket) is available to every agent, held back only by the scaffolding's read-only instructions, and a council would do it once per agent; and each agent starts every server it loads, so a server that acts merely by starting acts once per agent. The user's remedy is their own config (remove or disable the server), or an environment without it.
|
|
335
357
|
|
|
336
|
-
How each harness exposes the tools (checked with pi 1.5.2, Claude Code 2.1.329, codex-cli 0.167.0,
|
|
358
|
+
How each harness exposes the tools (checked with pi 1.5.2, Claude Code 2.1.329, codex-cli 0.167.0, opencode 1.19.6, and agy 1.5.22, calling a `version` tool on a local stdio server):
|
|
337
359
|
|
|
338
360
|
- **pi** exposes MCP tools through its `codemode` tool by default, so `codemode` is in the `--tools` allowlist (checked: without it, agents had no MCP access). A server with direct exposure has its tools activated only if `--tools` names them, so `mcp__*` is listed too (checked: without it, a direct server's tool was unavailable). A server with deferred exposure has its tools loaded by `tool_search`, so that is listed as well; it loads only MCP tools (checked: `tool_search` for `write` and `edit` found nothing). Since naming an `mcp__` entry makes `--tools` filter MCP tools by name, pi's resource tools (`list_mcp_resources`, `list_mcp_resource_templates`, `read_mcp_resource`) are listed too. A `codemode` script can call only the allowlisted tools and MCP tools (checked: its `tools` object had them and the resource tools, and no `write`), plus pi's `models` API (`models.classify`, `models.generateImages`), which calls models itself; pi reports that usage on the `codemode` tool result, so `PiHarness.usage` counts tool results' usage along with assistant messages'. `tool_search` is listed for deferred exposure but also finds codemode-exposed tools, which `codemode` reaches anyway. Listing `codemode` activates it even when the user's pi settings set `autoEnableCodemode` to false; agents can't otherwise reach MCP tools with the default exposure. pi doesn't ask before a tool runs, so pi agents can call any MCP tool they get. A failed MCP call reaches a pi agent as a tool result marked `isError`, which the agent can read; agent-council doesn't warn of it (`PiHarness.warnings` returns none), unlike Claude Code's, Codex's, and OpenCode's refused calls, since a pi failure is an ordinary tool error, not a refusal, and pi reports a server that fails to start only in its interactive UI. Unlisted extension tools stay out of reach even with `codemode` and `tool_search`: pi drops tools the allowlist doesn't match before registering them, and both reach only registered tools (pi 1.5.2's `_refreshToolRegistry`, `_getCallableTools`).
|
|
339
361
|
- **Claude Code** loads the servers, but `-p` can't ask permission, so an MCP call goes through only if a permission rule allows it (e.g. `mcp__server` in `permissions.allow`); otherwise it is refused and lands in `permission_denials`, which `ClaudeCodeHarness.warnings` reports. MCP tools are not added to `--allowedTools`: that would give agents more than an interactive session has without the user's approval.
|
|
340
362
|
- **Codex** loads the servers, but `codex exec` never asks for approval, so an MCP call goes through only if the user's config approves the tool in advance (`default_tools_approval_mode = "approve"` on a server, or `approval_mode = "approve"` on one of its tools); otherwise the `mcp_tool_call` item fails with "MCP tool call requires approval, but approval policy is never", which `CodexHarness.warnings` reports.
|
|
341
363
|
|
|
342
364
|
- **OpenCode** loads the servers, and MCP tools need no permission by default, so an agent can call them unless the user's permissions set them to `ask` (then refused, with a warning) or `deny` (checked with opencode 1.19.6).
|
|
365
|
+
- **Antigravity** loads the servers, and MCP tools default to `ask`, so in headless mode an MCP call goes through only if a `permissions.allow` rule covers it (e.g. `mcp(server/*)`); otherwise it is soft-denied and reported in `result.denied_actions`, which `AntigravityHarness.warnings` surfaces (checked with `agy` 1.5.22).
|
|
343
366
|
|
|
344
367
|
0.2.0 and the Codex harness's first version turned MCP off instead (pi's `--no-mcp`, Claude Code's `--strict-mcp-config`, and for Codex a per-server `enabled=false` table built from `codex mcp list`, plus `--disable apps`). That was reversed: it crippled agents relative to the user's setup, and Codex's version was fragile (a plugin's server in the listing made the override fail with "invalid transport", failing every agent). `pi-models` still passes `--no-mcp`, since it only lists models and runs no agent.
|
|
345
368
|
|
|
@@ -431,6 +454,20 @@ The parser and the invocation live in `AgentCouncil::Harnesses::OpenCodeHarness`
|
|
|
431
454
|
|
|
432
455
|
Not yet observed for OpenCode: an agent that hits a usage limit or a context overflow, and the stderr of a nonzero exit without an `error` event.
|
|
433
456
|
|
|
457
|
+
### Antigravity
|
|
458
|
+
|
|
459
|
+
agent-council reads `agy --output-format stream-json`'s event stream, one JSON object per line, keyed by `event` (`init`, `step_update`, `result`), with each payload under a key of the same name:
|
|
460
|
+
|
|
461
|
+
- the report is the terminal `result` event's `response` when `status == "SUCCESS"` and nonblank;
|
|
462
|
+
- `assistant_messages` groups `step_update` events with `step_type == "agent_response"` by `step_index` and joins their streamed `text_delta` fragments;
|
|
463
|
+
- the agent failed if there is no `result` event, if `status != "SUCCESS"` (the reason is `result.error`, else `finished_reason`), if `finished_reason` is `print_timeout`, `interrupted`, `error`, `length`, `content-filter`, or `max_tokens`, or if `response` is blank (noting any refused actions); a nonzero exit is explained from `result.error` first, then any `AGY_ERROR` line on stderr or stdout (extracting `short_error`/`message`/`error` from JSON when present), then stderr's first line;
|
|
464
|
+
- soft-denied tool calls (actions that required interactive approval in headless mode) appear in `result.denied_actions` (`display_name` / `action`), which `AntigravityHarness.warnings` reports;
|
|
465
|
+
- usage comes from the terminal `result.usage` only: `input_tokens` (which excludes cached input), `output_tokens` (which includes `thinking_tokens`), `cache_read_tokens`, `cache_write` as `0`, and no `cost` (so `known_cost` treats it as unknown, like Codex).
|
|
466
|
+
|
|
467
|
+
The parser and the invocation live in `AgentCouncil::Harnesses::AntigravityHarness` (`lib/agent_council/harnesses/antigravity_harness.rb`). The specs read streams recorded from `agy` 1.5.22 (`spec/fixtures/antigravity/`), with local paths replaced by `/repo` and conversation IDs renumbered.
|
|
468
|
+
|
|
469
|
+
Not yet observed in live `agy` runs: expired/missing auth, quota-exhaustion responses, live `AGY_ERROR` stderr lines (parsed from the binary's `short_error` JSON format), and whether user `permissions.deny` rules survive `--settings` merging.
|
|
470
|
+
|
|
434
471
|
---
|
|
435
472
|
|
|
436
473
|
## 14. Output Directory
|
|
@@ -474,9 +511,11 @@ There are no retries of agent-council's own (the harnesses may retry transient p
|
|
|
474
511
|
|
|
475
512
|
```text
|
|
476
513
|
README.md
|
|
514
|
+
CAUTIONS.md
|
|
477
515
|
INSTALL.md
|
|
478
516
|
USE_CASES.md
|
|
479
517
|
DESIGN.md
|
|
518
|
+
RUNAWAY_AGENTS.md
|
|
480
519
|
RELEASE_NOTES.md
|
|
481
520
|
LICENSE.txt
|
|
482
521
|
REVIEW_NOTES.md # settled review findings; not shipped in the gem
|
|
@@ -501,11 +540,12 @@ lib/
|
|
|
501
540
|
harnesses.rb # harnesses by name (AgentCouncil::Harnesses)
|
|
502
541
|
harnesses/
|
|
503
542
|
harness.rb # the base class every harness subclasses (Harness)
|
|
504
|
-
scaffold.rb # the read-only scaffolding every harness
|
|
543
|
+
scaffold.rb # the read-only scaffolding every harness gives agents
|
|
505
544
|
pi_harness.rb # pi-specific behavior (AgentCouncil::Harnesses::PiHarness)
|
|
506
545
|
claude_code_harness.rb # Claude Code-specific behavior (ClaudeCodeHarness)
|
|
507
546
|
codex_harness.rb # Codex-specific behavior (CodexHarness)
|
|
508
547
|
opencode_harness.rb # OpenCode-specific behavior (OpenCodeHarness)
|
|
548
|
+
antigravity_harness.rb # Antigravity-specific behavior (AntigravityHarness)
|
|
509
549
|
templates/ # runtime data files (resolved via __dir__, shipped in the gem)
|
|
510
550
|
consolidate_prompt.md # instructions template for the consolidator
|
|
511
551
|
analyst_format.md # report-format addendum for analysts
|
|
@@ -524,6 +564,7 @@ examples/ # pure, non-runtime samples (prompts/ and configs/ ship
|
|
|
524
564
|
single.yml
|
|
525
565
|
consolidated.yml
|
|
526
566
|
mixed-harness.yml
|
|
567
|
+
antigravity.yml
|
|
527
568
|
results/ # sample output; not shipped in the gem
|
|
528
569
|
|
|
529
570
|
agent-council-reports/ # created on demand; gitignored in this repository
|
|
@@ -553,9 +594,9 @@ New gems are added only if they solve a meaningful problem that would otherwise
|
|
|
553
594
|
|
|
554
595
|
## 18. Status and Future Work
|
|
555
596
|
|
|
556
|
-
agent-council is at an early stage (0.x), so it does only what its core job needs. Features we hope to add include support for more harnesses and telling a Claude Code agent's billing source (subscription or API key) apart in `run.json` (§11). A missing feature is usually just not built yet.
|
|
597
|
+
agent-council is at an early stage (0.x), so it does only what its core job needs. Features we hope to add include support for more harnesses and telling a Claude Code or Antigravity agent's billing source (subscription or API key) apart in `run.json` (§11). A missing feature is usually just not built yet.
|
|
557
598
|
|
|
558
|
-
Worth considering, not decided: an option to keep agents' sessions.
|
|
599
|
+
Worth considering, not decided: an option to keep agents' sessions. Four harnesses now run agents without keeping their sessions (pi's `--no-session`, Claude Code's `--no-session-persistence`, and Codex's `--ephemeral` save none; OpenCode's goes to `OPENCODE_DB` in the scratch dir, deleted when the agent finishes), so a council doesn't flood the user's history and concurrent OpenCode agents don't share a database. Antigravity (`agy` 1.5.22) is the exception: it has no ephemeral flag and always persists conversations under `~/.gemini/antigravity-cli/conversations/`. A user might still want a session, to see what an agent did beyond its report or to recover usage the stream leaves out (OpenCode's subagents). An option for it would apply to every harness, and for OpenCode would keep each agent's own database (in the run directory, say) rather than use the user's.
|
|
559
600
|
|
|
560
601
|
`REVIEW_NOTES.md` separately tracks review findings that were considered and don't need to be re-raised: accepted risks and non-issues.
|
|
561
602
|
|
data/INSTALL.md
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
This guide is for developers comfortable with the command line who have
|
|
4
4
|
never used Ruby. It takes you from a bare machine to a working
|
|
5
5
|
`agent-council` command. Already have Ruby 3.3+ (or JRuby 10+) and
|
|
6
|
-
a harness CLI (`pi`, OpenCode, Claude Code, or
|
|
6
|
+
a harness CLI (`pi`, OpenCode, Claude Code, Codex, or Antigravity)? Just run `gem install agent-council`; see the
|
|
7
7
|
[README](README.md#quick-start).
|
|
8
8
|
|
|
9
9
|
## 1. Prepare your system
|
|
10
10
|
|
|
11
11
|
- **macOS and Linux:** any terminal works. Linux needs `curl` installed.
|
|
12
12
|
- **Windows:** native Windows is **not supported**. Everything, including
|
|
13
|
-
Ruby, the harness CLIs you use (Pi, OpenCode, Claude Code, Codex, or any mix), and
|
|
13
|
+
Ruby, the harness CLIs you use (Pi, OpenCode, Claude Code, Codex, Antigravity, or any mix), and
|
|
14
14
|
agent-council, must be installed and run inside
|
|
15
15
|
[WSL](https://learn.microsoft.com/windows/wsl/install) with Ubuntu. In
|
|
16
16
|
an administrator PowerShell, run `wsl --install -d Ubuntu`, restart if
|
|
@@ -74,7 +74,7 @@ For other install methods and details, see the
|
|
|
74
74
|
[Mise documentation](https://mise.jdx.dev/getting-started.html) and its
|
|
75
75
|
[Ruby page](https://mise.jdx.dev/lang/ruby.html).
|
|
76
76
|
|
|
77
|
-
## 3. Install a harness: Pi, OpenCode, Claude Code, Codex, or several
|
|
77
|
+
## 3. Install a harness: Pi, OpenCode, Claude Code, Codex, Antigravity, or several
|
|
78
78
|
|
|
79
79
|
agent-council drives AI models through a coding-agent harness, which
|
|
80
80
|
each config entry names. Most samples use the
|
|
@@ -89,11 +89,12 @@ Agents can also run under [Claude Code](https://code.claude.com/docs)
|
|
|
89
89
|
(see the README's [Choosing a harness](README.md#choosing-a-harness)).
|
|
90
90
|
For those, install the `claude` CLI and log in (under WSL, inside WSL).
|
|
91
91
|
Likewise for [Codex](https://developers.openai.com/codex/cli): install
|
|
92
|
-
the `codex` CLI and log in,
|
|
92
|
+
the `codex` CLI and log in, for [OpenCode](https://opencode.ai/docs/cli):
|
|
93
93
|
install the `opencode` CLI and add provider credentials with
|
|
94
|
-
`opencode auth login
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
`opencode auth login`, and for [Google Antigravity](https://antigravity.google/docs/getting-started):
|
|
95
|
+
install the `agy` CLI and sign in interactively (under WSL, inside WSL). A
|
|
96
|
+
config needs each harness only if some agent, or the consolidator, runs under
|
|
97
|
+
it (`harness: pi`, `claude`, `codex`, `opencode`, or `agy`).
|
|
97
98
|
|
|
98
99
|
## 4. Install agent-council
|
|
99
100
|
|
|
@@ -106,6 +107,8 @@ If the help text appears, you're done.
|
|
|
106
107
|
|
|
107
108
|
## Next steps
|
|
108
109
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
Before your first run, read [`CAUTIONS.md`](CAUTIONS.md) for security,
|
|
111
|
+
privacy, and cost caveats. Then continue with the README's
|
|
112
|
+
[Quick start](README.md#quick-start) to list your models, write a
|
|
113
|
+
config, and do your first run. You've already done its steps for
|
|
114
|
+
installing the prerequisites and the gem.
|