agent-council 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/RELEASE_NOTES.md CHANGED
@@ -1,25 +1,203 @@
1
1
  # Release Notes
2
2
 
3
+ ## 0.3.0 (2026-11-20)
4
+
5
+ - **Check before upgrading: agents now get your MCP servers.** Agents in
6
+ every harness get the MCP servers you've configured for it, as an
7
+ interactive session would, instead of none: pi is no longer run with
8
+ `--no-mcp`, and Claude Code no longer with `--strict-mcp-config`. A
9
+ server that writes (posting, commenting, changing tickets) is
10
+ available to every pi agent, held back only by the read-only
11
+ instructions, which now forbid acting outside the machine; Claude
12
+ Code agents run only the MCP tools your settings or the analyzed
13
+ project's allow, and Codex agents only those your config approves,
14
+ since neither can ask. Every agent starts every server it loads, so
15
+ one that acts on startup acts once per agent. Before a run, remove or
16
+ disable servers you don't want agents to have. See "Agents get your
17
+ MCP servers" in the README's Safety section, which also lists which
18
+ servers load (including pi extensions', Claude Code and Codex
19
+ plugins', and Codex's apps connectors) and where to turn each off.
20
+ - pi's tool allowlist gains `codemode` (how pi exposes MCP tools by
21
+ default), `mcp__*` (for servers with direct exposure), `tool_search`
22
+ (for servers with deferred exposure), and pi's MCP resource tools.
23
+ `pi-models` still passes `--no-mcp`.
24
+ - Claude Code agents' refused MCP calls are warnings, as other
25
+ refused calls already were.
26
+ - A third harness: an entry with `harness: codex` runs under the OpenAI
27
+ Codex CLI (`codex exec`, tested with 0.167.0), billed however your
28
+ `codex` login is (a ChatGPT plan or an API key). See "Choosing a
29
+ harness" in the README.
30
+ - Codex agents run as an interactive session would: your Codex config
31
+ applies, its `sandbox_mode` included, and so do the project's
32
+ `AGENTS.md` files. `codex exec` never asks for approval, whatever
33
+ your `approval_policy`, so a command that would need it is refused.
34
+ Under Codex's default `read-only` sandbox they get no scratch
35
+ space; under `workspace-write` they can also write the analyzed
36
+ repository (see "Codex's sandbox" in the README).
37
+ - Unlike pi and Claude Code agents, whose built-in tools are limited,
38
+ Codex agents keep Codex's whole built-in toolset, file editing
39
+ included, since Codex can't withhold tools. Its subagent tools fail
40
+ under the `--ephemeral` agent-council passes, so agents can't fan
41
+ out.
42
+ - Codex agents get your MCP servers (see above), but `codex exec` never
43
+ asks for approval, so an MCP tool call is refused unless your config
44
+ approves the tool in advance (e.g. `default_tools_approval_mode =
45
+ "approve"` on the server).
46
+ - Errors Codex reports without failing an agent (such as missing
47
+ metadata for a model name), and failed MCP calls (such as those
48
+ refused for want of approval), are printed as warnings and recorded
49
+ in `run.json`.
50
+ - Codex reports no cost, so a Codex agent's cost is blank, and a run's
51
+ total cost (`total_usage`'s `cost` in `run.json`) is left out when a
52
+ Codex agent reported usage; see the known-cost item below.
53
+ - `mixed-harness.yml` gains a Codex analyst.
54
+ - `codemode`, which every pi agent now gets, MCP servers or not, gives
55
+ scripts pi's `models` API (`models.classify`,
56
+ `models.generateImages`), which can send what a script passes it to
57
+ any model pi has credentials for, billed to you. pi agents' usage now
58
+ includes what their tools report, so such calls are counted. See "pi
59
+ agents can call other models" in the README's Safety section.
60
+ - A run that mixes agents with and without a known cost (such as Codex
61
+ agents, which have none) now shows the cost of the analysts whose
62
+ cost is known in the console summary ("$1.00 for the 2 of 3 agents
63
+ with a known cost"), and `run.json` records the same for every entry,
64
+ consolidations included, as `known_cost` and `known_cost_runs`.
65
+ - The scaffolding gains a rule: agents must not act outside the machine
66
+ (post, comment, send messages, or change remote data) with any tool,
67
+ MCP tools included. Reading remote information is still allowed.
68
+
69
+ ## 0.2.0 (2026-11-19)
70
+
71
+ - `--gem-dir` prints the root directory of the agent-council application,
72
+ which holds its documentation and examples, and exits.
73
+ - `--project-url` prints the project's GitHub URL and exits.
74
+ - `code-review-agents.md`, a sample code-review ensemble, is removed;
75
+ model offerings change too often to keep it current. To get a current
76
+ recommendation, run `examples/prompts/recommend-model-ensemble-prompt.md`.
77
+ - `USE_CASES.md`, a catalog of what agent-council can be used for, is
78
+ added, and the README gains a "What makes a good fit" section.
79
+ - Costs are now described as estimates (for pi agents, from pi's price
80
+ table), not what you're billed. A new README section, "How far to
81
+ trust the cost", says why they can be far off: subscription pricing,
82
+ price tables, stopped agents recording no usage, and token counting.
83
+ - A README section, "Claude Code's sandbox", covers Claude Code's own
84
+ Bash sandbox, which Claude Code's settings turn on, and which the
85
+ analyzed repository's settings can turn on or off: it leaves the
86
+ repository writable, commands in `sandbox.excludedCommands` run
87
+ outside it, an agent's request to run a command outside it was refused
88
+ in a check, and agent-council doesn't notice other sandbox trouble. On
89
+ Linux, a `bwrap` blocked by AppArmor makes every command fail (an
90
+ alias can't fix it for agents), and a `TMPDIR` too long for the
91
+ sandbox to start leaves commands unsandboxed by default.
92
+ - The scaffolding tells agents to use `$TMPDIR` for scratch space
93
+ instead of giving the scratch directory's path, which Claude Code's
94
+ sandbox makes read-only (`$TMPDIR` is a writable directory inside it).
95
+ The scaffolding is now identical for every agent. agent-council also
96
+ sets each agent's `CLAUDE_CODE_TMPDIR` to its scratch directory, so
97
+ the sandbox's `$TMPDIR` stays inside it, whatever your own setting.
98
+ - The state-of-the-codebase and test-coverage-analysis sample prompts
99
+ no longer tell agents to write their report to a file in the project;
100
+ like the other samples, they deliver it as the final message, which
101
+ agent-council saves. The state-of-the-codebase prompt no longer
102
+ compares with earlier reports.
103
+ - pi is now run with `--no-mcp`, both for agents and by `pi-models`, so
104
+ the MCP servers configured for pi's built-in MCP support no longer
105
+ start. Their tools were already unavailable to agents; a server that
106
+ did something merely by starting no longer does it. An extension that
107
+ provides its own MCP support isn't affected. This requires pi 1.0.4 or
108
+ later.
109
+ - The test-coverage-analysis sample prompt uses only the cov-loupe CLI,
110
+ since agents have no MCP tools.
111
+ - Agents and the consolidator can run under Claude Code, alongside pi
112
+ agents in the same config: each entry's `harness` value names its
113
+ harness, `pi` or `claude`, and an unknown name is rejected at startup
114
+ (with `--consolidate`, only the consolidator's, since no analysts run).
115
+ A Claude Code entry's `provider` only labels the agent. Claude Code
116
+ agents bill however `claude` does at your terminal, to a subscription
117
+ login or an API key; agent-council sets nothing for billing. Of Claude
118
+ Code's built-in tools, agents get only `Read`, `Grep`, `Glob`, and
119
+ `Bash`; they get no MCP servers, and they load `CLAUDE.md`, settings,
120
+ hooks, plugins, and auto memory as an interactive session would,
121
+ including the analyzed repository's own hooks. A tool call Claude Code
122
+ refuses (e.g. under a `permissions.deny` rule) is reported as a warning,
123
+ also shown in the report's metadata table (where the consolidator sees
124
+ it) and recorded in `run.json`; the report is kept, and an agent that
125
+ fails anyway still gets the warning. Only configs that use Claude Code
126
+ need the `claude` CLI.
127
+ - **Breaking:** every agent and consolidator entry must give `harness`,
128
+ `provider`, and `model`; there are no defaults. To update a 0.1.0
129
+ config, add `harness: pi` to each entry. To `--consolidate` a run made
130
+ by 0.1.0, add `harness: pi` to the consolidator in the run's config
131
+ copy; its reports and `run.json` are still read as pi's.
132
+ - Config errors list every bad entry at once, each named by its key
133
+ (e.g. `'agents' entry #2` or `'consolidator'`) with every problem it
134
+ has (missing or blank keys, values that aren't strings, an unknown
135
+ harness), and say what a misshapen `agents` list or entry is instead
136
+ (e.g. a consolidator given as a list).
137
+ - The startup header of a run and of `--consolidate` now begins with a
138
+ `Working Dir:` line giving the working directory, which the relative
139
+ paths after it are shown against. The labels after it are realigned to
140
+ match.
141
+ - `RUNAWAY_AGENTS.md` is added. agent-council has no time limit, and
142
+ this explains why there isn't a built-in one yet and how to limit a
143
+ whole run with the `timeout` command (with a shell function that
144
+ wraps it), including its pitfalls: Ctrl-C needs `--foreground`, a
145
+ limit that runs out too soon throws away work, and whether time asleep
146
+ counts depends on the `timeout` you have.
147
+ - The README shows a sample run's console output, in a new "What a run
148
+ prints" section.
149
+ - The review-latest-commit sample prompt has agents begin their report
150
+ with the full hash and subject of the commit reviewed.
151
+ - The docs and messages use "run" only for a whole agent-council run,
152
+ and "agent" for one agent's part in it; e.g. a failure now reads
153
+ "… exited 0 but the agent failed". `run.json` is unchanged.
154
+
3
155
  ## 0.1.0 (2026-11-09)
4
156
 
5
- Initial release: run one prompt through multiple models via the pi harness,
6
- saving each model's final response as a Markdown report, with optional
7
- consolidation by another model. `--consolidate RUN_DIR` runs just the
8
- consolidation of a finished run. Runs go under `./agent-council-reports`,
9
- or under the directory given with `-o` / `--output-dir`; `--consolidate`
10
- writes into the run directory it is given. `AGENT_COUNCIL_OPTS`
11
- holds arguments inserted before the command-line ones. Includes
12
- sample prompts and configs under `examples/`, and a `pi-models` helper that
13
- lists the provider/model pairs available to pi. Each run directory's
14
- `run.json` records every agent run's outcome, duration, token usage, and,
15
- where pi can price it, cost; reports show their duration and usage, and the
16
- console shows usage per agent and in total. The consolidated report is
17
- split into a `_findings.md` file, which can be pasted into an AI chat as
18
- is, and a `_meta.md` file with the run's metadata.
157
+ Initial release. agent-council runs one prompt through several AI coding
158
+ agents on your project, using the pi harness with any mix of providers and
159
+ models, and gives you a consolidated report of what they found plus a
160
+ head-to-head comparison of the agents.
161
+
162
+ ### What a run produces
163
+
164
+ - **A consolidated findings report** (`*_findings.md`): consensus findings,
165
+ unique findings, and contradictions across the agents, ready to paste
166
+ into an AI chat.
167
+ - **A companion meta report** (`*_meta.md`): the run's metadata and an
168
+ assessment of each agent's work, with its duration, token usage, and
169
+ cost.
170
+ - **Each agent's own report**, as a separate Markdown file showing its
171
+ duration and usage.
172
+ - **`run.json`**, recording every agent run's outcome, duration, token
173
+ usage, and, where the harness can price it, cost.
174
+
175
+ The console shows token usage per agent and in total.
176
+
177
+ ### Usage
178
+
179
+ - Runs go under `./agent-council-reports`, or under the directory given
180
+ with `-o` / `--output-dir`.
181
+ - `--consolidate RUN_DIR` runs just the consolidation of a finished run,
182
+ writing into that run directory.
183
+ - `AGENT_COUNCIL_OPTS` holds arguments inserted before the command-line
184
+ ones.
185
+ - Sample prompts and configs are included under `examples/`.
186
+ - The `pi-models` helper lists the provider/model pairs available to pi.
187
+
188
+ ### Safety
19
189
 
20
190
  agent-council does not sandbox the agents: they get pi's `bash` tool,
21
- running as you. See [Safety and privacy](README.md#safety-and-privacy) in the README before running it.
191
+ running as you. See [Safety and privacy](README.md#safety-and-privacy) in
192
+ the README before running it.
193
+
194
+ ### Requirements
195
+
196
+ - Ruby 3.3 or later, or JRuby 10 or later (where SIGQUIT is left to the
197
+ JVM, so it doesn't stop a run).
198
+ - The [pi](https://github.com/earendil-works/pi) CLI.
199
+ - Native Windows is not supported; on Windows, run agent-council inside
200
+ WSL.
22
201
 
23
- Runs on Ruby 3.3 or later and on JRuby 10 or later (where SIGQUIT is left
24
- to the JVM, so it doesn't stop a run). Native Windows is not supported; on
25
- Windows, run agent-council inside WSL.
202
+ Install with `gem install agent-council`. New to Ruby? See
203
+ [Install agent-council from scratch](INSTALL.md).
data/RUNAWAY_AGENTS.md ADDED
@@ -0,0 +1,181 @@
1
+ # Runaway agents and time limits
2
+
3
+ agent-council has no time limit of its own: a run lasts until every
4
+ agent finishes. This document explains why, what can go wrong without
5
+ one, and how to put a limit on a run yourself with the `timeout`
6
+ command.
7
+
8
+ ## The problem
9
+
10
+ Now and then an agent doesn't finish. Its siblings finish in minutes,
11
+ and it goes on for an hour or more, holding up the run (the
12
+ consolidator starts only after every review agent has finished) and,
13
+ on pay-per-token providers, running up cost. Its tokens and cost
14
+ aren't in the run's totals if you stop it, since an interrupted agent
15
+ records no usage (see [How far to trust the
16
+ cost](README.md#how-far-to-trust-the-cost)).
17
+
18
+ The cause may be the particular model or provider: if one entry in
19
+ your config keeps doing it, try removing it.
20
+
21
+ ## Why there is no built-in limit (yet)
22
+
23
+ A limit is easy to write; a good default is not:
24
+
25
+ - **Legitimate runs vary enormously.** How long an agent takes depends
26
+ on the prompt, the size of the repository, the model, the provider's
27
+ speed and load, and the harness. A whole-codebase review can
28
+ legitimately take hours; a smoke test takes seconds. A default
29
+ short enough to catch a runaway early would kill real work, and one
30
+ long enough never to do that would rarely help.
31
+ - **A false positive can cost more than the runaway.** Stopping an
32
+ agent that was doing real work throws away everything it did: an
33
+ agent stopped before writing its report leaves nothing behind, however
34
+ far along it was. The tokens and money it spent are gone, and so is
35
+ the time, often an hour or more, and getting that report means
36
+ running it again from the start. A limit that stops the whole run
37
+ does this to every agent still working.
38
+ - **Silence is not the symptom.** A limit that stops an agent only
39
+ after it has produced no output for a while would not have caught
40
+ the runaways seen so far, since they never stopped producing output.
41
+ - **Token or cost caps could behave differently by harness.** Stopping
42
+ an agent at a token or cost budget would catch a runaway whatever its
43
+ timing, but it depends on what each harness reports while it runs:
44
+ how often, how accurately, and what it counts. If that differs, the
45
+ same cap would mean different things for different agents in one
46
+ config, which would be confusing at best and misleading at worst.
47
+ Even if the harnesses agreed today, supporting another harness later
48
+ could bring in the difference.
49
+ - **Sleep shouldn't count, but may.** Nothing runs while the computer
50
+ sleeps, so time asleep shouldn't count toward a limit; counting it
51
+ can stop an agent that was making progress as soon as the computer
52
+ wakes. Whether it counts depends on the clock the timer uses, which
53
+ differs by operating system and, for the `timeout` command, by
54
+ implementation (see below).
55
+ - **Stopping one agent is more than ending a process.** The useful
56
+ version would stop only the runaway, let the others finish, record
57
+ the stopped agent as failed in `run.json`, and still consolidate.
58
+ That's a real feature, worth building once it's clear what limit
59
+ people actually need.
60
+
61
+ ## Limiting a run with `timeout`
62
+
63
+ agent-council has no built-in protection against runaway agents, but
64
+ the `timeout` command can serve as a very crude substitute: it can't
65
+ tell which agent is the problem, so it limits the whole run. [A shell
66
+ function](#a-shell-function) below makes it simpler to use.
67
+
68
+ The `timeout` command runs a command and sends it SIGTERM when a time
69
+ limit runs out. agent-council treats SIGTERM like Ctrl-C (see [Stopping
70
+ a run](README.md#stopping-a-run)): running agents get SIGTERM and a
71
+ shared 5 seconds to exit, and the reports already written are kept.
72
+
73
+ ```bash
74
+ timeout --foreground 2h agent-council prompt.md
75
+ ```
76
+
77
+ Durations take a suffix: `s` (the default), `m`, `h`, or `d`. When
78
+ the limit runs out, `timeout` exits with status 124, so a script can
79
+ tell a timeout from an agent-council failure.
80
+
81
+ If at least two analysts had written their reports, you can then
82
+ consolidate what was written (with only one, there's nothing to
83
+ compare it with, so it's usually better to read that report itself), as for any interrupted run (see
84
+ [Consolidating a finished run](README.md#consolidating-a-finished-run)):
85
+
86
+ ```bash
87
+ agent-council --consolidate agent-council-reports/<date>/<time>
88
+ ```
89
+
90
+ The agents that didn't finish count as having no report, with a note
91
+ that the reason wasn't recorded: a run stopped before every analyst
92
+ finished writes no `run.json`.
93
+
94
+ ### Use `--foreground` in a terminal
95
+
96
+ Without `--foreground`, `timeout` moves itself and agent-council into
97
+ a new process group, out of the terminal's foreground, so Ctrl-C
98
+ doesn't reach agent-council: the run keeps going until the limit runs
99
+ out. (Checked with GNU coreutils 9.7 and uutils coreutils 0.10.0.)
100
+ With `--foreground`, Ctrl-C works as usual. `--foreground` also means
101
+ the limit's SIGTERM goes to agent-council alone, which is all that's
102
+ needed: each agent runs in a process group of its own, and
103
+ agent-council stops the agents itself.
104
+
105
+ In a script or cron job with no terminal, `--foreground` makes no
106
+ difference either way.
107
+
108
+ ### Don't use `--kill-after` (`-k`) with a short delay
109
+
110
+ `-k DURATION` sends SIGKILL if the command is still running that long
111
+ after the SIGTERM. SIGKILL can't be handled, so a killed agent-council
112
+ can't stop its agents, which go on running (and billing) on their own.
113
+ agent-council normally exits within a few seconds of SIGTERM; if you
114
+ use `-k`, give it well over that, such as `-k 1m`.
115
+
116
+ ### A shell function
117
+
118
+ To make this a habit, put a function like this in your `~/.bashrc` or
119
+ `~/.zshrc` (it works in bash and zsh, not in a plain POSIX `sh`). It
120
+ takes the limit first, then agent-council's usual arguments, uses
121
+ `gtimeout` where there's no `timeout`, and says how to recover when
122
+ the limit runs out:
123
+
124
+ ```bash
125
+ agent-council-timeboxed() {
126
+ if [ "$#" -lt 2 ]; then
127
+ echo "usage: agent-council-timeboxed DURATION PROMPT_FILE [CONFIG_FILE] [OPTIONS]" >&2
128
+ return 2
129
+ fi
130
+ local limit="$1"
131
+ shift
132
+ local timeout_cmd
133
+ timeout_cmd=$(command -v timeout || command -v gtimeout) || {
134
+ echo "agent-council-timeboxed: no timeout or gtimeout command found" >&2
135
+ return 127
136
+ }
137
+ "$timeout_cmd" --foreground "$limit" agent-council "$@"
138
+ local rc=$?
139
+ if [ "$rc" -eq 124 ]; then
140
+ echo "agent-council-timeboxed: stopped after $limit;" \
141
+ "to consolidate what was written, run agent-council --consolidate RUN_DIR" >&2
142
+ fi
143
+ return "$rc"
144
+ }
145
+ ```
146
+
147
+ ```bash
148
+ agent-council-timeboxed 2h prompt.md my-config.yml
149
+ ```
150
+
151
+ The run directory to consolidate is the `Run Dir:` that agent-council
152
+ printed when it started.
153
+
154
+ ### What the limit covers
155
+
156
+ - **The whole run, not each agent.** If the limit runs out while
157
+ reviews are running, every review agent still running is stopped:
158
+ the limit can't tell a runaway from an agent that is just slow. If
159
+ it runs out during
160
+ consolidation, which starts only after every review agent has
161
+ finished, the consolidator is stopped. Each stopped agent loses all
162
+ its work, and you pay for it again when you rerun. Set the limit
163
+ generously, with the slowest legitimate agent and the consolidation
164
+ in mind: a limit that runs out too soon can waste far more than the
165
+ runaway it's meant to stop.
166
+ - **Sleep, depending on the implementation.** The two `timeout`s
167
+ differ:
168
+ - **uutils coreutils** (the default `timeout` on recent Ubuntu
169
+ releases) times the limit with `CLOCK_MONOTONIC`, which on Linux
170
+ stops while the computer is suspended, so time asleep doesn't
171
+ count toward the limit.
172
+ - **GNU coreutils** (the default on most other Linux distributions,
173
+ and `gtimeout` from Homebrew's `coreutils` on macOS) times it with
174
+ `CLOCK_REALTIME`, which keeps going during suspend, so time asleep
175
+ should count, and a run can be stopped as soon as the computer
176
+ wakes. This hasn't been tested across an actual suspend.
177
+
178
+ `timeout --version` says which one you have. (The clocks were read
179
+ from `strace` output on Linux, not from documentation.)
180
+ - **macOS** has no `timeout`; install Homebrew's `coreutils` and use
181
+ `gtimeout`.
data/USE_CASES.md ADDED
@@ -0,0 +1,136 @@
1
+ # agent-council: Use Cases
2
+
3
+ A catalog of what agent-council can be used for. For what it is and
4
+ what it produces, see the start of the [README](README.md); for why
5
+ to use it, [Why use it](README.md#why-use-it); and for how to tell
6
+ whether a task suits it, [What makes a good
7
+ fit](README.md#what-makes-a-good-fit).
8
+
9
+ Where a sample prompt exists, it's linked; the samples are in
10
+ `examples/prompts/`, which is included in the installed gem.
11
+
12
+ ## Code review
13
+
14
+ - The latest commit plus uncommitted changes, before pushing
15
+ ([`review-latest-commit-prompt.md`](examples/prompts/review-latest-commit-prompt.md),
16
+ which lets agents run tests and linters).
17
+ - A GitHub pull request, with its unaddressed comments and failing checks
18
+ ([`review-pull-request-prompt.md`](examples/prompts/review-pull-request-prompt.md)),
19
+ whether you're its reviewer, its author, the project's maintainer, or
20
+ an outsider reviewing a PR in someone else's project
21
+ ([`dnsruby-pull-221-prompt.md`](examples/prompts/dnsruby-pull-221-prompt.md)
22
+ is a one-line example).
23
+ - A feature branch, or a range of commits, as a whole.
24
+ - High-stakes changes: security-sensitive code, concurrency, migrations,
25
+ money, public APIs, and large dependency upgrades.
26
+ - Re-reviews after fixes, comparing the new run's reports with the old.
27
+
28
+ ## Understanding a codebase
29
+
30
+ - Onboarding to a project you've joined or inherited.
31
+ - State-of-the-codebase assessments, before planning, after a refactoring,
32
+ or periodically to track health over time
33
+ ([`state-of-the-code-base-prompt.md`](examples/prompts/state-of-the-code-base-prompt.md)).
34
+ - Due diligence on a library, fork, or acquisition before adopting it
35
+ (in a sandbox; see the README's [Safety and
36
+ privacy](README.md#safety-and-privacy)).
37
+ - Specific questions about how something works ("what happens when the
38
+ cache is unavailable?"), where agreement builds confidence and
39
+ disagreement shows where to look.
40
+ - A first draft of missing architecture documentation.
41
+
42
+ ## Decisions and design
43
+
44
+ - The best way to fix a bug or build a feature, with alternatives and
45
+ trade-offs.
46
+ - Naming, defaults, flags versus config settings, file formats, and other
47
+ design choices where one model's confident answer can mislead
48
+ ([`project-name-prompt.md`](examples/prompts/project-name-prompt.md)
49
+ asks for project names).
50
+ - Release readiness: "Is this ready to publish?", "What would stop
51
+ someone else from using this?"
52
+ - Open-ended "what are we missing?" questions, where each model's blind
53
+ spots differ.
54
+ - Migration and upgrade planning, and what will break.
55
+ - Comparing competing proposals neutrally, to settle or sharpen a team
56
+ debate.
57
+
58
+ ## Debugging
59
+
60
+ - Ranked hypotheses for a hard bug from its symptoms, with how to
61
+ confirm each (or confirmation itself, if the prompt permits tests).
62
+ - Post-incident analysis: how a defect got in and why it wasn't caught.
63
+ - Candidate mechanisms for flaky tests.
64
+
65
+ ## Quality audits
66
+
67
+ - Documentation against the code
68
+ ([`review-docs-prompt.md`](examples/prompts/review-docs-prompt.md)).
69
+ - Test coverage gaps, ranked by risk, with a fix prompt for each
70
+ ([`test-coverage-analysis-prompt.md`](examples/prompts/test-coverage-analysis-prompt.md)).
71
+ - Security, error handling, performance, dependencies and licenses,
72
+ portability, consistency, dead code, logging, accessibility, and
73
+ internationalization.
74
+
75
+ ## Planning
76
+
77
+ - A prioritized backlog from a council's findings.
78
+ - Ready-to-use prompts or tickets for each recommendation, to hand to a
79
+ coding agent.
80
+ - Scoping a feature: what it touches, and its risks.
81
+ - "What should we work on next?"
82
+
83
+ ## Beyond source code
84
+
85
+ - Infrastructure and configuration: Terraform, Kubernetes, Dockerfiles,
86
+ and CI workflows (agents inherit your shell's credentials, so keep
87
+ production out of reach).
88
+ - Documentation sets, manuscripts, and other writing, where models'
89
+ tastes differ and a council shows which criticisms are robust.
90
+ - Specifications and requirements, for ambiguity and missing cases.
91
+ - Data, notebooks, and analysis scripts, for methodological problems.
92
+ - Prompts needing no files: names, taglines, ideas, and general
93
+ questions.
94
+
95
+ ## Choosing models and providers
96
+
97
+ The README's [A benchmark built from your own
98
+ work](README.md#a-benchmark-built-from-your-own-work) and [What you
99
+ get](README.md#what-you-get) describe what's measured and where it's
100
+ saved.
101
+
102
+ - Picking a default model, from weeks of `run.json` files from real work.
103
+ - Picking an ensemble: which models find things the others don't.
104
+ - Recommending a provider-diverse ensemble for a task
105
+ ([`recommend-model-ensemble-prompt.md`](examples/prompts/recommend-model-ensemble-prompt.md)).
106
+ - Whether a premium model is worth its price for a given kind of task.
107
+ - Trying a new model on your real work when it's released.
108
+ - Catching regressions by rerunning a saved prompt after a model update.
109
+ - Measuring one model's consistency by configuring it several times.
110
+ - Comparing providers serving the same model, on latency, price, and
111
+ reliability.
112
+ - Comparing harnesses running the same model (say, pi and Claude Code,
113
+ or pi and Codex), on
114
+ speed, cost, and what they find.
115
+ - Finding out which listed models your plan actually covers.
116
+
117
+ ## Prompts and consolidation
118
+
119
+ - Testing a reusable prompt for robustness across models before sharing
120
+ it.
121
+ - Seeing how sensitive models are to a change of wording.
122
+ - Trying other consolidator models on a finished run with
123
+ `--consolidate`, without paying for the agents again, or, in a source
124
+ checkout, edited consolidation instructions.
125
+
126
+ ## Learning, teams, and automation
127
+
128
+ - Learning how models reason, and where their output can and can't be
129
+ trusted, from their contradictions.
130
+ - A team's shared library of prompts and configs.
131
+ - Evidence for decisions about which AI providers and models to pay for.
132
+ - Pasting a findings file into a chat, ticket, or coding agent as is.
133
+ - Batch and scheduled runs across many repositories or prompts (see the
134
+ README's [Running](README.md#running) for `AGENT_COUNCIL_OPTS` and
135
+ [What you get](README.md#what-you-get) for exit status; there are no
136
+ timeouts, so watch unattended runs).
@@ -1,21 +1,27 @@
1
- # Sample ensemble: four analysts and a consolidator. Replace any provider or
2
- # model you don't have credentials for (see `pi --list-models`). The
1
+ # Sample ensemble: four analysts and a consolidator, all under pi. Replace any
2
+ # provider or model you don't have credentials for (see `pi --list-models`). The
3
3
  # commented-out entries are alternatives: uncommenting the extra agent adds a
4
4
  # fifth analyst; to swap in the other consolidator, uncomment its provider
5
5
  # and model lines and comment out the active pair.
6
6
  agents:
7
- - provider: opencode-go
7
+ - harness: pi
8
+ provider: opencode-go
8
9
  model: glm-5.3
9
- - provider: opencode-go
10
+ - harness: pi
11
+ provider: opencode-go
10
12
  model: kimi-k3
11
- - provider: openai
13
+ - harness: pi
14
+ provider: openai
12
15
  model: gpt-6.1-sol
13
- # - provider: opencode-go
16
+ # - harness: pi
17
+ # provider: opencode-go
14
18
  # model: minimax-m3
15
- - provider: cursor
19
+ - harness: pi
20
+ provider: cursor
16
21
  model: claude-sonnet-5-5-high
17
22
 
18
23
  consolidator:
24
+ harness: pi
19
25
  # provider: deepseek
20
26
  # model: deepseek-v4-pro
21
27
  provider: opencode-go
@@ -0,0 +1,28 @@
1
+ # Sample mixed-harness ensemble: Claude Code and Codex analysts alongside pi
2
+ # analysts, with a Claude Code consolidator. Claude Code and Codex entries run
3
+ # under your own `claude` and `codex` setups and bill however they do (see
4
+ # "Choosing a harness" in the README); pi entries need credentials for their
5
+ # providers (see `pi --list-models`). Replace any provider or model you don't
6
+ # have.
7
+ agents:
8
+ - harness: claude
9
+ provider: anthropic
10
+ model: claude-opus-5-5
11
+ - harness: codex
12
+ provider: openai
13
+ model: gpt-5.6-terra
14
+ - harness: pi
15
+ provider: deepseek
16
+ model: deepseek-flash
17
+ - harness: pi
18
+ provider: openrouter
19
+ model: z-ai/glm-5.3-flash
20
+ # The same model under the other harness, to compare harnesses:
21
+ - harness: pi
22
+ provider: anthropic
23
+ model: claude-opus-5-5
24
+
25
+ consolidator:
26
+ harness: claude
27
+ provider: anthropic
28
+ model: claude-sonnet-5-5
@@ -6,5 +6,6 @@
6
6
  # "$AC_HOME/examples/prompts/smoke-test-prompt.md" \
7
7
  # "$AC_HOME/examples/configs/single.yml"
8
8
  agents:
9
- - provider: opencode-go # OPENCODE_API_KEY
9
+ - harness: pi
10
+ provider: opencode-go # OPENCODE_API_KEY
10
11
  model: kimi-k2.7-code
@@ -51,9 +51,11 @@ recommend a small ensemble for the user's task and constraints.
51
51
 
52
52
  ```yaml
53
53
  agents:
54
- - provider: ...
54
+ - harness: pi
55
+ provider: ...
55
56
  model: ...
56
57
  consolidator:
58
+ harness: pi
57
59
  provider: ...
58
60
  model: ...
59
61
  ```
@@ -85,7 +85,7 @@ those steps by reading the code instead.
85
85
  **DO NOT EDIT ANY CODE OR TRACKED FILES, AND DO NOT COMMIT.**
86
86
 
87
87
  Commands otherwise permitted here may generate temporary files; direct
88
- their output to your scratch directory where the tool allows it.
88
+ their output to your scratch directory (`$TMPDIR`) where the tool allows it.
89
89
  Avoid unnecessary modifications to the working tree.
90
90
 
91
91
  ## Report
@@ -3,6 +3,9 @@
3
3
  Review the latest commit and any uncommitted changes.
4
4
  Report only issues needing addressing.
5
5
 
6
+ Begin the report with the full hash and subject of the commit reviewed
7
+ (from `git log -1 --format='%H %s'`).
8
+
6
9
  Evaluate whether the changes are:
7
10
 
8
11
  - Correct and complete.
@@ -38,7 +41,7 @@ relevant tests and linters, and reproduce suspected defects.
38
41
 
39
42
  Tests and linters that generate temporary files or coverage data are
40
43
  permitted (builds are not); direct their output to your scratch
41
- directory where the tool allows it. Avoid unnecessary modifications to the
44
+ directory (`$TMPDIR`) where the tool allows it. Avoid unnecessary modifications to the
42
45
  working tree.
43
46
 
44
47
  For each issue, identify the affected file and location, explain the problem
@@ -75,7 +75,7 @@ relevant tests and linters, and reproduce suspected defects.
75
75
 
76
76
  Tests and linters that generate temporary files or coverage data are
77
77
  permitted (builds are not); direct their output to your scratch
78
- directory where the tool allows it. Avoid unnecessary modifications to the
78
+ directory (`$TMPDIR`) where the tool allows it. Avoid unnecessary modifications to the
79
79
  working tree.
80
80
 
81
81
  ## Report