agent-council 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c8c3369d6528881fa7a2e782c67616af27fc539c683f26310603895e9aa5e4e
4
- data.tar.gz: 802074659af4258867342acc7574adadf72898754e190cfd334c356a350402eb
3
+ metadata.gz: 64c2356a28c7f69226ac28ed5e2d8a5afb46be1d3bc81653446cb123bf5cf978
4
+ data.tar.gz: 35fa1a495fa0078231fcd03f7d622b131af59141de2c89f96447321e0ff7d96e
5
5
  SHA512:
6
- metadata.gz: 49fbc18a9df355114f4ebdd6edf044c9ed504cdc88292b5ebea4b90903945aff5ff9555fb3e7c81d4c7813a970a2251d0319d1ffeb9effe209d66e9ea1f720d7
7
- data.tar.gz: 401eb7b6e0758627f3da90d0c870eedd13a15067662de26fe0c653d84548196168f50dd597d3ed46411d9d18cbc010957d860e55f442d29de58236a5f48469d4
6
+ metadata.gz: ded091c8449add312a687a0211366a43afae4367283e5d0f68db3c05cde9551ad09b65c581cfc5448339495dd6bb31e09818b536dfd9f85ff77f82cb0d66e57d
7
+ data.tar.gz: b7ace42a09bde576b8abae45b0ee0dc70ddc806eb8f884dbbc9ceb54d93735470660d642b8da1fc5e7b697ee9dad6b3a191c22ed6ba36eeb0c94fd30f5946068
data/DESIGN.md CHANGED
@@ -4,11 +4,11 @@
4
4
 
5
5
  The long-term goal is to collect genuinely different viewpoints on the same question from multiple harness/model instances, and, because every instance gets the identical task, to compare those instances against each other on speed, token usage, cost, and quality.
6
6
 
7
- This repository is the first step: it varies the models and, per agent, the harness, which is Pi (for any provider's models), Claude Code (for Anthropic's), or Codex (for OpenAI's). More harnesses may follow (§18).
7
+ This repository is the first step: it varies the models and, per agent, the harness, which is Pi or OpenCode (for any provider's models), Claude Code (for Anthropic's), or Codex (for OpenAI's). More harnesses may follow (§18).
8
8
 
9
9
  It is packaged as a gem for easy installation, but it is intentionally not a general-purpose framework.
10
10
 
11
- agent-council is a small Ruby CLI that runs the **same prompt** through several AI harness/provider/model combinations, under the Pi, Claude Code, or Codex coding-agent harness, and saves each final response to a deterministic Markdown file.
11
+ agent-council is a small Ruby CLI that runs the **same prompt** through several AI harness/provider/model combinations, under the Pi, OpenCode, Claude Code, or Codex coding-agent harness, and saves each final response to a deterministic Markdown file.
12
12
 
13
13
  The objective is utility, not completeness. Given a config (§5), one command:
14
14
 
@@ -62,9 +62,9 @@ For example:
62
62
 
63
63
  ## 4. Architecture
64
64
 
65
- There are three harnesses, pi, Claude Code, and Codex, and the orchestration is harness-agnostic: it looks up each agent's harness module by its config entry's `harness` key (§5) in `AgentCouncil::Harnesses::BY_NAME` (`lib/agent_council/harnesses.rb`), so another harness is another such module, added there. Every config entry names its harness (§5); reports and `run.json` entries always record theirs, and one that gives none (hand-edited, or older than 0.1.0, when every agent ran under pi) is read as pi's. Each module is a plain namespace with the same functions (`NAME`, `argv`, `usage`, `error_message`, `exit_detail`, `warnings`, `final_response`, `assistant_messages`); `NAME` is both the config value and the executable that `argv` runs, which the startup check looks for on `PATH`, and goes into filenames unsanitized, so it must be filename-safe. Claude Code and Codex take no provider argument, so their entries' provider only labels the agent. The scaffolding text (§10) is shared.
65
+ There are four harnesses, pi, Claude Code, Codex, and OpenCode, and the orchestration is harness-agnostic: it looks up each agent's harness class by its config entry's `harness` key (§5) in `AgentCouncil::Harnesses::BY_NAME` (`lib/agent_council/harnesses.rb`), so another harness is another such class, added there. Every config entry names its harness (§5); reports and `run.json` entries always record theirs, and one that gives none (hand-edited, or older than 0.1.0, when every agent ran under pi) is read as pi's. Each is a subclass of `AgentCouncil::Harnesses::Harness` (`lib/agent_council/harnesses/harness.rb`), used through class methods, never instantiated: it defines `NAME`, `argv`, `usage`, `error_message`, `final_response`, and `assistant_messages`, and inherits defaults for `env`, `exit_detail`, and `warnings` unless it overrides them, and for `model_label`, which reads an agent's provider and model back from its command line for `agent-council-ps`; `NAME` is both the config value and the executable that `argv` runs, which the startup check looks for on `PATH`, and goes into filenames unsanitized, so it must be filename-safe. In `Harness`, the methods a harness must define raise `NoMethodError`, as calling a missing method would, so a harness missing one fails only its agents, not the whole run. `env` gives the variables an agent's process needs beyond its `TMPDIR` (Claude Code's `CLAUDE_CODE_TMPDIR`, OpenCode's database and injected config, §11), each a String, and may write files into the scratch dir. Claude Code and Codex take no provider argument, so their entries' provider only labels the agent. The scaffolding text (§10) is shared.
66
66
 
67
- **Labels.** The short labels (`#1 provider / model`) don't show the harness. They appear in progress lines, result tables, the consolidation prompt, and a consolidated report's `### Sources` table and `sources` front matter. The startup agent list, each report's byline table, and the findings file's legend (`#1 pi / provider / model`) do show it. Short labels don't need the harness to stay unique: the only ones used as lookup keys are the analysts', which match reports to their `run.json` entries and to the configured agents, and each carries its agent number. Nor does the consolidator need it in the labels, since each report it reads states its harness in its byline (§12). So they stay as they are, and a mixed run's output reads the same as before.
67
+ **Labels.** The short labels (`#1 provider / model`) don't show the harness. They appear in the lines printed as agents start and finish, result tables, the consolidation prompt, and a consolidated report's `### Sources` table and `sources` front matter. The startup agent list, each report's byline table, and the findings file's legend (`#1 pi / provider / model`) do show it. Short labels don't need the harness to stay unique: the only ones used as lookup keys are the analysts', which match reports to their `run.json` entries and to the configured agents, and each carries its agent number. Nor does the consolidator need it in the labels, since each report it reads states its harness in its byline (§12). So they stay as they are, and a mixed run's output reads the same as before.
68
68
 
69
69
  The Ruby program owns orchestration and invokes the harness once per configured agent.
70
70
 
@@ -75,6 +75,7 @@ Ruby CLI
75
75
  +-- Pi + model B
76
76
  +-- Claude Code + model C
77
77
  +-- Codex + model D
78
+ +-- OpenCode + model E
78
79
  ```
79
80
 
80
81
  ---
@@ -113,9 +114,9 @@ consolidator: # optional; synthesizes the agents' reports (§12)
113
114
  model: MODEL_ID_HERE
114
115
  ```
115
116
 
116
- Every entry gives `harness`, `provider`, and `model`, each a nonblank string; there are no defaults, and no `defaults:` section supplying them (one was considered and rejected). A default harness or provider would go stale as harnesses change (pi is the right default only as long as it is), and a `defaults:` section's provider would apply across harnesses whose providers differ. `harness` is `pi`, `claude`, or `codex`; an unknown one is rejected at startup (with `--consolidate`, only the consolidator's, since no analysts run). A `claude` entry's provider is not passed to Claude Code (§4) and only labels the agent (e.g. `bedrock`, for a `claude` set up to use it); likewise a `codex` entry's, since Codex uses the `model_provider` its config names. A config error lists every bad entry, each named by its key (`'agents' entry #2`, `'consolidator'`) with every problem it has, so one edit fixes them all; when an entry gives no harness, a line saying what every entry needs follows, and, if no entry gives one (as in a 0.1.0 config, which ran everything under pi), a hint to add `harness: pi`. A run made by 0.1.0, when every entry ran under pi, has a config copy without `harness`; `--consolidate` rejects its consolidator like any other entry, with a hint to add `harness: pi`, while its reports and `run.json` are still read as pi's.
117
+ Every entry gives `harness`, `provider`, and `model`, each a nonblank string; there are no defaults, and no `defaults:` section supplying them (one was considered and rejected). A default harness or provider would go stale as harnesses change (pi is the right default only as long as it is), and a `defaults:` section's provider would apply across harnesses whose providers differ. `harness` is `pi`, `claude`, `codex`, or `opencode`; an unknown one is rejected at startup (with `--consolidate`, only the consolidator's, since no analysts run). A `claude` entry's provider is not passed to Claude Code (§4) and only labels the agent (e.g. `bedrock`, for a `claude` set up to use it); likewise a `codex` entry's, since Codex uses the `model_provider` its config names. A config error lists every bad entry, each named by its key (`'agents' entry #2`, `'consolidator'`) with every problem it has, so one edit fixes them all; when an entry gives no harness, a line saying what every entry needs follows, and, if no entry gives one (as in a 0.1.0 config, which ran everything under pi), a hint to add `harness: pi`. A run made by 0.1.0, when every entry ran under pi, has a config copy without `harness`; `--consolidate` rejects its consolidator like any other entry, with a hint to add `harness: pi`, while its reports and `run.json` are still read as pi's.
117
118
 
