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
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.**
|