agent-council 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -9,8 +9,11 @@ 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, or [Claude Code](https://code.claude.com/docs), for Anthropic's,
13
- billed however your `claude` login is. The agents can use any mix of
12
+ models; [OpenCode](https://opencode.ai/docs/cli), likewise for any
13
+ provider's; [Claude Code](https://code.claude.com/docs), for Anthropic's,
14
+ billed however your `claude` login is; or
15
+ [Codex](https://developers.openai.com/codex/cli), for OpenAI's, billed
16
+ however your `codex` login is. The agents can use any mix of
14
17
  harnesses, providers, and models, including the same model more than
15
18
  once, or under each harness.
16
19
 
@@ -89,8 +92,8 @@ next month's models.
89
92
 
90
93
  Because the harness is chosen per agent, a comparison can also pit the
91
94
  same model against itself under different harnesses. The project is at
92
- an early stage; support for more harnesses, such as Codex, is among the
93
- [planned features](DESIGN.md#18-status-and-future-work). See
95
+ an early stage; see its
96
+ [planned features](DESIGN.md#18-status-and-future-work), and
94
97
  [`DESIGN.md`](DESIGN.md) for the rationale.
95
98
 
96
99
  ## What makes a good fit
@@ -108,7 +111,8 @@ agent-council can help with any question about a set of readable files
108
111
  - **It has a text answer.** Only each agent's final message is saved as
109
112
  its report. Agents are told not to change the project and to keep
110
113
  temporary files in a scratch directory, which is deleted when the
111
- agent finishes. Actions such as posting or deploying would happen once per agent.
114
+ agent finishes, and not to act outside the machine: posting or
115
+ deploying, if an agent did it anyway, would happen once per agent.
112
116
  - **It gains from several independent answers and a synthesis of
113
117
  them.** Open-ended questions ("what's wrong with this?", "what should
114
118
  we do?") gain the most; one with an obvious answer gains nothing.
@@ -136,8 +140,8 @@ in detail.
136
140
  [`pi` CLI](https://github.com/earendil-works/pi) (`pi --version`). See
137
141
  [Prerequisites](#prerequisites), or [INSTALL.md](INSTALL.md) if you
138
142
  need to install Ruby too. These steps run every agent under pi; to
139
- run agents under Claude Code as well, or instead (then without pi),
140
- see [Choosing a harness](#choosing-a-harness).
143
+ run agents under OpenCode, Claude Code, or Codex as well, or instead (then
144
+ without pi), see [Choosing a harness](#choosing-a-harness).
141
145
  2. **Set up credentials for at least one provider in pi** (see
142
146
  [pi's documentation][pi-docs]), then list the models available to pi
143
147
  (a listed model can still be one your plan doesn't include). Two
@@ -212,16 +216,26 @@ consolidator, see
212
216
  - The harness CLIs your config uses (each run checks for them first):
213
217
  - for pi: the
214
218
  [`pi` CLI](https://github.com/earendil-works/pi)
215
- (`pi --version`), 1.0.4 or later, for `--no-mcp` (tested with pi
216
- 1.3.0, 1.4.0, and 1.5.2), with credentials for at least one provider
219
+ (`pi --version`), 1.0.4 or later (`pi-models` runs pi with
220
+ `--no-mcp`; tested with pi 1.3.0, 1.4.0, and 1.5.2, with agents' MCP
221
+ access checked with 1.5.2), with credentials for at least one provider
217
222
  (several give more diverse viewpoints), configured through pi itself
218
223
  (see [pi's documentation][pi-docs]);
219
224
  - for Claude Code: the [`claude` CLI](https://code.claude.com/docs)
220
- (`claude --version`; tested with 2.1.325 and 2.1.327, and earlier versions may
221
- lack flags agent-council passes),
222
- logged in or set up with an API key.
223
-
224
- agent-council runs the `pi` and `claude` executables found on its
225
+ (`claude --version`; tested with 2.1.325, 2.1.327, and 2.1.329,
226
+ and earlier versions may lack flags agent-council passes),
227
+ logged in or set up with an API key;
228
+ - for Codex: the [`codex` CLI](https://developers.openai.com/codex/cli)
229
+ (`codex --version`; tested with 0.167.0, and earlier versions may
230
+ lack flags agent-council passes), logged in with a ChatGPT plan or
231
+ an API key;
232
+ - for OpenCode: the [`opencode` CLI](https://opencode.ai/docs/cli)
233
+ (`opencode --version`; tested with 1.19.6; 1.2.4 ignores
234
+ `OPENCODE_DB`, so its agents' sessions would be saved to your
235
+ history), with credentials for at least one provider
236
+ (`opencode auth login`).
237
+
238
+ agent-council runs the `pi`, `opencode`, `claude`, and `codex` executables found on its
225
239
  `PATH`, not your shell's aliases or functions of those names. If yours
226
240
  add something, such as an environment variable or a directory on
227
241
  `PATH`, set it in the environment you run agent-council from (for
@@ -233,8 +247,8 @@ consolidator, see
233
247
  ([INSTALL.md](INSTALL.md) has the steps). Windows drives are reachable
234
248
  at `/mnt/c/...`, but file access there is much slower than in the Linux
235
249
  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 with
237
- Windows.
250
+ log in to OpenCode, Claude Code, or Codex) inside WSL too; WSL doesn't share them
251
+ with Windows.
238
252
 
239
253
  ## Installation
240
254
 
@@ -274,16 +288,46 @@ AC_HOME=$(agent-council --gem-dir)
274
288
 
275
289
  ## Discovering and configuring models
276
290
 
291
+ Each harness has its own way to find the models it can use. pi,
292
+ OpenCode, and Codex list theirs:
293
+
277
294
  ```bash
278
- pi --list-models # models of the providers you have credentials for
295
+ # pi: the models of the providers you have credentials for
296
+ pi --list-models
297
+
298
+ # OpenCode: its models, as provider/model
299
+ opencode models
300
+ opencode models opencode-go # only one provider's
301
+ opencode models --refresh # refresh its model catalog, then list
302
+
303
+ # Codex: its model names (slugs), leaving out the ones it marks hidden
304
+ codex debug models | jq -r '.models[] | select(.visibility != "hide") | .slug'
279
305
  ```
280
306
 
281
- `pi --list-models` lists only the models of providers pi has
282
- credentials for, not its whole catalog, so a provider missing from it
283
- may just lack credentials. A listed model can still be unusable, e.g.
284
- one your plan doesn't include. Credentials, and which one pi uses when
285
- a provider has several, are pi's business; see
286
- [pi's documentation][pi-docs].
307
+ - **pi.** An entry's `provider` and `model` are a listed model's
308
+ `provider` and `model` columns. `pi --list-models` lists only the
309
+ models of providers pi has credentials for, not its whole catalog, so
310
+ a provider missing from it may just lack credentials. A listed model
311
+ can still be unusable, e.g. one your plan doesn't include.
312
+ Credentials, and which one pi uses when a provider has several, are
313
+ pi's business; see [pi's documentation][pi-docs].
314
+ - **OpenCode.** An entry's `provider` is the part of a listed name
315
+ before the first `/`, and its `model` the rest. OpenCode keeps a
316
+ cached catalog of models from models.dev; `--refresh` updates it
317
+ first, for a model too new to be listed. See [OpenCode's CLI
318
+ commands](https://opencode.ai/docs/cli/commands), and
319
+ `opencode models --help` for the options.
320
+ - **Codex.** `codex debug models` prints Codex's model catalog as JSON
321
+ (the `jq` command above picks out the names); a listed model's `slug`
322
+ is what an entry's `model` takes. The catalog is Codex's own models,
323
+ so with a custom `model_provider` in your Codex config, give the
324
+ names that provider takes instead. It's a debugging command, so its
325
+ output may change between Codex versions (this was checked with
326
+ 0.171.0).
327
+ - **Claude Code.** `model` is an alias, such as `opus` or `sonnet`, or
328
+ a full model name; Claude Code's [Model
329
+ configuration](https://code.claude.com/docs/en/model-config) page
330
+ lists the aliases.
287
331
 
288
332
  Edit the config to choose the ensemble. The config is the optional second
289
333
  argument; if omitted, `./agent-council.yml` in the current directory is used
@@ -319,15 +363,15 @@ agent, and the consolidator, needs nonblank string `harness`,
319
363
  `provider`, and `model` values (quote any value YAML would read as
320
364
  something else, such as a number, a date, or `yes`). None has a default;
321
365
  a 0.1.0 config needs `harness: pi` added to each entry. `harness` names
322
- the harness the entry runs under, `pi` or `claude`; an unknown name is
366
+ the harness the entry runs under, `pi`, `claude`, `codex`, or `opencode`; an unknown name is
323
367
  rejected at startup (with `--consolidate`, only the consolidator's,
324
368
  since no analysts run). Other keys are ignored. A config error lists
325
369
  every bad entry, named as in `'agents' entry #2` or `'consolidator'`,
326
370
  with every problem it has.
327
371
 
328
372
  More samples are in [`examples/configs/`](examples/configs/), which is
329
- included in the installed gem; `mixed-harness.yml` mixes pi and Claude
330
- Code agents. For scripts and agents,
373
+ included in the installed gem; `mixed-harness.yml` mixes pi, Claude
374
+ Code, Codex, and OpenCode agents. For scripts and agents,
331
375
  [`pi-models`](#occasional-utility-pi-models) lists the models in
332
376
  machine-readable forms.
333
377
 
@@ -370,7 +414,9 @@ consolidator:
370
414
  ```
371
415
 
372
416
  - **Models.** `model` is any model name or alias `claude --model`
373
- accepts. Claude Code takes no provider, so `provider` only labels the
417
+ accepts (see [Discovering and configuring
418
+ models](#discovering-and-configuring-models)). Claude Code takes no
419
+ provider, so `provider` only labels the
374
420
  agent: `anthropic`, or e.g. `bedrock` if your `claude` is set up to use
375
421
  it.
376
422
  - **Billing.** agent-council leaves authentication and billing to Claude
@@ -389,11 +435,17 @@ consolidator:
389
435
  notes Claude Code has kept for the project, and are told, as an
390
436
  interactive session is, that they may add to them. See
391
437
  [Safety and privacy](#safety-and-privacy).
392
- - **Refused tool calls.** Claude Code can still refuse a tool call, for
393
- example one that a `permissions.deny` rule in your settings or the
394
- project's forbids. The agent then carries on without it; its report is
395
- kept, and a warning naming the call (up to five distinct calls, with a
396
- count of the rest) is printed under its progress line (the
438
+ - **MCP tools need a permission rule.** Your MCP servers load (see
439
+ [Safety and privacy](#safety-and-privacy)), but `-p` can't ask, and
440
+ agent-council doesn't add MCP tools to `--allowedTools`, so an agent's
441
+ MCP tool call is refused unless a `permissions.allow` rule in your
442
+ settings or the project's allows it (checked). A refused call is
443
+ reported as described next.
444
+ - **Refused tool calls.** Claude Code can still refuse a tool call: an
445
+ MCP call no rule allows, or one that a `permissions.deny` rule in your
446
+ settings or the project's forbids. The agent then carries on without
447
+ it; its report is kept, and a warning naming the call (up to five distinct calls, with a
448
+ count of the rest) is printed under its finish line (the
397
449
  consolidator's, under its result table), shown in the report's
398
450
  metadata table (so the consolidator sees an analyst's too), and
399
451
  recorded in `run.json`, since the report may lack what the call would
@@ -402,6 +454,121 @@ consolidator:
402
454
  the console, in `run.json`, and in what the consolidator is told about
403
455
  it, since the refusals may be why it failed.
404
456
 
457
+ An entry with `harness: codex` runs under
458
+ [Codex](https://developers.openai.com/codex/cli) (`codex exec`):
459
+
460
+ ```yaml
461
+ agents:
462
+ - harness: codex
463
+ provider: openai
464
+ model: gpt-5.6-terra
465
+ ```
466
+
467
+ - **Models.** `model` is any model name `codex --model` accepts (`codex
468
+ debug models` lists them; see [Discovering and configuring
469
+ models](#discovering-and-configuring-models)). As with Claude Code,
470
+ `provider` only labels the agent: Codex uses the
471
+ `model_provider` its own config names.
472
+ - **Billing.** agent-council leaves authentication and billing to Codex:
473
+ an agent bills however `codex` would at your terminal, to your ChatGPT
474
+ plan if you are logged in with one, or to an API key. Codex reports
475
+ tokens but no price, so a Codex agent's cost is blank, and the run's
476
+ total has no cost; the console summary gives the other analysts'
477
+ known cost, labeled as such, and `run.json` records it as
478
+ `known_cost`.
479
+ - **Context and sandbox.** Each agent runs as an interactive session
480
+ started in your project would: your Codex `config.toml` applies,
481
+ including its `sandbox_mode`, and so do the project's `AGENTS.md`
482
+ files. Your `approval_policy` doesn't: `codex exec` never asks for
483
+ approval, so a command that would need it is refused (checked:
484
+ `on-request` became `never`, and `untrusted` makes Codex exit with an
485
+ error). agent-council passes no sandbox option, so
486
+ what an agent can write is whatever your `sandbox_mode` allows (see
487
+ [Codex's sandbox](#codexs-sandbox)). The read-only rules are
488
+ given as `developer_instructions`, which replaces any your config sets.
489
+ - **Tools.** Codex agents keep Codex's whole built-in toolset,
490
+ including its file-editing tool (`apply_patch`) and its subagent
491
+ tools: this Codex version has no way to withhold them. (pi and Claude
492
+ Code agents get only read and shell tools, plus MCP tools, as
493
+ described here, and OpenCode agents lose their file-editing tools.)
494
+ The subagent tools fail, though, since agent-council runs Codex with
495
+ `--ephemeral` (no session files), which subagents need, so a Codex
496
+ agent works alone.
497
+ - **MCP tools need approval in your config.** Your MCP servers load (see
498
+ [Safety and privacy](#safety-and-privacy)), but `codex exec` never asks
499
+ for approval, so an agent's MCP tool call is refused unless your config
500
+ approves the tool in advance, e.g. with
501
+ `default_tools_approval_mode = "approve"` in a server's
502
+ `[mcp_servers.<name>]` table (checked). A refused call is printed as a
503
+ warning, recorded the same way as Claude Code's refused calls.
504
+ - **Outside a git repository.** Codex normally refuses to run outside one
505
+ it trusts; agent-council passes `--skip-git-repo-check`, so Codex agents
506
+ run wherever pi, Claude Code, and OpenCode agents do.
507
+ - **Warnings.** Errors Codex reports without failing the agent (such as
508
+ missing metadata for a model name) are printed as one warning, and
509
+ failed MCP tool calls (such as those refused for lack of approval) as
510
+ another, each recorded the same way as Claude Code's refused calls.
511
+
512
+ An entry with `harness: opencode` runs under
513
+ [OpenCode](https://opencode.ai/docs/cli) (`opencode run`), which, like
514
+ pi, reaches many providers, so a council can compare one model under
515
+ both:
516
+
517
+ ```yaml
518
+ agents:
519
+ - harness: opencode
520
+ provider: opencode-go
521
+ model: glm-5.3
522
+ - harness: pi
523
+ provider: opencode-go
524
+ model: glm-5.3
525
+ ```
526
+
527
+ - **Models.** Unlike Claude Code's and Codex's, `provider` is passed:
528
+ the agent runs `--model <provider>/<model>`, so give a provider and a
529
+ model as `opencode models` lists them, split at the first `/` (see
530
+ [Discovering and configuring
531
+ models](#discovering-and-configuring-models)).
532
+ - **Billing.** agent-council leaves authentication and billing to
533
+ OpenCode: an agent uses the credentials `opencode auth login` saved.
534
+ Cost is OpenCode's estimate from its own model catalog (see
535
+ [How far to trust the cost](#how-far-to-trust-the-cost)).
536
+ - **Context.** Each agent runs as an interactive session started in your
537
+ project would: your OpenCode config, plugins, and MCP servers apply,
538
+ and so do the project's `AGENTS.md` files and `opencode.json`.
539
+ agent-council adds its settings through `OPENCODE_CONFIG_CONTENT`,
540
+ which OpenCode merges over your config and the project's (a value of
541
+ your own for it is replaced): the read-only rules, as an
542
+ `instructions` file, and the settings below.
543
+ - **Agent.** Agents run as OpenCode's `build` agent (`--agent build`),
544
+ whatever `default_agent` your config or the project's names.
545
+ - **Tools.** Editing is denied (`permission.edit: deny`, globally and
546
+ for `build`), which withholds OpenCode's file-editing tools; `bash`
547
+ and the rest stay, its subagent tool (`task`) included. This is a
548
+ default, not a guarantee: your config or the project's can allow
549
+ editing again (for `build` or for a subagent it defines), and `bash`
550
+ can write files regardless, as under every harness.
551
+ - **No session history.** Each agent's session goes to a database in
552
+ its scratch directory (`OPENCODE_DB`), deleted afterward, so it isn't
553
+ added to your history, as the other harnesses' sessions aren't.
554
+ Snapshots (OpenCode's undo) are turned off, so a run doesn't copy the
555
+ project's files, untracked ones included, into OpenCode's data
556
+ directory. OpenCode still writes its logs there.
557
+ - **Permissions that ask are refused.** `opencode run` can't ask, so a
558
+ tool call set to `ask`, by your permissions or OpenCode's defaults
559
+ (e.g. for files outside the project), is refused with a warning, and
560
+ the agent goes on without it (agent-council sets
561
+ `experimental.continue_loop_on_deny`). The agent's scratch directory
562
+ is allowed, so it can read what it puts in `$TMPDIR`. To let agents
563
+ make other such calls, allow them in your permissions. MCP tools need
564
+ no permission by default.
565
+ - **Usage.** OpenCode's title request is turned off (its usage isn't
566
+ reported). A subagent's usage isn't reported either, so an agent that
567
+ starts subagents reports less than it used.
568
+ - **A `.gitignore` in the project's `.opencode` directory.** If the
569
+ analyzed project has one, OpenCode writes a `.gitignore` there, as an
570
+ interactive session would.
571
+
405
572
  ## Running
406
573
 
407
574
  ```bash
@@ -512,7 +679,7 @@ agent-council \
512
679
  - `examples/prompts/test-coverage-analysis-prompt.md` — a line-coverage
513
680
  analysis organized by the logical parts of the system, with gaps ranked by
514
681
  risk and a ready-to-use prompt for each recommended fix. It reads
515
- SimpleCov's `coverage/coverage.json` through
682
+ SimpleCov's coverage data through
516
683
  [cov-loupe](https://github.com/keithrbennett/cov-loupe) and runs no tests,
517
684
  so run your full test suite first; it stops with an error if the coverage
518
685
  data looks out of date.
@@ -528,16 +695,25 @@ Config: [default] /home/me/.agent-council.yml
528
695
  Prompt: examples/prompts/review-latest-commit-prompt.md
529
696
  Run Dir: agent-council-reports/2026-11-18/22-46-15
530
697
 
531
- Review Agents (4):
698
+ Configured Review Agents (4):
532
699
  #1 pi / deepseek / deepseek-flash
533
700
  #2 pi / deepseek / deepseek-flash
534
701
  #3 pi / openrouter / deepseek/deepseek-v4.1-flash-1017
535
702
  #4 pi / openrouter / deepseek/deepseek-v4.1-flash-1017
536
703
 
537
- Consolidator Agent:
704
+ Configured Consolidator Agent:
538
705
  pi / anthropic / claude-sonnet-5-5
539
706
 
540
- Review Progress:
707
+ Run this in another terminal to see (sub)process statuses:
708
+ agent-council-ps 48200
709
+
710
+ Started Agents:
711
+ - pid 48211 #1 deepseek / deepseek-flash
712
+ - pid 48212 #2 deepseek / deepseek-flash
713
+ - pid 48214 #3 openrouter / deepseek/deepseek-v4.1-flash-1017
714
+ - pid 48216 #4 openrouter / deepseek/deepseek-v4.1-flash-1017
715
+
716
+ Finished Agents:
541
717
  ✓ 00:01:53 #3 openrouter / deepseek/deepseek-v4.1-flash-1017
542
718
  ✓ 00:02:31 #4 openrouter / deepseek/deepseek-v4.1-flash-1017
543
719
  ✓ 00:02:42 #2 deepseek / deepseek-flash
@@ -553,11 +729,14 @@ Reviews (in agent-council-reports/2026-11-18/22-46-15/reviews):
553
729
  --- Reviews complete (4/4 succeeded; 4.9M in (4.7M cached) / 107.9k out, $0.18) ---
554
730
 
555
731
  Consolidation Report (in agent-council-reports/2026-11-18/22-46-15):
732
+ - pid 48390 anthropic / claude-sonnet-5-5
556
733
  Ok Duration Agent In Cached Out Cost
557
734
  ✓ 00:00:17 anthropic / claude-sonnet-5-5 11.7k 0 2.2k $0.05
558
735
  ```
559
736
 
560
- Progress lines appear as each agent finishes. Costs are the harness's
737
+ Each agent gets a line under `Started Agents:` as it starts, with its
738
+ process ID, and one under `Finished Agents:` as it finishes, with `✓` or
739
+ `✗`. Costs are the harness's
561
740
  estimates and can be far off; see [How far to trust the
562
741
  cost](#how-far-to-trust-the-cost). The files the run wrote are described
563
742
  in [What you get](#what-you-get).
@@ -591,8 +770,10 @@ one with an unclosed quote, makes every command fail, `-h`, `-v`,
591
770
  Ctrl-C (or SIGTERM, SIGHUP, or SIGQUIT) stops the run, keeping reports
592
771
  already written:
593
772
 
594
- - Running agents, the consolidator included, get SIGTERM (pi and Claude
595
- Code then also stop the commands they started) and a shared 5 seconds to exit before
773
+ - Running agents, the consolidator included, get SIGTERM (pi, Claude
774
+ Code, and Codex then also stop the commands they started; OpenCode
775
+ doesn't, and didn't exit within the 5 seconds in a check with 1.19.6)
776
+ and a shared 5 seconds to exit before
596
777
  they are killed. A killed agent can't stop the commands it started, so
597
778
  those may keep running.
598
779
  - A second SIGINT, SIGTERM, or SIGQUIT kills them at once; further SIGHUPs
@@ -610,7 +791,13 @@ agent-council has no time limit, so an agent that never finishes holds
610
791
  up the run until you stop it. To stop a run automatically after a set
611
792
  time, run it under the `timeout` command; [`RUNAWAY_AGENTS.md`](RUNAWAY_AGENTS.md)
612
793
  explains how, the options to use and avoid, and why there's no
613
- built-in limit yet.
794
+ built-in limit yet. It also explains how to [see what an agent is
795
+ doing](RUNAWAY_AGENTS.md#seeing-what-an-agent-is-doing) with
796
+ `agent-council-ps` (which the gem includes), including an example of
797
+ [asking a coding assistant to look
798
+ closer](RUNAWAY_AGENTS.md#asking-a-coding-assistant-to-look-closer),
799
+ and how to [stop one agent](RUNAWAY_AGENTS.md#stopping-one-agent) by
800
+ the process ID printed as it started, letting the others finish.
614
801
 
615
802
  ### Consolidating a finished run
616
803
 
@@ -767,7 +954,7 @@ agent-council-reports/
767
954
  `<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
955
  and `<provider>` and `<model>` are sanitized like the query slug below,
769
956
  but keep their case. `<harness>` is the agent's (or consolidator's)
770
- `harness` config value, `pi` or `claude` (see
957
+ `harness` config value, `pi`, `claude`, `codex`, or `opencode` (see
771
958
  [Choosing a harness](#choosing-a-harness)).
772
959
  `<agent-number>` is the agent's 1-based position in the config's
773
960
  `agents` list (`01`, `02`, ...), so every report has a unique name even
@@ -807,8 +994,15 @@ agent-council-reports/
807
994
  (such as a Claude Code agent with refused tool calls) also has
808
995
  `warnings`, a list of messages. The file also has `total_usage`, the
809
996
  entries' summed usage, whose `cost` is included only if every summed
810
- entry's cost is known; and `total_usage_runs`, how many entries reported
811
- usage (and so are in the total). Failed agents are included, since their
997
+ entry's cost is known; `total_usage_runs`, how many entries reported
998
+ usage (and so are in the total); and, always, `known_cost` and
999
+ `known_cost_runs`, the summed cost of the entries whose cost is known
1000
+ and how many they are (`null` and 0 when none is), which differs from
1001
+ `total_usage`'s `cost` in a run that mixes priced agents with ones
1002
+ such as Codex agents, which have no cost. The console summary gives
1003
+ the analysts' known cost the same way, as "$1.00 for the 2 of 3
1004
+ agents with a known cost"; `known_cost` also covers consolidations.
1005
+ Failed agents are included, since their
812
1006
  tokens were spent, but a Claude Code agent that ends without its final
813
1007
  `result` event (e.g. because its `claude` was killed) reports no usage,
814
1008
  since only that event gives the agent's totals.
@@ -816,15 +1010,20 @@ agent-council-reports/
816
1010
  consolidation, including each `--consolidate`; a `--consolidate` of a
817
1011
  run dir without a readable `run.json` warns and writes none.
818
1012
 
819
- `usage` is the model's token usage, summed over every request the
820
- agent made, as reported by the harness: `input` (excluding cached input),
1013
+ `usage` is the agent's token usage, summed over every model request
1014
+ it made (for pi, its tools' requests too, such as a `codemode`
1015
+ script's `models.classify` calls), as reported by the harness: `input` (excluding cached input),
821
1016
  `cache_read`, `cache_write`, and `output` token counts, plus `cost` in
822
1017
  US dollars when the harness could price the usage (pi uses its own price
823
- table, so models missing from it have no cost; Claude Code prices usage
824
- at Anthropic's API list prices), recorded as the harness reports it,
1018
+ table, so models missing from it have no cost; OpenCode uses its own
1019
+ model catalog; Claude Code prices usage
1020
+ at Anthropic's API list prices; Codex prices nothing, so a Codex
1021
+ agent has no cost), recorded as the harness reports it,
825
1022
  only rounded to six decimal places. It is an estimate, not what you're
826
1023
  billed; see [How far to trust the cost](#how-far-to-trust-the-cost).
827
- `usage` is `null` when the provider reports no usage.
1024
+ `usage` is `null` when the provider reports no usage. An OpenCode
1025
+ agent's `usage` leaves out its subagents' (see
1026
+ [Choosing a harness](#choosing-a-harness)).
828
1027
 
829
1028
  `--consolidate` relies on the analysts' `prompt_file`, `config_file`,
830
1029
  `run_stamp`, and `query`, and on `agent_index` to tell which configured
@@ -865,9 +1064,12 @@ agent-council-reports/
865
1064
  Each run starts by printing its working directory (`Working Dir:`, which
866
1065
  relative paths below are shown against), config, prompt, and run
867
1066
  directory (`Run Dir: agent-council-reports/2026-09-03/09-14-02`), then
868
- its agents under `Review Agents (N):` and, if configured,
869
- `Consolidator Agent:`; these labels also name the harness
870
- (e.g. `#2 pi / openai / gpt-6.1-sol`).
1067
+ its agents under `Configured Review Agents (N):` and, if there is one,
1068
+ `Configured Consolidator Agent:`; these labels also name the harness
1069
+ (e.g. `#2 pi / openai / gpt-6.1-sol`). A line follows naming the
1070
+ `agent-council-ps` command, with the run's process ID, that shows what
1071
+ its agents are doing (see [Seeing what an agent is
1072
+ doing](RUNAWAY_AGENTS.md#seeing-what-an-agent-is-doing)).
871
1073
  You can open the run dir while agents are still working, or after a
872
1074
  Ctrl-C (see [Stopping a run](#stopping-a-run)). Other access patterns:
873
1075
 
@@ -880,11 +1082,16 @@ ls agent-council-reports/$(date +%F)/
880
1082
  ls agent-council-reports/*/*/reviews/*codebase-review*
881
1083
  ```
882
1084
 
883
- While the agents run, a `Review Progress:` section prints one line per
884
- agent as it finishes: `✓` or `✗`, its duration, its label (e.g.
1085
+ While the agents run, a `Started Agents:` section prints a line per
1086
+ agent as it starts: `- pid`, its process ID (also the ID of its process
1087
+ group, so `kill -TERM -<pid>` stops that agent alone; see [Stopping one
1088
+ agent](RUNAWAY_AGENTS.md#stopping-one-agent)), and its label. A
1089
+ `Finished Agents:` section follows, with a line per agent as it
1090
+ finishes (held until every agent has started, so the sections don't
1091
+ mix): `✓` or `✗`, its duration, its label (e.g.
885
1092
  `#2 openai / gpt-6.1-sol`) and, for a failure, the reason on the line
886
1093
  below; any warnings about an agent (such as tool calls Claude Code
887
- refused) follow as indented `Warning:` lines, under its progress line or,
1094
+ refused) follow as indented `Warning:` lines, under its finish line or,
888
1095
  for the consolidator, under its result row. When all reviews finish, a `Reviews` table shows which models
889
1096
  succeeded, how long each took (`HH:MM:SS`) and their token usage in
890
1097
  `In`, `Cached`, `Out`, and `Cost` columns (`In` counts cached input too;
@@ -893,12 +1100,13 @@ see [How far to trust the cost](#how-far-to-trust-the-cost)), with the failures'
893
1100
  reasons listed below it under `Errors:`. A
894
1101
  `--- Reviews complete (N/M succeeded; <total usage>) ---` line follows,
895
1102
  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, and the total
897
- notes `(from K of M agents)` when some reported no usage (as some
1103
+ shown only when every counted analyst's cost is known; otherwise the
1104
+ cost of the analysts whose cost is known follows, e.g. `; $0.12 for the 2 of 3 agents with
1105
+ a known cost`. The total notes `(from K of M agents)` when some reported no usage (as some
898
1106
  providers don't). With a consolidator,
899
1107
  the `Consolidation Report (in <run dir>):` heading (with
900
- `--consolidate`, `(in <run dir>, from N review(s)):`) then prints while it
901
- runs, its result row when it finishes, and finally `--- Consolidation
1108
+ `--consolidate`, `(in <run dir>, from N review(s)):`) then prints, then
1109
+ its `- pid` line as it starts, its result row when it finishes, and finally `--- Consolidation
902
1110
  complete ---` (or `--- Consolidation error ---`). One model's failure
903
1111
  does not affect the others. Exit status is 0 only if every analyst
904
1112
  agent succeeded; the consolidator's result doesn't affect it.
@@ -917,20 +1125,28 @@ Every cost agent-council shows or records is the harness's estimate
917
1125
  from per-token prices, not a bill, and it can be far off in either
918
1126
  direction:
919
1127
 
920
- - **Subscriptions.** On a subscription or plan (a Claude Code login, or
921
- a plan-based pi provider), the estimate is what the usage would cost
1128
+ - **Subscriptions.** On a subscription or plan (a Claude Code login, a
1129
+ Codex ChatGPT login, or a plan-based pi or OpenCode provider such as
1130
+ `opencode-go`), the estimate is what the usage would cost
922
1131
  at pay-per-token prices. What you actually pay for a run may be
923
1132
  nothing extra, while the run uses up your plan's limits.
924
1133
  - **Price tables.** pi prices usage from its own price table, which may
925
1134
  not match what your provider charges (discounts, price changes, or
926
1135
  routing to a differently priced upstream), and a model missing from
927
- it gets no cost at all. Claude Code prices usage at Anthropic's API
928
- list prices.
929
- - **Stopped agents.** An agent stopped by Ctrl-C (or another signal)
930
- records no usage, though its provider still bills for what it used,
931
- and a run stopped before every analyst finished writes no `run.json`
932
- at all. A runaway agent stopped by hand, the most expensive kind of
933
- agent, is therefore missing from the totals entirely.
1136
+ it gets no cost at all. OpenCode likewise prices usage from its own
1137
+ model catalog. Claude Code prices usage at Anthropic's API
1138
+ list prices. Codex prices nothing, so Codex agents have no cost, and
1139
+ a run's total then has no cost; the console summary and `run.json`'s
1140
+ `known_cost` give only the other agents' cost, and say how many those
1141
+ are.
1142
+ - **Stopped agents.** An agent stopped by Ctrl-C (or another signal to
1143
+ agent-council) records no usage, though its provider still bills for
1144
+ what it used, and a run stopped before every analyst finished writes
1145
+ no `run.json` at all. A runaway agent stopped that way, the most
1146
+ expensive kind of agent, is therefore missing from the totals
1147
+ entirely. One stopped on its own (see [Stopping one
1148
+ agent](RUNAWAY_AGENTS.md#stopping-one-agent)) records only what its
1149
+ output had reported by then, which may be little or nothing.
934
1150
  - **Token counts.** Providers count tokens somewhat differently
935
1151
  (reasoning tokens, for example), so compare counts, and the costs
936
1152
  built on them, across providers only roughly.
@@ -952,13 +1168,20 @@ usage page.
952
1168
  consolidator gets its own prompt; see
953
1169
  [Discovering and configuring models](#discovering-and-configuring-models).)
954
1170
  - Under pi, each agent runs as
955
- `pi -p --mode json --no-session --no-mcp --tools read,grep,find,ls,bash
1171
+ `pi -p --mode json --no-session
1172
+ --tools 'read,grep,find,ls,bash,codemode,mcp__*,tool_search,list_mcp_resources,list_mcp_resource_templates,read_mcp_resource'
956
1173
  --provider P --model M --append-system-prompt <scaffolding>`.
957
1174
  - `--no-session` keeps agents independent: no conversation state leaks
958
1175
  between ensemble members.
959
- - `--no-mcp` turns off pi's built-in MCP support, so the MCP servers
960
- configured for pi don't start and agents have no MCP tools. (An
961
- extension that provides its own MCP support isn't affected.)
1176
+ - The MCP servers configured for pi start as in any pi session, and
1177
+ agents get their tools: `--tools` also lists `codemode`, through
1178
+ which pi exposes MCP tools by default, `mcp__*`, for servers with
1179
+ direct exposure, `tool_search`, for servers with deferred exposure,
1180
+ and pi's MCP resource tools. A `codemode` script can call only the
1181
+ listed tools and MCP tools, plus pi's `models` API, which calls
1182
+ models (its usage is counted in the agent's), and `tool_search`
1183
+ loads only MCP tools (checked with pi 1.5.2: neither reached
1184
+ `write`).
962
1185
  - `--tools` is an allowlist for pi's built-in, extension, and custom
963
1186
  tools: `bash` remains for investigation (`git log`, dependency
964
1187
  inspection, ...), while file-editing tools and unlisted extension and
@@ -976,7 +1199,7 @@ usage page.
976
1199
  - Under Claude Code, each agent runs as
977
1200
  `claude -p --output-format stream-json --verbose --no-session-persistence
978
1201
  --tools Read,Grep,Glob,Bash --allowedTools Read,Grep,Glob,Bash
979
- --permission-mode manual --strict-mcp-config --model M
1202
+ --permission-mode manual --model M
980
1203
  --append-system-prompt <scaffolding>`.
981
1204
  - `--no-session-persistence` keeps agents independent: no session is
982
1205
  saved, to be resumed or to show up in your session list.
@@ -985,11 +1208,11 @@ usage page.
985
1208
  `--allowedTools` pre-approves the four, since `-p` mode can't ask
986
1209
  (a call that needs approval is refused), and `--permission-mode
987
1210
  manual` keeps your own default mode (such as `plan`) from applying.
988
- - `--strict-mcp-config`, with no `--mcp-config`, loads no MCP servers,
989
- neither yours nor a plugin's, so agents have no MCP tools. (Where an organization manages Claude
990
- Code's MCP servers with a `managed-mcp.json`, Claude Code's own
991
- message says it refuses this flag, which would fail every Claude Code
992
- agent; that case is untested.)
1211
+ - Your MCP servers load, yours and your plugins' and the project's
1212
+ approved ones, as in an interactive session, but `-p` mode can't ask before a tool runs,
1213
+ so an MCP tool call goes through only if your settings allow it (a
1214
+ `permissions.allow` rule such as `mcp__cov-loupe`); otherwise it is
1215
+ refused and reported as a warning (checked).
993
1216
  - Otherwise Claude Code behaves as an interactive session started in
994
1217
  the analyzed repo would: it loads `CLAUDE.md` files (and what they
995
1218
  import, such as `@AGENTS.md`), your user and the project's settings,
@@ -1001,15 +1224,52 @@ usage page.
1001
1224
  (not logged in, an unknown model, the output cut off) is reported
1002
1225
  with the reason Claude Code gives. [`DESIGN.md`](DESIGN.md) §13 has
1003
1226
  the details.
1004
- - The tool limits and the MCP settings above are the only restrictions
1227
+ - Under Codex, each agent runs as
1228
+ `codex exec --json --ephemeral --skip-git-repo-check --color never
1229
+ --model M
1230
+ -c developer_instructions=<scaffolding> -`.
1231
+ - `--ephemeral` keeps agents independent: no session files are saved.
1232
+ - Your MCP servers, plugins, and apps connectors load as in an
1233
+ interactive session, but `codex exec` never asks for approval, so an
1234
+ MCP tool call goes through only if your config approves the tool in
1235
+ advance; otherwise it is refused and reported as a warning (checked).
1236
+ - No sandbox or approval option is passed (`codex exec` never asks for
1237
+ approval, whatever your `approval_policy`), and no tool is withheld:
1238
+ Codex behaves as an interactive session started in the analyzed repo
1239
+ would, with your `config.toml` (its `sandbox_mode` included) and the
1240
+ project's `AGENTS.md` files. See [Codex's sandbox](#codexs-sandbox).
1241
+ - The scaffolding is passed as `developer_instructions`, replacing any
1242
+ your config sets.
1243
+ - The final response is the last agent message with text in a completed turn; an
1244
+ agent whose turn fails (say, a model your account can't use) is
1245
+ reported with the reason Codex gives. [`DESIGN.md`](DESIGN.md) §13
1246
+ has the details.
1247
+ - Under OpenCode, each agent runs as
1248
+ `opencode run --format json --agent build --model P/M`:
1249
+ - `OPENCODE_CONFIG_CONTENT`, merged over your config and the
1250
+ project's, adds the scaffolding as an `instructions` file and the
1251
+ settings listed under OpenCode in [Choosing a
1252
+ harness](#choosing-a-harness).
1253
+ - `OPENCODE_DB`, a database in the scratch directory, keeps agents
1254
+ independent: no session is added to your history.
1255
+ - No `--auto` is passed, so a tool call your permissions set to `ask`
1256
+ is refused, with a warning; `experimental.continue_loop_on_deny`
1257
+ lets the agent go on.
1258
+ - The final response is the text of the last message with text; an
1259
+ `error` event fails the agent, whatever the exit status, and so does
1260
+ a model request cut off or failed (by the token limit, a content
1261
+ filter, or an error) if it was the last one or the report's.
1262
+ [`DESIGN.md`](DESIGN.md) §13 has the details.
1263
+ - The tool limits above are the only restrictions
1005
1264
  agent-council enforces (see [Safety and
1006
1265
  privacy](#safety-and-privacy)). A fixed scaffolding text appended to
1007
1266
  the system prompt (identical for all agents, the consolidator
1008
1267
  included) tells agents not to modify project files, git state,
1009
1268
  software, or configuration, or start persistent services (they get a
1010
- scratch directory for temporary files), and not to run tests, builds,
1011
- or similar commands, which can collide between concurrent analysts,
1012
- unless the prompt permits them (as
1269
+ scratch directory for temporary files); not to act outside the machine
1270
+ (post, comment, or change remote data, MCP tools included); and,
1271
+ unless the prompt permits them, not to run tests, builds, or similar
1272
+ commands, which can collide between concurrent analysts (as
1013
1273
  `examples/prompts/review-latest-commit-prompt.md` does for tests and
1014
1274
  linters); where such a command isn't permitted but would help, the
1015
1275
  agent describes what it would run instead. The full text is
@@ -1019,7 +1279,8 @@ usage page.
1019
1279
  which the scaffolding tells it to use for scratch space, deleted when
1020
1280
  the agent finishes (under Claude Code's sandbox, `TMPDIR` is a directory Claude
1021
1281
  Code makes inside it; see [Claude Code's
1022
- sandbox](#claude-codes-sandbox)). After Ctrl-C, a directory can be
1282
+ sandbox](#claude-codes-sandbox); under Codex's `read-only` sandbox it
1283
+ isn't writable; see [Codex's sandbox](#codexs-sandbox)). After Ctrl-C, a directory can be
1023
1284
  left behind if a second signal stops agent-council at once, or if
1024
1285
  cleanup after a killed agent doesn't finish in time.
1025
1286
 
@@ -1029,24 +1290,64 @@ agent-council does not sandbox the agents (Claude Code's own sandbox,
1029
1290
  off by default, restricts Claude Code agents' commands if Claude
1030
1291
  Code's settings enable it, and the analyzed repository's settings can
1031
1292
  enable or disable it; see
1032
- [Claude Code's sandbox](#claude-codes-sandbox)).
1293
+ [Claude Code's sandbox](#claude-codes-sandbox); Codex's, whatever your
1294
+ Codex config's `sandbox_mode` sets, restricts Codex agents; see
1295
+ [Codex's sandbox](#codexs-sandbox)).
1033
1296
  Before running it, know that:
1034
1297
 
1035
1298
  - **Agents have a shell.** Each agent, the consolidator included, gets a
1036
- shell tool (pi's `bash`, or Claude Code's `Bash`), running as you, in
1299
+ shell tool (pi's and OpenCode's `bash`, Claude Code's `Bash`, or Codex's), running as you, in
1037
1300
  the directory you run from, with your environment (including any API
1038
- keys in it; agent-council only sets `TMPDIR` and `CLAUDE_CODE_TMPDIR`,
1039
- both to the agent's scratch directory), your file permissions, and
1301
+ keys in it; agent-council only sets `TMPDIR`, to the agent's scratch
1302
+ directory, and, by harness, `CLAUDE_CODE_TMPDIR` (the same directory)
1303
+ or `OPENCODE_DB` and `OPENCODE_CONFIG_CONTENT`), your file
1304
+ permissions, and
1040
1305
  your network access (for Claude Code agents, unless its sandbox
1041
- restricts writes and network access). Of pi's built-in tools, only
1306
+ restricts writes and network access; for Codex agents, unless your
1307
+ Codex config allows it, its sandbox blocks network access). Of pi's built-in tools, only
1042
1308
  `edit` and `write` (and the Windows-only `powershell`) are withheld;
1043
- of Claude Code's, all but `Read`, `Grep`, `Glob`, and `Bash`. The
1309
+ of OpenCode's, the file-editing ones, unless your config or the
1310
+ project's allows them;
1311
+ of Claude Code's, all but `Read`, `Grep`, `Glob`, and `Bash`; of
1312
+ Codex's, none, so Codex agents also have its file-editing tool, and
1313
+ only Codex's sandbox limits what they can write. The
1044
1314
  read-only rules described above are instructions in the system prompt,
1045
1315
  which a model can ignore or misapply.
1046
- - **Your pi extensions, and your Claude Code hooks and plugins, load.**
1047
- `--no-mcp` turns off only pi's built-in
1048
- MCP support. Extensions you've installed load for every pi agent, as
1049
- you, and one that provides its own MCP support can still start servers.
1316
+ - **Agents get your MCP servers.** Every harness loads the MCP servers
1317
+ it would load for you interactively, so agents can use their tools:
1318
+ the ones you've configured, the analyzed project's (for pi and Codex,
1319
+ if you trust the project; for Claude Code, those you've approved; for
1320
+ OpenCode, those its `opencode.json` names, without asking),
1321
+ those your pi extensions or your OpenCode, Claude Code, and Codex plugins
1322
+ provide, and Codex's bundled apps connectors (GitHub and others). A
1323
+ server that writes (posting to chat, commenting on an issue, changing a ticket or a database) is as
1324
+ available to a pi agent as it is to you, and only the read-only
1325
+ instructions keep the agent from using it. In a council, that would
1326
+ happen once per agent: five agents, five comments. Each agent also
1327
+ starts every server it loads, so a server that does something merely
1328
+ by starting does it once per agent. Claude Code and Codex agents run
1329
+ an MCP tool only if your settings or config (or, for Claude Code, the
1330
+ analyzed project's settings) already allow it, since
1331
+ they can't ask (see [Choosing a harness](#choosing-a-harness)); pi
1332
+ agents can call any MCP tool pi gives them, and OpenCode agents any
1333
+ that their permissions don't set to `ask` or `deny`. The read-only instructions
1334
+ tell agents not to act outside the machine (post, comment, or change
1335
+ records), but they are only instructions. Before a run, remove or
1336
+ disable servers you don't want agents to have (in pi, OpenCode, Claude Code, or
1337
+ Codex's own config, the analyzed project's, or the extension or
1338
+ plugin that provides them; Codex's apps connectors are its `apps`
1339
+ feature), or run in an environment without them.
1340
+ - **pi agents can call other models.** `codemode`, which every pi agent
1341
+ gets (it's how pi reaches MCP tools), whether or not any MCP server is
1342
+ configured, also gives scripts pi's `models` API
1343
+ (`models.classify`, `models.generateImages`), which sends what a
1344
+ script passes it to any model pi has credentials for, billed to you
1345
+ (its usage is counted in the agent's). The read-only instructions
1346
+ don't limit it.
1347
+ - **Your pi extensions, your OpenCode plugins, your Claude Code hooks
1348
+ and plugins, and your Codex skills, plugins, and trusted hooks, load.**
1349
+ Extensions you've installed load for every pi agent, as you, and
1350
+ OpenCode plugins, yours and the project's, for every OpenCode agent.
1050
1351
  Your Claude Code hooks and plugins run for every Claude Code agent, as
1051
1352
  you, and so do hooks the analyzed repository's `.claude` settings
1052
1353
  define (see the next item). Agents also get Claude Code's auto memory
@@ -1057,7 +1358,10 @@ Before running it, know that:
1057
1358
  - **The analyzed repository can steer the agents.** Agents read the
1058
1359
  repository's files, and the harness loads the repository's context
1059
1360
  files and settings: pi its context files (such as `AGENTS.md`) and, if
1060
- the project is trusted, its `.pi` resources; Claude Code its
1361
+ the project is trusted, its `.pi` resources; Codex its `AGENTS.md`
1362
+ files and, if you trust the project, its `.codex` config; OpenCode its
1363
+ `AGENTS.md` files and `opencode.json`, with no trust step (checked);
1364
+ Claude Code its
1061
1365
  `CLAUDE.md` files and `.claude` settings, which apply without the
1062
1366
  trust prompt an interactive session would show first (their hooks,
1063
1367
  for one, run commands; checked). So the repository can direct what
@@ -1073,7 +1377,9 @@ Before running it, know that:
1073
1377
  - **Your code goes to every configured provider.** Whatever an agent reads,
1074
1378
  and the output of whatever it runs, is sent to that agent's provider
1075
1379
  (for a Claude Code agent, wherever your `claude` sends it: Anthropic,
1076
- unless it is set up for another). The
1380
+ unless it is set up for another; for a Codex agent, wherever your
1381
+ `codex` sends it: OpenAI, unless its config names another provider;
1382
+ for an OpenCode agent, to its entry's provider). The
1077
1383
  consolidator's provider receives the prompt and all reports, plus
1078
1384
  anything the consolidator itself reads or runs. Check those providers'
1079
1385
  data policies before analyzing private code.
@@ -1139,11 +1445,30 @@ checked; most apply on any platform, the last two were checked on Linux.
1139
1445
  the environment you run agent-council from.
1140
1446
  - **Commands ran unsandboxed** in a check where a socket path under the
1141
1447
  temporary directory exceeded the Unix limit of about 108 bytes.
1142
- agent-council sets each agent's `TMPDIR` and `CLAUDE_CODE_TMPDIR` to a
1448
+ agent-council sets each agent's `TMPDIR`, and each Claude Code agent's
1449
+ `CLAUDE_CODE_TMPDIR`, to a
1143
1450
  scratch directory inside your own temporary directory (from `TMPDIR`,
1144
1451
  `TMP`, or `TEMP`, else `/tmp`), which adds about 36 bytes, so keep
1145
1452
  yours short, e.g. `TMPDIR=/tmp agent-council ...`. A
1146
- `CLAUDE_CODE_TMPDIR` of your own doesn't reach agents.
1453
+ `CLAUDE_CODE_TMPDIR` of your own doesn't reach Claude Code agents.
1454
+
1455
+ ### Codex's sandbox
1456
+
1457
+ agent-council passes Codex no `--sandbox` option: your Codex config's
1458
+ `sandbox_mode` decides, as in an interactive session, and with it what
1459
+ Codex agents' commands can write. Checked with codex-cli 0.167.0:
1460
+
1461
+ - **Under `read-only`** (Codex's default), commands can't write anywhere,
1462
+ `$TMPDIR` included ("read-only file system"), so agents have no
1463
+ scratch space although the scaffolding offers it, and must do without.
1464
+ - **Under `workspace-write`**, commands can write `$TMPDIR`, and also the
1465
+ working directory, which is the analyzed repository. Only the
1466
+ scaffolding's instructions keep agents from changing it, as for pi
1467
+ agents.
1468
+ - **Network access is blocked** under both, unless your config allows
1469
+ it (e.g. `sandbox_workspace_write.network_access`): commands such as
1470
+ `curl` can't reach the network. The model itself is reached by Codex,
1471
+ not through the sandbox.
1147
1472
 
1148
1473
  ## Limitations (deliberate)
1149
1474
 
@@ -1161,7 +1486,8 @@ directory layout, and report front matter may change incompatibly before 1.0.
1161
1486
  ## Development
1162
1487
 
1163
1488
  In a git checkout (the gemspec lists files with `git ls-files`),
1164
- `./exe/agent-council` and `./exe/pi-models` are equivalent to the installed `agent-council` and
1489
+ `./exe/agent-council`, `./exe/agent-council-ps`, and `./exe/pi-models` are
1490
+ equivalent to the installed `agent-council`, `agent-council-ps`, and
1165
1491
  `pi-models`. Agents analyze the working directory, so running
1166
1492
  `./exe/agent-council` from the checkout analyzes agent-council itself; to
1167
1493
  analyze another project, `cd` there and run the checkout's executable by