118
- Exact provider and model identifiers must be verified against the installed harness: `pi --list-models` for pi, the names and aliases `claude --model` accepts for Claude Code, and the names `codex --model` accepts for Codex.
119
+ Exact provider and model identifiers must be verified against the installed harness: `pi --list-models` for pi, the names and aliases `claude --model` accepts for Claude Code, the names `codex --model` accepts for Codex (`codex debug models` lists those of its own catalog, not a custom `model_provider`'s), and `opencode models` for OpenCode, whose `provider/model` names give an entry's `provider` (before the first `/`) and `model` (after it); the harness joins them again for `--model`.
119
120
 
120
121
  They belong in configuration because available models and names change frequently.
121
122
 
@@ -144,6 +145,15 @@ document the arguments, options, and `AGENT_COUNCIL_OPTS`. The command:
144
145
  consolidation of a finished run, using the run dir's own prompt and
145
146
  config copies, found through its reports' front matter (§12).
146
147
 
148
+ `agent-council-ps` is a separate, read-only command for a run in
149
+ progress: it lists each running agent-council, its agents, and the
150
+ commands they are running, read from `ps` (and on Linux, `/proc`). It
151
+ runs outside agent-council and needs nothing from it beyond the process
152
+ tree (each agent is a child leading its own process group, §7), so it
153
+ can't see agents' event streams, and it doesn't try to find a run's run
154
+ dir. See
155
+ [RUNAWAY_AGENTS.md](RUNAWAY_AGENTS.md#seeing-what-an-agent-is-doing).
156
+
147
157
  ---
148
158
 
149
159
  ## 7. Parallel Execution
@@ -152,11 +162,12 @@ Agents run concurrently, one Ruby thread per agent, each driving one harness pro
152
162
 
153
163
  `AgentCouncil::WorkerPool` (`lib/agent_council/worker_pool.rb`) also handles signals, keeping the main thread free to take them. The README's [Stopping a run](README.md#stopping-a-run) section describes what Ctrl-C and the other signals do; the reasons behind that behavior are:
154
164
 
155
- - **Each agent leads its own process group**, so the terminal's signals reach only agent-council, which then stops the agents itself, in an orderly way, and Ctrl-Z suspends agent-council without suspending the agents under it.
156
- - **Agents get SIGTERM and a shared grace period before being killed**, so the harness can stop the commands it started (pi, Claude Code, and Codex do; checked for Codex 0.167.0: a running `sleep` was gone after `codex` got SIGTERM; checked for Claude Code 2.1.325: a command its Bash tool was running, in the foreground or with `run_in_background`, ran in a process group of its own, which agent-council's SIGTERM to the agent's group doesn't reach, and ended when `claude` got SIGTERM); a second signal skips the wait for a user who doesn't want to.
165
+ - **Each agent leads its own process group**, so the terminal's signals reach only agent-council, which then stops the agents itself, in an orderly way, and Ctrl-Z suspends agent-council without suspending the agents under it. It also lets the user stop one agent, by the pid printed as it starts (its group's ID), while the others go on: an agent so stopped is an ordinary failure, reported with the signal that stopped it (see [RUNAWAY_AGENTS.md](RUNAWAY_AGENTS.md#stopping-one-agent)).
166
+ - **Agents get SIGTERM and a shared grace period before being killed**, so the harness can stop the commands it started (pi, Claude Code, and Codex do; OpenCode doesn't: checked for 1.19.6, a running `sleep`, in a process group of its own, survived SIGTERM to the agent's group, and `opencode` was still running 5 seconds later, so it is killed and its command left running; checked for Codex 0.167.0: a running `sleep` was gone after `codex` got SIGTERM; checked for Claude Code 2.1.325: a command its Bash tool was running, in the foreground or with `run_in_background`, ran in a process group of its own, which agent-council's SIGTERM to the agent's group doesn't reach, and ended when `claude` got SIGTERM); a second signal skips the wait for a user who doesn't want to.
157
167
  - **agent-council then dies by the signal** rather than exiting normally, so a shell (e.g. one running it in a loop) sees it was killed and stops too. SIGQUIT exits 131 instead, since a core dump is no use here.
158
168
  - **Extra SIGHUPs are ignored**, since a closing terminal can send them in pairs, and **signals agent-council was started ignoring stay ignored**, so `nohup` works.
159
169
  - **SIGQUIT isn't trapped under JRuby**, where the JVM reserves it for thread dumps.
170
+ - **A stdout that can't be written doesn't end the run.** `main` sets `$stdout` to a `SafeStdout`, which discards output from the first write or flush that fails (a pipe whose reader has gone, as with `| head`, or a hung-up terminal). Dying would lose `run.json` and the consolidation and leave the agents running. Every write goes through it: MRI buffers, so it fails on a later flush (including the one it makes before spawning each agent), while JRuby fails on the write itself.
160
171
 
161
172
  There is no job system, daemon, async framework, or workflow engine.
162
173
 
@@ -194,12 +205,12 @@ The harness is started with an argv array, not through a shell.
194
205
 
195
206
  Agents are analyzers, not modifiers.
196
207
 
197
- The scaffolding appended to each agent's system prompt (`Harnesses.scaffold_text` in `lib/agent_council/harnesses/scaffold.rb`, shared by every harness) states the rules agents get, and the README's [How it works](README.md#how-it-works-and-what-the-agents-are-told) section summarizes them. They are instructions, not enforced restrictions: each harness's tool limit (pi's `--tools` allowlist, which activates only the built-in, extension, and custom tools it lists, and the MCP tools that `codemode`, `tool_search`, and `mcp__*` reach, §11; Claude Code's `--tools`; Codex has none, §11) is the only restriction agent-council enforces (Claude Code's own sandbox can also restrict Claude Code agents if Claude Code's settings enable it, and the analyzed repository's settings can enable or disable it; Codex's sandbox restricts Codex agents as the user's Codex config sets it; §11), and the shell tool remains a full shell running as the user (see the README's [Safety and privacy](README.md#safety-and-privacy)). A shell is kept because investigation (`git log`, dependency inspection, running a documented command) is much of what makes an analysis useful.
208
+ The scaffolding appended to each agent's system prompt (`Harnesses.scaffold_text` in `lib/agent_council/harnesses/scaffold.rb`, shared by every harness) states the rules agents get, and the README's [How it works](README.md#how-it-works-and-what-the-agents-are-told) section summarizes them. They are instructions, not enforced restrictions: each harness's tool limit (pi's `--tools` allowlist, which activates only the built-in, extension, and custom tools it lists, and the MCP tools that `codemode`, `tool_search`, and `mcp__*` reach, §11; Claude Code's `--tools`; OpenCode's denied edit permission; Codex has none, §11) is the only restriction agent-council enforces (Claude Code's own sandbox can also restrict Claude Code agents if Claude Code's settings enable it, and the analyzed repository's settings can enable or disable it; Codex's sandbox restricts Codex agents as the user's Codex config sets it; §11), and the shell tool remains a full shell running as the user (see the README's [Safety and privacy](README.md#safety-and-privacy)). A shell is kept because investigation (`git log`, dependency inspection, running a documented command) is much of what makes an analysis useful.
198
209
 
199
210
  The rules follow from agents running concurrently in the user's own working tree:
200
211
 
201
212
  - **No modifying project files, git state, software, or configuration, and no persistent services**, since the agents analyze the user's real repository and environment, not a copy. If testing a proposed change would need a modified file, the agent should describe the experiment instead (this follows from the rule; the scaffolding doesn't state it separately).
202
- - **Each agent gets its own disposable scratch directory** (its `TMPDIR`, which the scaffolding names rather than giving a path: under Claude Code's sandbox the dir itself is read-only and `TMPDIR` is a writable dir inside it, §11; under Codex's `read-only` sandbox nothing is writable, `TMPDIR` included, so Codex agents then have no scratch space), so agents that need temporary files don't collide with each other or leave files in the project.
213
+ - **Each agent gets its own disposable scratch directory** (its `TMPDIR`, which the scaffolding names rather than giving a path: under Claude Code's sandbox the dir itself is read-only and `TMPDIR` is a writable dir inside it, §11; under Codex's `read-only` sandbox nothing is writable, `TMPDIR` included, so Codex agents then have no scratch space; OpenCode agents' database and scaffolding file go there too, §11), so agents that need temporary files don't collide with each other or leave files in the project.
203
214
  - **No acting outside the machine** (posting, commenting, sending messages, or changing issues, tickets, or other remote data), with any tool, since agents get the user's MCP servers (§11), some of which write, and a council would do it once per agent. Reading remote information stays allowed.
204
215
  - **No test suites, builds, coverage tools, application servers, or database tasks unless the prompt permits them**, since such commands can collide through shared resources a per-agent scratch directory doesn't isolate: shared databases, Redis, fixed ports, Docker resources, hard-coded temporary paths, or other process-global state. Running tests and reproducing defects can make an analysis much stronger, so a prompt may lift the rule (as `examples/prompts/review-latest-commit-prompt.md` does for tests and linters); agents then still skip commands needing shared services. Where a command is not permitted but would help, the agent describes what it would run and why.
205
216
 
@@ -244,7 +255,7 @@ claude -p --output-format stream-json --verbose
244
255
  The flags were checked with Claude Code 2.1.325, and again with 2.1.327 and 2.1.329 (and, for the comparison with pi's allowlist, pi 1.5.2):
245
256
 
246
257
  - `--tools` limits the built-in tools as pi's allowlist does: Edit and Write are absent, not merely refused.
247
- - `--allowedTools` is required. Without it, Bash commands Claude Code doesn't consider read-only (`git log` and `ls` are; `ruby -e ...` isn't) are refused, since `-p` mode can't ask, and the agent still ends as a success, with the refusal recorded only in the `result` event's `permission_denials`. With it, a call can still be refused, by a `permissions.deny` rule in the user's or the analyzed project's settings (checked: a project rule denying `Bash(cat:*)` was recorded the same way). A nonempty `permission_denials` is reported as a warning naming the refused calls (`ClaudeCodeHarness.warnings`), printed under the agent's progress line, shown in the report's byline table (which the consolidator reads, and which its template asks it to take into account), and recorded in its `run.json` entry, not a failure: the report is kept, but may lack what the call would have found. An agent that fails anyway (say, by running out of turns after refusals) gets the warning too, since the refusals may be why; it follows the failure reason on the console, in `run.json`, and in the reason the consolidation prompt gives for the missing report.
258
+ - `--allowedTools` is required. Without it, Bash commands Claude Code doesn't consider read-only (`git log` and `ls` are; `ruby -e ...` isn't) are refused, since `-p` mode can't ask, and the agent still ends as a success, with the refusal recorded only in the `result` event's `permission_denials`. With it, a call can still be refused, by a `permissions.deny` rule in the user's or the analyzed project's settings (checked: a project rule denying `Bash(cat:*)` was recorded the same way). A nonempty `permission_denials` is reported as a warning naming the refused calls (`ClaudeCodeHarness.warnings`), printed under the agent's finish line, shown in the report's byline table (which the consolidator reads, and which its template asks it to take into account), and recorded in its `run.json` entry, not a failure: the report is kept, but may lack what the call would have found. An agent that fails anyway (say, by running out of turns after refusals) gets the warning too, since the refusals may be why; it follows the failure reason on the console, in `run.json`, and in the reason the consolidation prompt gives for the missing report.
248
259
  - `--permission-mode manual` makes the outcome the same for every user; without it the user's own `defaultMode` (e.g. `auto`, or `plan`, which would run nothing) applies (checked: with `defaultMode` set to `plan`, the `init` event reports `plan` without the flag and `default` with it). `manual` is the name `claude --help` lists for the mode the stream reports as `default`; `default` is still accepted but no longer listed, so it isn't used.
249
260
 
250
261
  **Context.** Claude Code behaves as in an interactive session started in the analyzed repository, as pi does (above): it loads `CLAUDE.md` (and whatever it imports, such as `@AGENTS.md`), user and project settings, hooks, and plugins, and its auto memory for the project. Auto memory is kept deliberately (checked: the system prompt names the project's memory directory, shows its `MEMORY.md` index, and says to write memory files there; `CLAUDE_CODE_DISABLE_AUTO_MEMORY=1` removes all of it): the notes are context an interactive session would have, and leaving them out would make agents worse at the user's project. An agent may still write a memory file with `Bash`, as an interactive session may (the scaffolding's "strictly read-only" rules argue against it, but don't name memory); that is accepted, and the README says so. `--bare` is not used: it skips `CLAUDE.md` and permits only API-key authentication. Nor is `--safe-mode`, which keeps subscription authentication but also skips `CLAUDE.md`, along with skills, plugins, hooks, and other customizations (permission rules and admin-managed settings still apply); nor is `--restricted`, which ignores the user, project, and local settings files altogether, permission rules included, and so would drop both the user's own setup and a project's deny rules (untested); a user who wants that can set `CLAUDE_CODE_SAFE_MODE=1` (its environment form) when running agent-council, and the README's Safety section says so (checked: with it, a project's hooks didn't run and a subscription login still worked). So the user's hooks and plugins run for every Claude Code agent, and so do hooks in the analyzed repository's own `.claude` settings: `-p` mode skips the trust prompt an interactive session shows first in a new folder (checked: a never-trusted repository's `SessionStart` and `PreToolUse` hooks ran). The README's Safety section says so.
@@ -258,7 +269,7 @@ The flags were checked with Claude Code 2.1.325, and again with 2.1.327 and 2.1.
258
269
  - Checked with 2.1.327, with agent-council's argv and the sandbox enabled: inside the sandbox `TMPDIR` is `<scratch>/claude-<uid>`, which is writable, while a write to the scratch path itself fails with "read-only file system". So the scaffolding names the scratch dir as `$TMPDIR`, not by path; `$TMPDIR` is the scratch dir itself for pi and unsandboxed Claude Code, and a dir inside it under the sandbox, so cleanup covers both. The sandbox makes that dir under `CLAUDE_CODE_TMPDIR` if set, so agent-council sets it to the scratch dir too; otherwise a user's own setting would put the dir outside, shared between agents and never removed (checked: with both set, the sandboxed `TMPDIR` was `<scratch>/claude-<uid>`). (`--add-dir` with the scratch path was the alternative; it would widen what Claude Code allows, and wasn't tried.) An unsandboxed retry (`dangerouslyDisableSandbox: true`) of a blocked home-directory write was refused ("Run outside of the sandbox") and reported in `permission_denials`, so agent-council warns of it, although the docs say an allow rule matching a command approves such a retry. Why agent-council's `--allowedTools Read,Grep,Glob,Bash` didn't approve it isn't known.
259
270
  - agent-council doesn't detect other sandbox trouble: `ClaudeCodeHarness.warnings` reads only `permission_denials`.
260
271
 
261
- **Billing.** agent-council leaves authentication and billing entirely to Claude Code: it passes no option and sets no environment variable for them (the only variables it sets for an agent are `TMPDIR` and `CLAUDE_CODE_TMPDIR`, both to its scratch dir, §10). An agent bills however `claude` would at the user's terminal: a subscription login, or an API key if one is configured. One caveat, which the README gives: interactive Claude Code asks before using an `ANTHROPIC_API_KEY` found in the environment, but `-p` mode doesn't ask, so a key exported for another tool may bill council runs to the API. Subscription runs also share the user's usage limits with their interactive work; a limit hit while an agent is working is expected to end it as an ordinary agent failure, but that hasn't been observed (§13). The reported cost is recorded unadjusted (only rounded to six decimal places); like other subscription providers' figures it is notional (the stream gives its `costBasis` as `list`). Telling billing sources apart in `run.json` is not built (§18); the sources for it are the `init` event's `apiKeySource` (`none` for a login), `claude auth status --json` (`subscriptionType`, e.g. `pro`), and the stream's `rate_limit_event`s, which give the plan's utilization of its 5-hour and weekly windows.
272
+ **Billing.** agent-council leaves authentication and billing entirely to Claude Code: it passes no option and sets no environment variable for them (the only variables it sets for a Claude Code agent are `TMPDIR` and `CLAUDE_CODE_TMPDIR`, both to its scratch dir, §10). An agent bills however `claude` would at the user's terminal: a subscription login, or an API key if one is configured. One caveat, which the README gives: interactive Claude Code asks before using an `ANTHROPIC_API_KEY` found in the environment, but `-p` mode doesn't ask, so a key exported for another tool may bill council runs to the API. Subscription runs also share the user's usage limits with their interactive work; a limit hit while an agent is working is expected to end it as an ordinary agent failure, but that hasn't been observed (§13). The reported cost is recorded unadjusted (only rounded to six decimal places); like other subscription providers' figures it is notional (the stream gives its `costBasis` as `list`). Telling billing sources apart in `run.json` is not built (§18); the sources for it are the `init` event's `apiKeySource` (`none` for a login), `claude auth status --json` (`subscriptionType`, e.g. `pro`), and the stream's `rate_limit_event`s, which give the plan's utilization of its 5-hour and weekly windows.
262
273
 
263
274
  ### Codex
264
275
 
@@ -274,7 +285,7 @@ codex exec --json --ephemeral --skip-git-repo-check --color never
274
285
  Checked with codex-cli 0.167.0:
275
286
 
276
287
  - `-c developer_instructions=...` adds the scaffolding to the system prompt (checked: an instruction given this way was followed). It replaces any `developer_instructions` the user's config sets; Codex has no option that appends.
277
- - `--skip-git-repo-check` is needed outside a git repository Codex trusts: without it Codex refuses ("Not inside a trusted directory"), while pi and Claude Code agents run anywhere.
288
+ - `--skip-git-repo-check` is needed outside a git repository Codex trusts: without it Codex refuses ("Not inside a trusted directory"), while pi, Claude Code, and OpenCode agents run anywhere (OpenCode checked).
278
289
  - Codex's `read-only` and `workspace-write` sandboxes also block network access unless the user's config allows it (checked with `codex sandbox`: `curl` couldn't resolve a host under either, and worked unsandboxed).
279
290
  - No `--sandbox` or approval option is passed: the user's `sandbox_mode` applies, as in an interactive session (§11's premise). The user's `approval_policy` doesn't: `codex exec` never asks, so a command that needs approval is refused (checked: an agent told `approval_policy="on-request"` reported `never`, and `"untrusted"` made `codex exec` exit with "no longer supported"). Under `read-only`, Codex's default, commands can write nothing, `$TMPDIR` included (checked: "read-only file system"), so agents get no scratch space although the scaffolding offers it; under `workspace-write`, `$TMPDIR` is writable (checked), and so is the analyzed repository. Forcing `read-only` was tried and dropped: it overrode the user's setting, and the scaffolding would have needed a variant without scratch space.
280
291
  - No tool is withheld: this Codex version has no option for it. Codex agents keep `apply_patch` (file editing) and the subagent tools (`spawn_agent` and others); `--disable multi_agent`, `-c features.multi_agent=false`, and `-c include_apply_patch_tool=false` each left them in the rendered prompt (`codex debug prompt-input`). The README says so. The subagent tools fail, though: under `--ephemeral`, `spawn_agent` fails with "collab spawn failed: ... no rollout found for thread id" (on stderr; the stream shows only the agent's `wait`), and the agent carries on alone (checked with codex-cli 0.167.0). That also keeps usage whole: without `--ephemeral`, a subagent ran, and its tokens (31,708 input in its own session) were not in its parent's `turn.completed`, which matched the parent's session alone. If a Codex version lets `--ephemeral` agents spawn, usage will undercount them.
@@ -284,18 +295,52 @@ Checked with codex-cli 0.167.0:
284
295
 
285
296
  **Billing.** agent-council leaves authentication and billing to Codex: a ChatGPT login or an API key, however `codex` would bill at the user's terminal. The entry's provider only labels the agent; Codex uses the `model_provider` its config names.
286
297
 
298
+ ### OpenCode
299
+
300
+ **Invocation.** One `opencode run` process per agent, the prompt on stdin, started from an argv array (§9), with variables set by `OpenCodeHarness.env`:
301
+
302
+ ```text
303
+ opencode run --format json --agent build --model PROVIDER/MODEL
304
+ OPENCODE_DB=<scratch>/opencode.db
305
+ OPENCODE_CONFIG_CONTENT={"instructions":["<scratch>/agent-council-scaffold.md"],
306
+ "permission":{"edit":"deny"},
307
+ "agent":{"build":{"permission":{"edit":"deny",
308
+ "external_directory":{"<scratch>/*":"allow"}}},
309
+ "title":{"disable":true}},
310
+ "snapshot":false,"experimental":{"continue_loop_on_deny":true}}
311
+ ```
312
+
313
+ `OPENCODE_CONFIG_CONTENT` is merged over the user's and the project's config (a user's own value for it is replaced). What each setting is for (checked with opencode 1.19.6):
314
+
315
+ - `instructions`: the scaffolding, as a file in the scratch dir, since OpenCode has no option that appends to the system prompt.
316
+ - `permission.edit: deny`, globally and for `build`: withholds the file-editing tools by default, as the other harnesses withhold theirs (repeated for `build` because a per-agent permission comes after the global one). It is a default, not a guarantee: a user's or project's config can allow editing again, for `build` or a subagent it defines, and `bash` can write files anyway (checked: the model fell back to it). That is the same position as Codex, whose editing tool can't be withheld at all; see `REVIEW_NOTES.md`.
317
+ - `--agent build` pins the agent whatever `default_agent` a config names.
318
+ - `external_directory` allowed for the scratch dir, on `build`: OpenCode's default asks for files outside the project, which `opencode run` refuses, so `$TMPDIR` would be unusable with OpenCode's own tools. Per agent, since a global map would replace a user's scalar `external_directory` value.
319
+ - `experimental.continue_loop_on_deny`: `opencode run` refuses every `ask` (no `--auto` is passed, as `codex exec` refuses approvals), and by default a refusal ends the session, leaving the model's lead-in as the report. With this, the agent sees the refusal and goes on.
320
+ - `agent.title.disable`: the title agent's request isn't in the stream, so its usage wouldn't be counted.
321
+ - `snapshot: false`: snapshots (for undo) copy the project's files, untracked ones included, into OpenCode's data dir, kept after the run.
322
+ - `OPENCODE_DB` in the scratch dir: the session is deleted with the scratch dir when the agent finishes, so it isn't kept (the other harnesses save none), and concurrent agents don't share one SQLite database. opencode 1.2.4 ignored it.
323
+
324
+ **Context.** OpenCode behaves as in an interactive session started in the analyzed repository: the user's config and plugins apply, and so do the project's `AGENTS.md` files and `opencode.json`, with no trust step. If the project has a `.opencode` directory, OpenCode writes a `.gitignore` there. An inherited `OPENCODE_PERMISSION` is left alone.
325
+
326
+ **Billing.** agent-council leaves authentication and billing to OpenCode: an agent uses the credentials `opencode auth login` saved. Unlike Claude Code's and Codex's, the entry's provider is passed, as the `provider/` part of `--model`.
327
+
328
+ **Subagents.** The `task` tool's subagents run, but their usage isn't in the parent's stream, so it isn't counted.
329
+
287
330
  ### MCP servers load, in every harness
288
331
 
289
- Agents get the MCP servers the user has configured for their harness, as an interactive session would: pi's (`~/.pi/agent/mcp.json`, a trusted project's, and extensions'), Claude Code's (the user's, plugins', and the project's approved ones), and Codex's (`config.toml`, plugins, the apps connectors, and a trusted project's). agent-council passes no MCP option. Leaving them out would make agents worse at the user's own work (a coverage server, an issue tracker, internal docs), which matters more here than isolation (§11's premise).
332
+ Agents get the MCP servers the user has configured for their harness, as an interactive session would: pi's (`~/.pi/agent/mcp.json`, a trusted project's, and extensions'), Claude Code's (the user's, plugins', and the project's approved ones), Codex's (`config.toml`, plugins, the apps connectors, and a trusted project's), and OpenCode's (the user's config, plugins', and the project's `opencode.json`). agent-council passes no MCP option. Leaving them out would make agents worse at the user's own work (a coverage server, an issue tracker, internal docs), which matters more here than isolation (§11's premise).
290
333
 
291
334
  The cost is risk, which the README's Safety section states prominently. A server that writes (posting to chat, commenting on an issue, changing a ticket) is available to every agent, held back only by the scaffolding's read-only instructions, and a council would do it once per agent; and each agent starts every server it loads, so a server that acts merely by starting acts once per agent. The user's remedy is their own config (remove or disable the server), or an environment without it.
292
335
 
293
- How each harness exposes the tools (checked with pi 1.5.2, Claude Code 2.1.329, and codex-cli 0.167.0, calling a `version` tool on a local stdio server):
336
+ How each harness exposes the tools (checked with pi 1.5.2, Claude Code 2.1.329, codex-cli 0.167.0, and opencode 1.19.6, calling a `version` tool on a local stdio server):
294
337
 
295
- - **pi** exposes MCP tools through its `codemode` tool by default, so `codemode` is in the `--tools` allowlist (checked: without it, agents had no MCP access). A server with direct exposure has its tools activated only if `--tools` names them, so `mcp__*` is listed too (checked: without it, a direct server's tool was unavailable). A server with deferred exposure has its tools loaded by `tool_search`, so that is listed as well; it loads only MCP tools (checked: `tool_search` for `write` and `edit` found nothing). Since naming an `mcp__` entry makes `--tools` filter MCP tools by name, pi's resource tools (`list_mcp_resources`, `list_mcp_resource_templates`, `read_mcp_resource`) are listed too. A `codemode` script can call only the allowlisted tools and MCP tools (checked: its `tools` object had them and the resource tools, and no `write`), plus pi's `models` API (`models.classify`, `models.generateImages`), which calls models itself; pi reports that usage on the `codemode` tool result, so `PiHarness.usage` counts tool results' usage along with assistant messages'. `tool_search` is listed for deferred exposure but also finds codemode-exposed tools, which `codemode` reaches anyway. Listing `codemode` activates it even when the user's pi settings set `autoEnableCodemode` to false; agents can't otherwise reach MCP tools with the default exposure. pi doesn't ask before a tool runs, so pi agents can call any MCP tool they get. A failed MCP call reaches a pi agent as a tool result marked `isError`, which the agent can read; agent-council doesn't warn of it (`PiHarness.warnings` returns none), unlike Claude Code's and Codex's refused calls, since a pi failure is an ordinary tool error, not a refusal, and pi reports a server that fails to start only in its interactive UI. Unlisted extension tools stay out of reach even with `codemode` and `tool_search`: pi drops tools the allowlist doesn't match before registering them, and both reach only registered tools (pi 1.5.2's `_refreshToolRegistry`, `_getCallableTools`).
338
+ - **pi** exposes MCP tools through its `codemode` tool by default, so `codemode` is in the `--tools` allowlist (checked: without it, agents had no MCP access). A server with direct exposure has its tools activated only if `--tools` names them, so `mcp__*` is listed too (checked: without it, a direct server's tool was unavailable). A server with deferred exposure has its tools loaded by `tool_search`, so that is listed as well; it loads only MCP tools (checked: `tool_search` for `write` and `edit` found nothing). Since naming an `mcp__` entry makes `--tools` filter MCP tools by name, pi's resource tools (`list_mcp_resources`, `list_mcp_resource_templates`, `read_mcp_resource`) are listed too. A `codemode` script can call only the allowlisted tools and MCP tools (checked: its `tools` object had them and the resource tools, and no `write`), plus pi's `models` API (`models.classify`, `models.generateImages`), which calls models itself; pi reports that usage on the `codemode` tool result, so `PiHarness.usage` counts tool results' usage along with assistant messages'. `tool_search` is listed for deferred exposure but also finds codemode-exposed tools, which `codemode` reaches anyway. Listing `codemode` activates it even when the user's pi settings set `autoEnableCodemode` to false; agents can't otherwise reach MCP tools with the default exposure. pi doesn't ask before a tool runs, so pi agents can call any MCP tool they get. A failed MCP call reaches a pi agent as a tool result marked `isError`, which the agent can read; agent-council doesn't warn of it (`PiHarness.warnings` returns none), unlike Claude Code's, Codex's, and OpenCode's refused calls, since a pi failure is an ordinary tool error, not a refusal, and pi reports a server that fails to start only in its interactive UI. Unlisted extension tools stay out of reach even with `codemode` and `tool_search`: pi drops tools the allowlist doesn't match before registering them, and both reach only registered tools (pi 1.5.2's `_refreshToolRegistry`, `_getCallableTools`).
296
339
  - **Claude Code** loads the servers, but `-p` can't ask permission, so an MCP call goes through only if a permission rule allows it (e.g. `mcp__server` in `permissions.allow`); otherwise it is refused and lands in `permission_denials`, which `ClaudeCodeHarness.warnings` reports. MCP tools are not added to `--allowedTools`: that would give agents more than an interactive session has without the user's approval.
297
340
  - **Codex** loads the servers, but `codex exec` never asks for approval, so an MCP call goes through only if the user's config approves the tool in advance (`default_tools_approval_mode = "approve"` on a server, or `approval_mode = "approve"` on one of its tools); otherwise the `mcp_tool_call` item fails with "MCP tool call requires approval, but approval policy is never", which `CodexHarness.warnings` reports.
298
341
 
342
+ - **OpenCode** loads the servers, and MCP tools need no permission by default, so an agent can call them unless the user's permissions set them to `ask` (then refused, with a warning) or `deny` (checked with opencode 1.19.6).
343
+
299
344
  0.2.0 and the Codex harness's first version turned MCP off instead (pi's `--no-mcp`, Claude Code's `--strict-mcp-config`, and for Codex a per-server `enabled=false` table built from `codex mcp list`, plus `--disable apps`). That was reversed: it crippled agents relative to the user's setup, and Codex's version was fragile (a plugin's server in the listing made the override fail with "invalid transport", failing every agent). `pi-models` still passes `--no-mcp`, since it only lists models and runs no agent.
300
345
 
301
346
  ---
@@ -356,7 +401,7 @@ agent-council reads Claude Code's `stream-json` output. The stream's final `resu
356
401
  - the failure's reason is the `result` event's `errors`, if any (e.g. "Reached maximum number of turns (1)", with an empty `result`), otherwise its `result` text (e.g. "Not logged in · Please run /login"). Stderr was empty in all but one case, so unlike pi's, a nonzero exit is explained from the stream, with stderr only as a fallback;
357
402
  - usage is read from the `result` event alone, which totals the agent's whole session; the per-message `assistant` events carry partial snapshots that undercount output (in one recorded case, 16 output tokens where the `result` event gave 184). So an agent that ends without a `result` event, as when its `claude` is killed, reports no usage rather than a misleading partial count, unlike a pi agent, whose completed messages each report their full usage. It maps `input_tokens`, `output_tokens`, `cache_read_input_tokens`, and `cache_creation_input_tokens` to `input`, `output`, `cache_read`, and `cache_write` (as with pi, `input` excludes cache reads and writes), and `total_cost_usd` to `cost`.
358
403
 
359
- So `exit_detail`, which explains a nonzero exit, reads the stream first for Claude Code (and Codex, below) and stderr for pi. The parser and the invocation live in `AgentCouncil::Harnesses::ClaudeCodeHarness` (`lib/agent_council/harnesses/claude_code_harness.rb`). The specs read streams recorded from real `claude` invocations (`spec/fixtures/claude_code/`), trimmed to a few event types and fields, with local paths, tool call IDs, and commit hashes replaced by placeholders; the spec's header says how each was recorded.
404
+ So `exit_detail`, which explains a nonzero exit, reads the stream first for Claude Code (and Codex and OpenCode, below) and stderr for pi. The parser and the invocation live in `AgentCouncil::Harnesses::ClaudeCodeHarness` (`lib/agent_council/harnesses/claude_code_harness.rb`). The specs read streams recorded from real `claude` invocations (`spec/fixtures/claude_code/`), trimmed to a few event types and fields, with local paths, tool call IDs, and commit hashes replaced by placeholders; the spec's header says how each was recorded.
360
405
 
361
406
  Not yet observed for Claude Code: an agent that hits a usage limit, and one billed to an API key.
362
407
 
@@ -373,6 +418,19 @@ The parser and the invocation live in `AgentCouncil::Harnesses::CodexHarness` (`
373
418
 
374
419
  Not yet observed for Codex: an agent that hits a usage limit, and one billed to an API key.
375
420
 
421
+ ### OpenCode
422
+
423
+ agent-council reads `opencode run --format json`'s event stream, one event per line (`step_start`, `tool_use`, `text`, `step_finish`, and `error`), each with a `part` (or, for `error`, an `error`):
424
+
425
+ - the report is the text of the last assistant message with text: its nonblank `text` parts, grouped by `messageID` and joined, skipping those OpenCode marks `synthetic` or `ignored`;
426
+ - the agent failed if there is an `error` event (opencode 1.2.4 exited 0 after one, so the event decides, not the exit status); if the last `step_finish`, or the report message's, has a `reason` of `length`, `content-filter`, or `error` (cut off or failed; other reasons, `unknown` included, are accepted); if the last `step_finish` has reason `tool-calls`, meaning the session stopped after a tool call; or if there is no text. The reason given is the `error` event's `data.message`, else its `name`; a nonzero exit is explained from the stream, with stderr as a fallback;
427
+ - a tool call OpenCode refused for want of permission (its `tool_use` part's `state.error` begins "The user rejected permission") is a warning, one for all of them, with their count and tools;
428
+ - usage is summed over the `step_finish` parts: `tokens.input` (which excludes cached input), `output` plus `reasoning`, `cache.read`, `cache.write`, and `cost`, OpenCode's estimate from its model catalog.
429
+
430
+ The parser and the invocation live in `AgentCouncil::Harnesses::OpenCodeHarness` (`lib/agent_council/harnesses/opencode_harness.rb`). The specs read streams recorded from this harness's argv and env (`spec/fixtures/opencode/`), with the session ID zeroed and tool output replaced by a placeholder.
431
+
432
+ Not yet observed for OpenCode: an agent that hits a usage limit or a context overflow, and the stderr of a nonzero exit without an `error` event.
433
+
376
434
  ---
377
435
 
378
436
  ## 14. Output Directory
@@ -423,9 +481,11 @@ RELEASE_NOTES.md
423
481
  LICENSE.txt
424
482
  REVIEW_NOTES.md # settled review findings; not shipped in the gem
425
483
  CONTRIBUTING.md # contribution process; not shipped in the gem
484
+ RELEASING.md # release checklist; not shipped in the gem
426
485
  agent-council.gemspec
427
- exe/ # executable entry points; nearly all code lives in lib/
486
+ exe/ # executable entry points; each calls a main in lib/
428
487
  agent-council
488
+ agent-council-ps # helper: list running councils, their agents, and their commands
429
489
  pi-models # helper: list models available to pi
430
490
  lib/
431
491
  agent_council.rb # harness-agnostic orchestration (AgentCouncil)
@@ -433,13 +493,19 @@ lib/
433
493
  version.rb
434
494
  platform.rb # windows? and the native-Windows abort (WSL is required)
435
495
  pi_models.rb # backs exe/pi-models
496
+ ps.rb # backs exe/agent-council-ps
436
497
  worker_pool.rb # worker threads, agent processes, and Ctrl-C handling
498
+ progress_printer.rb # the Started Agents and Finished Agents output
499
+ safe_stdout.rb # the $stdout that discards output it can't write
500
+ plain_line.rb # AgentCouncil.plain_line: text made safe to print on one line
437
501
  harnesses.rb # harnesses by name (AgentCouncil::Harnesses)
438
502
  harnesses/
503
+ harness.rb # the base class every harness subclasses (Harness)
439
504
  scaffold.rb # the read-only scaffolding every harness appends
440
505
  pi_harness.rb # pi-specific behavior (AgentCouncil::Harnesses::PiHarness)
441
506
  claude_code_harness.rb # Claude Code-specific behavior (ClaudeCodeHarness)
442
507
  codex_harness.rb # Codex-specific behavior (CodexHarness)
508
+ opencode_harness.rb # OpenCode-specific behavior (OpenCodeHarness)
443
509
  templates/ # runtime data files (resolved via __dir__, shipped in the gem)
444
510
  consolidate_prompt.md # instructions template for the consolidator
445
511
  analyst_format.md # report-format addendum for analysts
@@ -464,8 +530,8 @@ agent-council-reports/ # created on demand; gitignored in this repository
464
530
  ```
465
531
 
466
532
  Dev-only files (Gemfile, Rakefile, lint configs, CI workflows, `bin/setup`,
467
- `bin/setup-hooks`, `hooks/pre-commit`) are omitted above. The gemspec's
468
- `spec.files` is the authority on what ships.
533
+ `bin/setup-hooks`, `bin/pre-release-check`, `scripts/release/`, `hooks/pre-commit`)
534
+ are omitted above. The gemspec's `spec.files` is the authority on what ships.
469
535
 
470
536
  `lib/` stays shallow, without namespaces deeper than `harnesses/`
471
537
  (such as `lib/agent_council/services/...`) unless the project grows enough to
@@ -476,7 +542,10 @@ framework.
476
542
 
477
543
  ## 17. Dependencies
478
544
 
479
- The tool itself uses only the Ruby standard library (`yaml`, `json`, `open3`, `optparse`, `fileutils`, `tmpdir`, `shellwords`, ...); tests use RSpec.
545
+ The tool itself uses only the Ruby standard library (`yaml`, `json`, `open3`, `optparse`, `fileutils`, `tmpdir`, `shellwords`, ...); tests use RSpec. Beyond the harnesses, it runs only standard system
546
+ commands: `agent-council-ps` reads `ps`, and on Linux, `/proc` for
547
+ processes' exact arguments, CPU time, and working directories, or on
548
+ macOS, which has no `/proc`, `lsof` for a process's working directory.
480
549
 
481
550
  New gems are added only if they solve a meaningful problem that would otherwise require substantial code.
482
551
 
@@ -486,6 +555,8 @@ New gems are added only if they solve a meaningful problem that would otherwise
486
555
 
487
556
  agent-council is at an early stage (0.x), so it does only what its core job needs. Features we hope to add include support for more harnesses and telling a Claude Code agent's billing source (subscription or API key) apart in `run.json` (§11). A missing feature is usually just not built yet.
488
557
 
558
+ Worth considering, not decided: an option to keep agents' sessions. Every harness now runs agents without keeping their sessions (pi's `--no-session`, Claude Code's `--no-session-persistence`, and Codex's `--ephemeral` save none; OpenCode's goes to `OPENCODE_DB` in the scratch dir, deleted when the agent finishes), so a council doesn't flood the user's history and concurrent OpenCode agents don't share a database. A user might still want a session, to see what an agent did beyond its report or to recover usage the stream leaves out (OpenCode's subagents). An option for it would apply to every harness, and for OpenCode would keep each agent's own database (in the run directory, say) rather than use the user's.
559
+
489
560
  `REVIEW_NOTES.md` separately tracks review findings that were considered and don't need to be re-raised: accepted risks and non-issues.
490
561
 
491
562
  ---
data/INSTALL.md CHANGED
@@ -3,14 +3,14 @@
3
3
  This guide is for developers comfortable with the command line who have
4
4
  never used Ruby. It takes you from a bare machine to a working
5
5
  `agent-council` command. Already have Ruby 3.3+ (or JRuby 10+) and
6
- a harness CLI (`pi`, Claude Code, or Codex)? Just run `gem install agent-council`; see the
6
+ a harness CLI (`pi`, OpenCode, Claude Code, or Codex)? Just run `gem install agent-council`; see the
7
7
  [README](README.md#quick-start).
8
8
 
9
9
  ## 1. Prepare your system
10
10
 
11
11
  - **macOS and Linux:** any terminal works. Linux needs `curl` installed.
12
12
  - **Windows:** native Windows is **not supported**. Everything, including
13
- Ruby, the harness CLIs you use (Pi, Claude Code, Codex, or any mix), and
13
+ Ruby, the harness CLIs you use (Pi, OpenCode, Claude Code, Codex, or any mix), and
14
14
  agent-council, must be installed and run inside
15
15
  [WSL](https://learn.microsoft.com/windows/wsl/install) with Ubuntu. In
16
16
  an administrator PowerShell, run `wsl --install -d Ubuntu`, restart if
@@ -74,7 +74,7 @@ For other install methods and details, see the
74
74
  [Mise documentation](https://mise.jdx.dev/getting-started.html) and its
75
75
  [Ruby page](https://mise.jdx.dev/lang/ruby.html).
76
76
 
77
- ## 3. Install a harness: Pi, Claude Code, Codex, or several
77
+ ## 3. Install a harness: Pi, OpenCode, Claude Code, Codex, or several
78
78
 
79
79
  agent-council drives AI models through a coding-agent harness, which
80
80
  each config entry names. Most samples use the
@@ -89,9 +89,11 @@ Agents can also run under [Claude Code](https://code.claude.com/docs)
89
89
  (see the README's [Choosing a harness](README.md#choosing-a-harness)).
90
90
  For those, install the `claude` CLI and log in (under WSL, inside WSL).
91
91
  Likewise for [Codex](https://developers.openai.com/codex/cli): install
92
- the `codex` CLI and log in. A config needs each harness only if some
93
- agent, or the consolidator, runs under it (`harness: pi`, `claude`, or
94
- `codex`).
92
+ the `codex` CLI and log in, and for [OpenCode](https://opencode.ai/docs/cli):
93
+ install the `opencode` CLI and add provider credentials with
94
+ `opencode auth login`. A config needs each harness only if some
95
+ agent, or the consolidator, runs under it (`harness: pi`, `claude`,
96
+ `codex`, or `opencode`).
95
97
 
96
98
  ## 4. Install agent-council
97
99