agent-council 0.2.0 → 0.3.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/DESIGN.md +64 -18
- data/INSTALL.md +7 -5
- data/README.md +222 -61
- data/RELEASE_NOTES.md +66 -0
- data/RUNAWAY_AGENTS.md +2 -2
- data/USE_CASES.md +2 -1
- data/examples/configs/mixed-harness.yml +9 -5
- data/exe/agent-council +2 -0
- data/lib/agent_council/harnesses/claude_code_harness.rb +0 -1
- data/lib/agent_council/harnesses/codex_harness.rb +221 -0
- data/lib/agent_council/harnesses/pi_harness.rb +28 -10
- data/lib/agent_council/harnesses/scaffold.rb +4 -0
- data/lib/agent_council/harnesses.rb +2 -1
- data/lib/agent_council/version.rb +1 -1
- data/lib/agent_council/worker_pool.rb +2 -2
- data/lib/agent_council.rb +28 -9
- metadata +4 -3
data/README.md
CHANGED
|
@@ -9,8 +9,10 @@ cost, and quality.
|
|
|
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
|
|
13
|
-
billed however your `claude` login is
|
|
12
|
+
models; [Claude Code](https://code.claude.com/docs), for Anthropic's,
|
|
13
|
+
billed however your `claude` login is; or
|
|
14
|
+
[Codex](https://developers.openai.com/codex/cli), for OpenAI's, billed
|
|
15
|
+
however your `codex` login is. The agents can use any mix of
|
|
14
16
|
harnesses, providers, and models, including the same model more than
|
|
15
17
|
once, or under each harness.
|
|
16
18
|
|
|
@@ -89,8 +91,8 @@ next month's models.
|
|
|
89
91
|
|
|
90
92
|
Because the harness is chosen per agent, a comparison can also pit the
|
|
91
93
|
same model against itself under different harnesses. The project is at
|
|
92
|
-
an early stage;
|
|
93
|
-
[planned features](DESIGN.md#18-status-and-future-work)
|
|
94
|
+
an early stage; see its
|
|
95
|
+
[planned features](DESIGN.md#18-status-and-future-work), and
|
|
94
96
|
[`DESIGN.md`](DESIGN.md) for the rationale.
|
|
95
97
|
|
|
96
98
|
## What makes a good fit
|
|
@@ -108,7 +110,8 @@ agent-council can help with any question about a set of readable files
|
|
|
108
110
|
- **It has a text answer.** Only each agent's final message is saved as
|
|
109
111
|
its report. Agents are told not to change the project and to keep
|
|
110
112
|
temporary files in a scratch directory, which is deleted when the
|
|
111
|
-
agent finishes
|
|
113
|
+
agent finishes, and not to act outside the machine: posting or
|
|
114
|
+
deploying, if an agent did it anyway, would happen once per agent.
|
|
112
115
|
- **It gains from several independent answers and a synthesis of
|
|
113
116
|
them.** Open-ended questions ("what's wrong with this?", "what should
|
|
114
117
|
we do?") gain the most; one with an obvious answer gains nothing.
|
|
@@ -136,8 +139,8 @@ in detail.
|
|
|
136
139
|
[`pi` CLI](https://github.com/earendil-works/pi) (`pi --version`). See
|
|
137
140
|
[Prerequisites](#prerequisites), or [INSTALL.md](INSTALL.md) if you
|
|
138
141
|
need to install Ruby too. These steps run every agent under pi; to
|
|
139
|
-
run agents under Claude Code as well, or instead (then
|
|
140
|
-
see [Choosing a harness](#choosing-a-harness).
|
|
142
|
+
run agents under Claude Code or Codex as well, or instead (then
|
|
143
|
+
without pi), see [Choosing a harness](#choosing-a-harness).
|
|
141
144
|
2. **Set up credentials for at least one provider in pi** (see
|
|
142
145
|
[pi's documentation][pi-docs]), then list the models available to pi
|
|
143
146
|
(a listed model can still be one your plan doesn't include). Two
|
|
@@ -212,16 +215,21 @@ consolidator, see
|
|
|
212
215
|
- The harness CLIs your config uses (each run checks for them first):
|
|
213
216
|
- for pi: the
|
|
214
217
|
[`pi` CLI](https://github.com/earendil-works/pi)
|
|
215
|
-
(`pi --version`), 1.0.4 or later
|
|
216
|
-
1.3.0, 1.4.0, and 1.5.2
|
|
218
|
+
(`pi --version`), 1.0.4 or later (`pi-models` runs pi with
|
|
219
|
+
`--no-mcp`; tested with pi 1.3.0, 1.4.0, and 1.5.2, with agents' MCP
|
|
220
|
+
access checked with 1.5.2), with credentials for at least one provider
|
|
217
221
|
(several give more diverse viewpoints), configured through pi itself
|
|
218
222
|
(see [pi's documentation][pi-docs]);
|
|
219
223
|
- for Claude Code: the [`claude` CLI](https://code.claude.com/docs)
|
|
220
|
-
(`claude --version`; tested with 2.1.325
|
|
221
|
-
lack flags agent-council passes),
|
|
222
|
-
logged in or set up with an API key
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
(`claude --version`; tested with 2.1.325, 2.1.327, and 2.1.329,
|
|
225
|
+
and earlier versions may lack flags agent-council passes),
|
|
226
|
+
logged in or set up with an API key;
|
|
227
|
+
- for Codex: the [`codex` CLI](https://developers.openai.com/codex/cli)
|
|
228
|
+
(`codex --version`; tested with 0.167.0, and earlier versions may
|
|
229
|
+
lack flags agent-council passes), logged in with a ChatGPT plan or
|
|
230
|
+
an API key.
|
|
231
|
+
|
|
232
|
+
agent-council runs the `pi`, `claude`, and `codex` executables found on its
|
|
225
233
|
`PATH`, not your shell's aliases or functions of those names. If yours
|
|
226
234
|
add something, such as an environment variable or a directory on
|
|
227
235
|
`PATH`, set it in the environment you run agent-council from (for
|
|
@@ -233,8 +241,8 @@ consolidator, see
|
|
|
233
241
|
([INSTALL.md](INSTALL.md) has the steps). Windows drives are reachable
|
|
234
242
|
at `/mnt/c/...`, but file access there is much slower than in the Linux
|
|
235
243
|
filesystem (e.g. `~/projects`). Set up pi's provider credentials (and
|
|
236
|
-
log in to Claude Code) inside WSL too; WSL doesn't share them
|
|
237
|
-
Windows.
|
|
244
|
+
log in to Claude Code or Codex) inside WSL too; WSL doesn't share them
|
|
245
|
+
with Windows.
|
|
238
246
|
|
|
239
247
|
## Installation
|
|
240
248
|
|
|
@@ -319,15 +327,15 @@ agent, and the consolidator, needs nonblank string `harness`,
|
|
|
319
327
|
`provider`, and `model` values (quote any value YAML would read as
|
|
320
328
|
something else, such as a number, a date, or `yes`). None has a default;
|
|
321
329
|
a 0.1.0 config needs `harness: pi` added to each entry. `harness` names
|
|
322
|
-
the harness the entry runs under, `pi` or `
|
|
330
|
+
the harness the entry runs under, `pi`, `claude`, or `codex`; an unknown name is
|
|
323
331
|
rejected at startup (with `--consolidate`, only the consolidator's,
|
|
324
332
|
since no analysts run). Other keys are ignored. A config error lists
|
|
325
333
|
every bad entry, named as in `'agents' entry #2` or `'consolidator'`,
|
|
326
334
|
with every problem it has.
|
|
327
335
|
|
|
328
336
|
More samples are in [`examples/configs/`](examples/configs/), which is
|
|
329
|
-
included in the installed gem; `mixed-harness.yml` mixes pi
|
|
330
|
-
Code agents. For scripts and agents,
|
|
337
|
+
included in the installed gem; `mixed-harness.yml` mixes pi, Claude
|
|
338
|
+
Code, and Codex agents. For scripts and agents,
|
|
331
339
|
[`pi-models`](#occasional-utility-pi-models) lists the models in
|
|
332
340
|
machine-readable forms.
|
|
333
341
|
|
|
@@ -389,10 +397,16 @@ consolidator:
|
|
|
389
397
|
notes Claude Code has kept for the project, and are told, as an
|
|
390
398
|
interactive session is, that they may add to them. See
|
|
391
399
|
[Safety and privacy](#safety-and-privacy).
|
|
392
|
-
- **
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
400
|
+
- **MCP tools need a permission rule.** Your MCP servers load (see
|
|
401
|
+
[Safety and privacy](#safety-and-privacy)), but `-p` can't ask, and
|
|
402
|
+
agent-council doesn't add MCP tools to `--allowedTools`, so an agent's
|
|
403
|
+
MCP tool call is refused unless a `permissions.allow` rule in your
|
|
404
|
+
settings or the project's allows it (checked). A refused call is
|
|
405
|
+
reported as described next.
|
|
406
|
+
- **Refused tool calls.** Claude Code can still refuse a tool call: an
|
|
407
|
+
MCP call no rule allows, or one that a `permissions.deny` rule in your
|
|
408
|
+
settings or the project's forbids. The agent then carries on without
|
|
409
|
+
it; its report is kept, and a warning naming the call (up to five distinct calls, with a
|
|
396
410
|
count of the rest) is printed under its progress line (the
|
|
397
411
|
consolidator's, under its result table), shown in the report's
|
|
398
412
|
metadata table (so the consolidator sees an analyst's too), and
|
|
@@ -402,6 +416,58 @@ consolidator:
|
|
|
402
416
|
the console, in `run.json`, and in what the consolidator is told about
|
|
403
417
|
it, since the refusals may be why it failed.
|
|
404
418
|
|
|
419
|
+
An entry with `harness: codex` runs under
|
|
420
|
+
[Codex](https://developers.openai.com/codex/cli) (`codex exec`):
|
|
421
|
+
|
|
422
|
+
```yaml
|
|
423
|
+
agents:
|
|
424
|
+
- harness: codex
|
|
425
|
+
provider: openai
|
|
426
|
+
model: gpt-5.6-terra
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
- **Models.** `model` is any model name `codex --model` accepts. As with
|
|
430
|
+
Claude Code, `provider` only labels the agent: Codex uses the
|
|
431
|
+
`model_provider` its own config names.
|
|
432
|
+
- **Billing.** agent-council leaves authentication and billing to Codex:
|
|
433
|
+
an agent bills however `codex` would at your terminal, to your ChatGPT
|
|
434
|
+
plan if you are logged in with one, or to an API key. Codex reports
|
|
435
|
+
tokens but no price, so a Codex agent's cost is blank, and the run's
|
|
436
|
+
total has no cost; the console summary gives the other analysts'
|
|
437
|
+
known cost, labeled as such, and `run.json` records it as
|
|
438
|
+
`known_cost`.
|
|
439
|
+
- **Context and sandbox.** Each agent runs as an interactive session
|
|
440
|
+
started in your project would: your Codex `config.toml` applies,
|
|
441
|
+
including its `sandbox_mode`, and so do the project's `AGENTS.md`
|
|
442
|
+
files. Your `approval_policy` doesn't: `codex exec` never asks for
|
|
443
|
+
approval, so a command that would need it is refused (checked:
|
|
444
|
+
`on-request` became `never`, and `untrusted` makes Codex exit with an
|
|
445
|
+
error). agent-council passes no sandbox option, so
|
|
446
|
+
what an agent can write is whatever your `sandbox_mode` allows (see
|
|
447
|
+
[Codex's sandbox](#codexs-sandbox)). The read-only rules are
|
|
448
|
+
given as `developer_instructions`, which replaces any your config sets.
|
|
449
|
+
- **Tools.** Unlike pi and Claude Code agents, whose built-in tools are
|
|
450
|
+
limited to read and shell tools (plus MCP tools, as described here),
|
|
451
|
+
Codex agents keep Codex's whole built-in toolset, including its
|
|
452
|
+
file-editing tool (`apply_patch`) and its subagent tools: this Codex
|
|
453
|
+
version has no way to withhold them. The subagent tools fail, though,
|
|
454
|
+
since agent-council runs Codex with `--ephemeral` (no session files),
|
|
455
|
+
which subagents need, so a Codex agent works alone.
|
|
456
|
+
- **MCP tools need approval in your config.** Your MCP servers load (see
|
|
457
|
+
[Safety and privacy](#safety-and-privacy)), but `codex exec` never asks
|
|
458
|
+
for approval, so an agent's MCP tool call is refused unless your config
|
|
459
|
+
approves the tool in advance, e.g. with
|
|
460
|
+
`default_tools_approval_mode = "approve"` in a server's
|
|
461
|
+
`[mcp_servers.<name>]` table (checked). A refused call is printed as a
|
|
462
|
+
warning, recorded the same way as Claude Code's refused calls.
|
|
463
|
+
- **Outside a git repository.** Codex normally refuses to run outside one
|
|
464
|
+
it trusts; agent-council passes `--skip-git-repo-check`, so Codex agents
|
|
465
|
+
run wherever pi and Claude Code agents do.
|
|
466
|
+
- **Warnings.** Errors Codex reports without failing the agent (such as
|
|
467
|
+
missing metadata for a model name) are printed as one warning, and
|
|
468
|
+
failed MCP tool calls (such as those refused for lack of approval) as
|
|
469
|
+
another, each recorded the same way as Claude Code's refused calls.
|
|
470
|
+
|
|
405
471
|
## Running
|
|
406
472
|
|
|
407
473
|
```bash
|
|
@@ -591,8 +657,8 @@ one with an unclosed quote, makes every command fail, `-h`, `-v`,
|
|
|
591
657
|
Ctrl-C (or SIGTERM, SIGHUP, or SIGQUIT) stops the run, keeping reports
|
|
592
658
|
already written:
|
|
593
659
|
|
|
594
|
-
- Running agents, the consolidator included, get SIGTERM (pi
|
|
595
|
-
Code then also stop the commands they started) and a shared 5 seconds to exit before
|
|
660
|
+
- Running agents, the consolidator included, get SIGTERM (pi, Claude
|
|
661
|
+
Code, and Codex then also stop the commands they started) and a shared 5 seconds to exit before
|
|
596
662
|
they are killed. A killed agent can't stop the commands it started, so
|
|
597
663
|
those may keep running.
|
|
598
664
|
- A second SIGINT, SIGTERM, or SIGQUIT kills them at once; further SIGHUPs
|
|
@@ -767,7 +833,7 @@ agent-council-reports/
|
|
|
767
833
|
`<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,
|
|
768
834
|
and `<provider>` and `<model>` are sanitized like the query slug below,
|
|
769
835
|
but keep their case. `<harness>` is the agent's (or consolidator's)
|
|
770
|
-
`harness` config value, `pi` or `
|
|
836
|
+
`harness` config value, `pi`, `claude`, or `codex` (see
|
|
771
837
|
[Choosing a harness](#choosing-a-harness)).
|
|
772
838
|
`<agent-number>` is the agent's 1-based position in the config's
|
|
773
839
|
`agents` list (`01`, `02`, ...), so every report has a unique name even
|
|
@@ -807,8 +873,15 @@ agent-council-reports/
|
|
|
807
873
|
(such as a Claude Code agent with refused tool calls) also has
|
|
808
874
|
`warnings`, a list of messages. The file also has `total_usage`, the
|
|
809
875
|
entries' summed usage, whose `cost` is included only if every summed
|
|
810
|
-
entry's cost is known;
|
|
811
|
-
usage (and so are in the total)
|
|
876
|
+
entry's cost is known; `total_usage_runs`, how many entries reported
|
|
877
|
+
usage (and so are in the total); and, always, `known_cost` and
|
|
878
|
+
`known_cost_runs`, the summed cost of the entries whose cost is known
|
|
879
|
+
and how many they are (`null` and 0 when none is), which differs from
|
|
880
|
+
`total_usage`'s `cost` in a run that mixes priced agents with ones
|
|
881
|
+
such as Codex agents, which have no cost. The console summary gives
|
|
882
|
+
the analysts' known cost the same way, as "$1.00 for the 2 of 3
|
|
883
|
+
agents with a known cost"; `known_cost` also covers consolidations.
|
|
884
|
+
Failed agents are included, since their
|
|
812
885
|
tokens were spent, but a Claude Code agent that ends without its final
|
|
813
886
|
`result` event (e.g. because its `claude` was killed) reports no usage,
|
|
814
887
|
since only that event gives the agent's totals.
|
|
@@ -816,12 +889,14 @@ agent-council-reports/
|
|
|
816
889
|
consolidation, including each `--consolidate`; a `--consolidate` of a
|
|
817
890
|
run dir without a readable `run.json` warns and writes none.
|
|
818
891
|
|
|
819
|
-
`usage` is the
|
|
820
|
-
|
|
892
|
+
`usage` is the agent's token usage, summed over every model request
|
|
893
|
+
it made (for pi, its tools' requests too, such as a `codemode`
|
|
894
|
+
script's `models.classify` calls), as reported by the harness: `input` (excluding cached input),
|
|
821
895
|
`cache_read`, `cache_write`, and `output` token counts, plus `cost` in
|
|
822
896
|
US dollars when the harness could price the usage (pi uses its own price
|
|
823
897
|
table, so models missing from it have no cost; Claude Code prices usage
|
|
824
|
-
at Anthropic's API list prices
|
|
898
|
+
at Anthropic's API list prices; Codex prices nothing, so a Codex
|
|
899
|
+
agent has no cost), recorded as the harness reports it,
|
|
825
900
|
only rounded to six decimal places. It is an estimate, not what you're
|
|
826
901
|
billed; see [How far to trust the cost](#how-far-to-trust-the-cost).
|
|
827
902
|
`usage` is `null` when the provider reports no usage.
|
|
@@ -893,8 +968,9 @@ see [How far to trust the cost](#how-far-to-trust-the-cost)), with the failures'
|
|
|
893
968
|
reasons listed below it under `Errors:`. A
|
|
894
969
|
`--- Reviews complete (N/M succeeded; <total usage>) ---` line follows,
|
|
895
970
|
e.g. `2.1M in (2.0M cached) / 32.7k out, $0.18`. The total's cost is
|
|
896
|
-
shown only when every counted analyst's cost is known
|
|
897
|
-
|
|
971
|
+
shown only when every counted analyst's cost is known; otherwise the
|
|
972
|
+
cost of the analysts whose cost is known follows, e.g. `; $0.12 for the 2 of 3 agents with
|
|
973
|
+
a known cost`. The total notes `(from K of M agents)` when some reported no usage (as some
|
|
898
974
|
providers don't). With a consolidator,
|
|
899
975
|
the `Consolidation Report (in <run dir>):` heading (with
|
|
900
976
|
`--consolidate`, `(in <run dir>, from N review(s)):`) then prints while it
|
|
@@ -917,15 +993,18 @@ Every cost agent-council shows or records is the harness's estimate
|
|
|
917
993
|
from per-token prices, not a bill, and it can be far off in either
|
|
918
994
|
direction:
|
|
919
995
|
|
|
920
|
-
- **Subscriptions.** On a subscription or plan (a Claude Code login,
|
|
921
|
-
a plan-based pi provider), the estimate is what the usage would cost
|
|
996
|
+
- **Subscriptions.** On a subscription or plan (a Claude Code login, a
|
|
997
|
+
Codex ChatGPT login, or a plan-based pi provider), the estimate is what the usage would cost
|
|
922
998
|
at pay-per-token prices. What you actually pay for a run may be
|
|
923
999
|
nothing extra, while the run uses up your plan's limits.
|
|
924
1000
|
- **Price tables.** pi prices usage from its own price table, which may
|
|
925
1001
|
not match what your provider charges (discounts, price changes, or
|
|
926
1002
|
routing to a differently priced upstream), and a model missing from
|
|
927
1003
|
it gets no cost at all. Claude Code prices usage at Anthropic's API
|
|
928
|
-
list prices.
|
|
1004
|
+
list prices. Codex prices nothing, so Codex agents have no cost, and
|
|
1005
|
+
a run's total then has no cost; the console summary and `run.json`'s
|
|
1006
|
+
`known_cost` give only the other agents' cost, and say how many those
|
|
1007
|
+
are.
|
|
929
1008
|
- **Stopped agents.** An agent stopped by Ctrl-C (or another signal)
|
|
930
1009
|
records no usage, though its provider still bills for what it used,
|
|
931
1010
|
and a run stopped before every analyst finished writes no `run.json`
|
|
@@ -952,13 +1031,20 @@ usage page.
|
|
|
952
1031
|
consolidator gets its own prompt; see
|
|
953
1032
|
[Discovering and configuring models](#discovering-and-configuring-models).)
|
|
954
1033
|
- Under pi, each agent runs as
|
|
955
|
-
`pi -p --mode json --no-session
|
|
1034
|
+
`pi -p --mode json --no-session
|
|
1035
|
+
--tools 'read,grep,find,ls,bash,codemode,mcp__*,tool_search,list_mcp_resources,list_mcp_resource_templates,read_mcp_resource'
|
|
956
1036
|
--provider P --model M --append-system-prompt <scaffolding>`.
|
|
957
1037
|
- `--no-session` keeps agents independent: no conversation state leaks
|
|
958
1038
|
between ensemble members.
|
|
959
|
-
-
|
|
960
|
-
|
|
961
|
-
|
|
1039
|
+
- The MCP servers configured for pi start as in any pi session, and
|
|
1040
|
+
agents get their tools: `--tools` also lists `codemode`, through
|
|
1041
|
+
which pi exposes MCP tools by default, `mcp__*`, for servers with
|
|
1042
|
+
direct exposure, `tool_search`, for servers with deferred exposure,
|
|
1043
|
+
and pi's MCP resource tools. A `codemode` script can call only the
|
|
1044
|
+
listed tools and MCP tools, plus pi's `models` API, which calls
|
|
1045
|
+
models (its usage is counted in the agent's), and `tool_search`
|
|
1046
|
+
loads only MCP tools (checked with pi 1.5.2: neither reached
|
|
1047
|
+
`write`).
|
|
962
1048
|
- `--tools` is an allowlist for pi's built-in, extension, and custom
|
|
963
1049
|
tools: `bash` remains for investigation (`git log`, dependency
|
|
964
1050
|
inspection, ...), while file-editing tools and unlisted extension and
|
|
@@ -976,7 +1062,7 @@ usage page.
|
|
|
976
1062
|
- Under Claude Code, each agent runs as
|
|
977
1063
|
`claude -p --output-format stream-json --verbose --no-session-persistence
|
|
978
1064
|
--tools Read,Grep,Glob,Bash --allowedTools Read,Grep,Glob,Bash
|
|
979
|
-
--permission-mode manual --
|
|
1065
|
+
--permission-mode manual --model M
|
|
980
1066
|
--append-system-prompt <scaffolding>`.
|
|
981
1067
|
- `--no-session-persistence` keeps agents independent: no session is
|
|
982
1068
|
saved, to be resumed or to show up in your session list.
|
|
@@ -985,11 +1071,11 @@ usage page.
|
|
|
985
1071
|
`--allowedTools` pre-approves the four, since `-p` mode can't ask
|
|
986
1072
|
(a call that needs approval is refused), and `--permission-mode
|
|
987
1073
|
manual` keeps your own default mode (such as `plan`) from applying.
|
|
988
|
-
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1074
|
+
- Your MCP servers load, yours and your plugins' and the project's
|
|
1075
|
+
approved ones, as in an interactive session, but `-p` mode can't ask before a tool runs,
|
|
1076
|
+
so an MCP tool call goes through only if your settings allow it (a
|
|
1077
|
+
`permissions.allow` rule such as `mcp__cov-loupe`); otherwise it is
|
|
1078
|
+
refused and reported as a warning (checked).
|
|
993
1079
|
- Otherwise Claude Code behaves as an interactive session started in
|
|
994
1080
|
the analyzed repo would: it loads `CLAUDE.md` files (and what they
|
|
995
1081
|
import, such as `@AGENTS.md`), your user and the project's settings,
|
|
@@ -1001,15 +1087,36 @@ usage page.
|
|
|
1001
1087
|
(not logged in, an unknown model, the output cut off) is reported
|
|
1002
1088
|
with the reason Claude Code gives. [`DESIGN.md`](DESIGN.md) §13 has
|
|
1003
1089
|
the details.
|
|
1004
|
-
-
|
|
1090
|
+
- Under Codex, each agent runs as
|
|
1091
|
+
`codex exec --json --ephemeral --skip-git-repo-check --color never
|
|
1092
|
+
--model M
|
|
1093
|
+
-c developer_instructions=<scaffolding> -`.
|
|
1094
|
+
- `--ephemeral` keeps agents independent: no session files are saved.
|
|
1095
|
+
- Your MCP servers, plugins, and apps connectors load as in an
|
|
1096
|
+
interactive session, but `codex exec` never asks for approval, so an
|
|
1097
|
+
MCP tool call goes through only if your config approves the tool in
|
|
1098
|
+
advance; otherwise it is refused and reported as a warning (checked).
|
|
1099
|
+
- No sandbox or approval option is passed (`codex exec` never asks for
|
|
1100
|
+
approval, whatever your `approval_policy`), and no tool is withheld:
|
|
1101
|
+
Codex behaves as an interactive session started in the analyzed repo
|
|
1102
|
+
would, with your `config.toml` (its `sandbox_mode` included) and the
|
|
1103
|
+
project's `AGENTS.md` files. See [Codex's sandbox](#codexs-sandbox).
|
|
1104
|
+
- The scaffolding is passed as `developer_instructions`, replacing any
|
|
1105
|
+
your config sets.
|
|
1106
|
+
- The final response is the last agent message with text in a completed turn; an
|
|
1107
|
+
agent whose turn fails (say, a model your account can't use) is
|
|
1108
|
+
reported with the reason Codex gives. [`DESIGN.md`](DESIGN.md) §13
|
|
1109
|
+
has the details.
|
|
1110
|
+
- The tool limits above are the only restrictions
|
|
1005
1111
|
agent-council enforces (see [Safety and
|
|
1006
1112
|
privacy](#safety-and-privacy)). A fixed scaffolding text appended to
|
|
1007
1113
|
the system prompt (identical for all agents, the consolidator
|
|
1008
1114
|
included) tells agents not to modify project files, git state,
|
|
1009
1115
|
software, or configuration, or start persistent services (they get a
|
|
1010
|
-
scratch directory for temporary files)
|
|
1011
|
-
or
|
|
1012
|
-
unless the prompt permits them
|
|
1116
|
+
scratch directory for temporary files); not to act outside the machine
|
|
1117
|
+
(post, comment, or change remote data, MCP tools included); and,
|
|
1118
|
+
unless the prompt permits them, not to run tests, builds, or similar
|
|
1119
|
+
commands, which can collide between concurrent analysts (as
|
|
1013
1120
|
`examples/prompts/review-latest-commit-prompt.md` does for tests and
|
|
1014
1121
|
linters); where such a command isn't permitted but would help, the
|
|
1015
1122
|
agent describes what it would run instead. The full text is
|
|
@@ -1019,7 +1126,8 @@ usage page.
|
|
|
1019
1126
|
which the scaffolding tells it to use for scratch space, deleted when
|
|
1020
1127
|
the agent finishes (under Claude Code's sandbox, `TMPDIR` is a directory Claude
|
|
1021
1128
|
Code makes inside it; see [Claude Code's
|
|
1022
|
-
sandbox](#claude-codes-sandbox)
|
|
1129
|
+
sandbox](#claude-codes-sandbox); under Codex's `read-only` sandbox it
|
|
1130
|
+
isn't writable; see [Codex's sandbox](#codexs-sandbox)). After Ctrl-C, a directory can be
|
|
1023
1131
|
left behind if a second signal stops agent-council at once, or if
|
|
1024
1132
|
cleanup after a killed agent doesn't finish in time.
|
|
1025
1133
|
|
|
@@ -1029,24 +1137,57 @@ agent-council does not sandbox the agents (Claude Code's own sandbox,
|
|
|
1029
1137
|
off by default, restricts Claude Code agents' commands if Claude
|
|
1030
1138
|
Code's settings enable it, and the analyzed repository's settings can
|
|
1031
1139
|
enable or disable it; see
|
|
1032
|
-
[Claude Code's sandbox](#claude-codes-sandbox)
|
|
1140
|
+
[Claude Code's sandbox](#claude-codes-sandbox); Codex's, whatever your
|
|
1141
|
+
Codex config's `sandbox_mode` sets, restricts Codex agents; see
|
|
1142
|
+
[Codex's sandbox](#codexs-sandbox)).
|
|
1033
1143
|
Before running it, know that:
|
|
1034
1144
|
|
|
1035
1145
|
- **Agents have a shell.** Each agent, the consolidator included, gets a
|
|
1036
|
-
shell tool (pi's `bash`,
|
|
1146
|
+
shell tool (pi's `bash`, Claude Code's `Bash`, or Codex's), running as you, in
|
|
1037
1147
|
the directory you run from, with your environment (including any API
|
|
1038
1148
|
keys in it; agent-council only sets `TMPDIR` and `CLAUDE_CODE_TMPDIR`,
|
|
1039
1149
|
both to the agent's scratch directory), your file permissions, and
|
|
1040
1150
|
your network access (for Claude Code agents, unless its sandbox
|
|
1041
|
-
restricts writes and network access
|
|
1151
|
+
restricts writes and network access; for Codex agents, unless your
|
|
1152
|
+
Codex config allows it, its sandbox blocks network access). Of pi's built-in tools, only
|
|
1042
1153
|
`edit` and `write` (and the Windows-only `powershell`) are withheld;
|
|
1043
|
-
of Claude Code's, all but `Read`, `Grep`, `Glob`, and `Bash
|
|
1154
|
+
of Claude Code's, all but `Read`, `Grep`, `Glob`, and `Bash`; of
|
|
1155
|
+
Codex's, none, so Codex agents also have its file-editing tool, and
|
|
1156
|
+
only Codex's sandbox limits what they can write. The
|
|
1044
1157
|
read-only rules described above are instructions in the system prompt,
|
|
1045
1158
|
which a model can ignore or misapply.
|
|
1046
|
-
- **
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
you
|
|
1159
|
+
- **Agents get your MCP servers.** Every harness loads the MCP servers
|
|
1160
|
+
it would load for you interactively, so agents can use their tools:
|
|
1161
|
+
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 your pi extensions or your Claude Code and Codex plugins
|
|
1164
|
+
provide, and Codex's bundled apps connectors (GitHub and others). A
|
|
1165
|
+
server that writes (posting to chat, commenting on an issue, changing a ticket or a database) is as
|
|
1166
|
+
available to a pi agent as it is to you, and only the read-only
|
|
1167
|
+
instructions keep the agent from using it. In a council, that would
|
|
1168
|
+
happen once per agent: five agents, five comments. Each agent also
|
|
1169
|
+
starts every server it loads, so a server that does something merely
|
|
1170
|
+
by starting does it once per agent. Claude Code and Codex agents run
|
|
1171
|
+
an MCP tool only if your settings or config (or, for Claude Code, the
|
|
1172
|
+
analyzed project's settings) already allow it, since
|
|
1173
|
+
they can't ask (see [Choosing a harness](#choosing-a-harness)); pi
|
|
1174
|
+
agents can call any MCP tool pi gives them. The read-only instructions
|
|
1175
|
+
tell agents not to act outside the machine (post, comment, or change
|
|
1176
|
+
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, or
|
|
1178
|
+
Codex's own config, the analyzed project's, or the extension or
|
|
1179
|
+
plugin that provides them; Codex's apps connectors are its `apps`
|
|
1180
|
+
feature), or run in an environment without them.
|
|
1181
|
+
- **pi agents can call other models.** `codemode`, which every pi agent
|
|
1182
|
+
gets (it's how pi reaches MCP tools), whether or not any MCP server is
|
|
1183
|
+
configured, also gives scripts pi's `models` API
|
|
1184
|
+
(`models.classify`, `models.generateImages`), which sends what a
|
|
1185
|
+
script passes it to any model pi has credentials for, billed to you
|
|
1186
|
+
(its usage is counted in the agent's). The read-only instructions
|
|
1187
|
+
don't limit it.
|
|
1188
|
+
- **Your pi extensions, your Claude Code hooks and plugins, and your
|
|
1189
|
+
Codex skills, plugins, and trusted hooks, load.**
|
|
1190
|
+
Extensions you've installed load for every pi agent, as you.
|
|
1050
1191
|
Your Claude Code hooks and plugins run for every Claude Code agent, as
|
|
1051
1192
|
you, and so do hooks the analyzed repository's `.claude` settings
|
|
1052
1193
|
define (see the next item). Agents also get Claude Code's auto memory
|
|
@@ -1057,7 +1198,8 @@ Before running it, know that:
|
|
|
1057
1198
|
- **The analyzed repository can steer the agents.** Agents read the
|
|
1058
1199
|
repository's files, and the harness loads the repository's context
|
|
1059
1200
|
files and settings: pi its context files (such as `AGENTS.md`) and, if
|
|
1060
|
-
the project is trusted, its `.pi` resources;
|
|
1201
|
+
the project is trusted, its `.pi` resources; Codex its `AGENTS.md`
|
|
1202
|
+
files and, if you trust the project, its `.codex` config; Claude Code its
|
|
1061
1203
|
`CLAUDE.md` files and `.claude` settings, which apply without the
|
|
1062
1204
|
trust prompt an interactive session would show first (their hooks,
|
|
1063
1205
|
for one, run commands; checked). So the repository can direct what
|
|
@@ -1073,7 +1215,8 @@ Before running it, know that:
|
|
|
1073
1215
|
- **Your code goes to every configured provider.** Whatever an agent reads,
|
|
1074
1216
|
and the output of whatever it runs, is sent to that agent's provider
|
|
1075
1217
|
(for a Claude Code agent, wherever your `claude` sends it: Anthropic,
|
|
1076
|
-
unless it is set up for another
|
|
1218
|
+
unless it is set up for another; for a Codex agent, wherever your
|
|
1219
|
+
`codex` sends it: OpenAI, unless its config names another provider). The
|
|
1077
1220
|
consolidator's provider receives the prompt and all reports, plus
|
|
1078
1221
|
anything the consolidator itself reads or runs. Check those providers'
|
|
1079
1222
|
data policies before analyzing private code.
|
|
@@ -1145,6 +1288,24 @@ checked; most apply on any platform, the last two were checked on Linux.
|
|
|
1145
1288
|
yours short, e.g. `TMPDIR=/tmp agent-council ...`. A
|
|
1146
1289
|
`CLAUDE_CODE_TMPDIR` of your own doesn't reach agents.
|
|
1147
1290
|
|
|
1291
|
+
### Codex's sandbox
|
|
1292
|
+
|
|
1293
|
+
agent-council passes Codex no `--sandbox` option: your Codex config's
|
|
1294
|
+
`sandbox_mode` decides, as in an interactive session, and with it what
|
|
1295
|
+
Codex agents' commands can write. Checked with codex-cli 0.167.0:
|
|
1296
|
+
|
|
1297
|
+
- **Under `read-only`** (Codex's default), commands can't write anywhere,
|
|
1298
|
+
`$TMPDIR` included ("read-only file system"), so agents have no
|
|
1299
|
+
scratch space although the scaffolding offers it, and must do without.
|
|
1300
|
+
- **Under `workspace-write`**, commands can write `$TMPDIR`, and also the
|
|
1301
|
+
working directory, which is the analyzed repository. Only the
|
|
1302
|
+
scaffolding's instructions keep agents from changing it, as for pi
|
|
1303
|
+
agents.
|
|
1304
|
+
- **Network access is blocked** under both, unless your config allows
|
|
1305
|
+
it (e.g. `sandbox_workspace_write.network_access`): commands such as
|
|
1306
|
+
`curl` can't reach the network. The model itself is reached by Codex,
|
|
1307
|
+
not through the sandbox.
|
|
1308
|
+
|
|
1148
1309
|
## Limitations (deliberate)
|
|
1149
1310
|
|
|
1150
1311
|
No retries or timeouts of agent-council's own (the harnesses themselves
|
data/RELEASE_NOTES.md
CHANGED
|
@@ -1,5 +1,71 @@
|
|
|
1
1
|
# Release Notes
|
|
2
2
|
|
|
3
|
+
## 0.3.0 (2026-11-20)
|
|
4
|
+
|
|
5
|
+
- **Check before upgrading: agents now get your MCP servers.** Agents in
|
|
6
|
+
every harness get the MCP servers you've configured for it, as an
|
|
7
|
+
interactive session would, instead of none: pi is no longer run with
|
|
8
|
+
`--no-mcp`, and Claude Code no longer with `--strict-mcp-config`. A
|
|
9
|
+
server that writes (posting, commenting, changing tickets) is
|
|
10
|
+
available to every pi agent, held back only by the read-only
|
|
11
|
+
instructions, which now forbid acting outside the machine; Claude
|
|
12
|
+
Code agents run only the MCP tools your settings or the analyzed
|
|
13
|
+
project's allow, and Codex agents only those your config approves,
|
|
14
|
+
since neither can ask. Every agent starts every server it loads, so
|
|
15
|
+
one that acts on startup acts once per agent. Before a run, remove or
|
|
16
|
+
disable servers you don't want agents to have. See "Agents get your
|
|
17
|
+
MCP servers" in the README's Safety section, which also lists which
|
|
18
|
+
servers load (including pi extensions', Claude Code and Codex
|
|
19
|
+
plugins', and Codex's apps connectors) and where to turn each off.
|
|
20
|
+
- pi's tool allowlist gains `codemode` (how pi exposes MCP tools by
|
|
21
|
+
default), `mcp__*` (for servers with direct exposure), `tool_search`
|
|
22
|
+
(for servers with deferred exposure), and pi's MCP resource tools.
|
|
23
|
+
`pi-models` still passes `--no-mcp`.
|
|
24
|
+
- Claude Code agents' refused MCP calls are warnings, as other
|
|
25
|
+
refused calls already were.
|
|
26
|
+
- A third harness: an entry with `harness: codex` runs under the OpenAI
|
|
27
|
+
Codex CLI (`codex exec`, tested with 0.167.0), billed however your
|
|
28
|
+
`codex` login is (a ChatGPT plan or an API key). See "Choosing a
|
|
29
|
+
harness" in the README.
|
|
30
|
+
- Codex agents run as an interactive session would: your Codex config
|
|
31
|
+
applies, its `sandbox_mode` included, and so do the project's
|
|
32
|
+
`AGENTS.md` files. `codex exec` never asks for approval, whatever
|
|
33
|
+
your `approval_policy`, so a command that would need it is refused.
|
|
34
|
+
Under Codex's default `read-only` sandbox they get no scratch
|
|
35
|
+
space; under `workspace-write` they can also write the analyzed
|
|
36
|
+
repository (see "Codex's sandbox" in the README).
|
|
37
|
+
- Unlike pi and Claude Code agents, whose built-in tools are limited,
|
|
38
|
+
Codex agents keep Codex's whole built-in toolset, file editing
|
|
39
|
+
included, since Codex can't withhold tools. Its subagent tools fail
|
|
40
|
+
under the `--ephemeral` agent-council passes, so agents can't fan
|
|
41
|
+
out.
|
|
42
|
+
- Codex agents get your MCP servers (see above), but `codex exec` never
|
|
43
|
+
asks for approval, so an MCP tool call is refused unless your config
|
|
44
|
+
approves the tool in advance (e.g. `default_tools_approval_mode =
|
|
45
|
+
"approve"` on the server).
|
|
46
|
+
- Errors Codex reports without failing an agent (such as missing
|
|
47
|
+
metadata for a model name), and failed MCP calls (such as those
|
|
48
|
+
refused for want of approval), are printed as warnings and recorded
|
|
49
|
+
in `run.json`.
|
|
50
|
+
- Codex reports no cost, so a Codex agent's cost is blank, and a run's
|
|
51
|
+
total cost (`total_usage`'s `cost` in `run.json`) is left out when a
|
|
52
|
+
Codex agent reported usage; see the known-cost item below.
|
|
53
|
+
- `mixed-harness.yml` gains a Codex analyst.
|
|
54
|
+
- `codemode`, which every pi agent now gets, MCP servers or not, gives
|
|
55
|
+
scripts pi's `models` API (`models.classify`,
|
|
56
|
+
`models.generateImages`), which can send what a script passes it to
|
|
57
|
+
any model pi has credentials for, billed to you. pi agents' usage now
|
|
58
|
+
includes what their tools report, so such calls are counted. See "pi
|
|
59
|
+
agents can call other models" in the README's Safety section.
|
|
60
|
+
- A run that mixes agents with and without a known cost (such as Codex
|
|
61
|
+
agents, which have none) now shows the cost of the analysts whose
|
|
62
|
+
cost is known in the console summary ("$1.00 for the 2 of 3 agents
|
|
63
|
+
with a known cost"), and `run.json` records the same for every entry,
|
|
64
|
+
consolidations included, as `known_cost` and `known_cost_runs`.
|
|
65
|
+
- The scaffolding gains a rule: agents must not act outside the machine
|
|
66
|
+
(post, comment, send messages, or change remote data) with any tool,
|
|
67
|
+
MCP tools included. Reading remote information is still allowed.
|
|
68
|
+
|
|
3
69
|
## 0.2.0 (2026-11-19)
|
|
4
70
|
|
|
5
71
|
- `--gem-dir` prints the root directory of the agent-council application,
|
data/RUNAWAY_AGENTS.md
CHANGED
|
@@ -44,8 +44,8 @@ A limit is easy to write; a good default is not:
|
|
|
44
44
|
how often, how accurately, and what it counts. If that differs, the
|
|
45
45
|
same cap would mean different things for different agents in one
|
|
46
46
|
config, which would be confusing at best and misleading at worst.
|
|
47
|
-
Even if
|
|
48
|
-
|
|
47
|
+
Even if the harnesses agreed today, supporting another harness later
|
|
48
|
+
could bring in the difference.
|
|
49
49
|
- **Sleep shouldn't count, but may.** Nothing runs while the computer
|
|
50
50
|
sleeps, so time asleep shouldn't count toward a limit; counting it
|
|
51
51
|
can stop an agent that was making progress as soon as the computer
|
data/USE_CASES.md
CHANGED
|
@@ -109,7 +109,8 @@ saved.
|
|
|
109
109
|
- Measuring one model's consistency by configuring it several times.
|
|
110
110
|
- Comparing providers serving the same model, on latency, price, and
|
|
111
111
|
reliability.
|
|
112
|
-
- Comparing harnesses running the same model (pi and Claude Code
|
|
112
|
+
- Comparing harnesses running the same model (say, pi and Claude Code,
|
|
113
|
+
or pi and Codex), on
|
|
113
114
|
speed, cost, and what they find.
|
|
114
115
|
- Finding out which listed models your plan actually covers.
|
|
115
116
|
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
# Sample mixed-harness ensemble:
|
|
2
|
-
# with a Claude Code consolidator. Claude Code entries run
|
|
3
|
-
# `claude`
|
|
4
|
-
# README); pi entries need credentials for their
|
|
5
|
-
# `pi --list-models`). Replace any provider or model you don't
|
|
1
|
+
# Sample mixed-harness ensemble: Claude Code and Codex analysts alongside pi
|
|
2
|
+
# analysts, with a Claude Code consolidator. Claude Code and Codex entries run
|
|
3
|
+
# under your own `claude` and `codex` setups and bill however they do (see
|
|
4
|
+
# "Choosing a harness" in the README); pi entries need credentials for their
|
|
5
|
+
# providers (see `pi --list-models`). Replace any provider or model you don't
|
|
6
|
+
# have.
|
|
6
7
|
agents:
|
|
7
8
|
- harness: claude
|
|
8
9
|
provider: anthropic
|
|
9
10
|
model: claude-opus-5-5
|
|
11
|
+
- harness: codex
|
|
12
|
+
provider: openai
|
|
13
|
+
model: gpt-5.6-terra
|
|
10
14
|
- harness: pi
|
|
11
15
|
provider: deepseek
|
|
12
16
|
model: deepseek-flash
|
data/exe/agent-council
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
# lib/agent_council/harnesses/pi_harness.rb pi-specific behavior (AgentCouncil::Harnesses::PiHarness)
|
|
9
9
|
# lib/agent_council/harnesses/claude_code_harness.rb
|
|
10
10
|
# Claude Code-specific behavior (ClaudeCodeHarness)
|
|
11
|
+
# lib/agent_council/harnesses/codex_harness.rb
|
|
12
|
+
# Codex-specific behavior (CodexHarness)
|
|
11
13
|
#
|
|
12
14
|
# Usage, options, and AGENT_COUNCIL_OPTS: agent-council -h, and the README.
|
|
13
15
|
|
|
@@ -37,7 +37,6 @@ module AgentCouncil
|
|
|
37
37
|
'--tools', TOOLS, # the only built-in tools available
|
|
38
38
|
'--allowedTools', TOOLS, # ...and pre-approved, since -p can't ask
|
|
39
39
|
'--permission-mode', 'manual', # the same for every user, whatever their defaultMode
|
|
40
|
-
'--strict-mcp-config', # with no --mcp-config: no MCP servers
|
|
41
40
|
'--model', model,
|
|
42
41
|
'--append-system-prompt', Harnesses.scaffold_text
|
|
43
42
|
]
|