@prplkane/roundtable 0.6.4 → 0.7.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.
package/README.md CHANGED
@@ -1,189 +1,184 @@
1
- # Roundtable
2
-
3
- Roundtable runs structured decision reviews with multiple AI models. Provide a question,
4
- options and constraints; the models take independent positions, critique the alternatives
5
- and produce a recommendation. You can answer questions, add context and record your own
6
- decision alongside the result.
7
-
8
- Use it to compare technical approaches, review a product decision or examine a plan from
9
- different perspectives. The browser interface runs locally, and a JSON command-line client
10
- supports the same workflow for agents and scripts.
11
-
12
- Usage statistics describe your own agents' calls in Roundtable and stay on your machine.
13
- Roundtable has no telemetry or analytics service and sends no usage data to its developers.
14
-
15
- **Requirements:** Node.js 22 or newer. No runtime dependencies. Live reviews use installed
16
- Claude, Codex or Antigravity CLIs, or an OpenAI-compatible endpoint for a local or hosted model.
17
-
18
- **Provider availability:** some vendors or models are unavailable in certain regions. Regional
19
- network paths can also interrupt replies even when login succeeds. Check the
20
- [availability and network guidance](docs/workflow.md#provider-availability-and-network-access)
21
- before your first live review.
22
-
23
- **Status:** early preview for developers. Feedback from real workflows is welcome. What does not
24
- work well yet is listed under [Known issues](docs/workflow.md#known-issues).
25
-
26
- ## How a review works
27
-
28
- 1. **Define the decision.** Add the alternatives, known facts and constraints. Choose two to
29
- eight participants, called seats, and give each a perspective such as risk, cost or evidence.
30
- Seats can use different models or share the same provider.
31
- 2. **Gather sources first (optional).** Add a searcher: one extra call, on the provider you
32
- pick. Its query starts from your question and options; review it or write a custom query.
33
- Every seat and the chairman then read the same cited sources. Other context and discussion
34
- answers stay out of research. The searcher never argues or votes.
35
- 3. **Collect independent positions.** Each seat answers before seeing the others' responses.
36
- The board then pauses for your input.
37
- 4. **Discuss the differences.** A critique round lets seats review the previous replies and
38
- revise their positions. Questions appear together so you can answer them in one place.
39
- 5. **Review the recommendation.** A designated chairman summarizes the discussion and its
40
- disagreements. Accept the recommendation or record a different decision, then export the
41
- record as Markdown.
42
-
43
- ## Quick start
44
-
45
- ### Connect your assistant once
46
-
47
- Install Roundtable globally, then connect your assistant:
48
-
49
- ```bash
50
- npm install -g @prplkane/roundtable
51
- roundtable setup --client codex
52
- ```
53
-
54
- Use `--client claude`, `--client agy`, or `--client all` for the other supported assistants.
55
- Restart the assistant or reload its MCP connections. In any project, ask **"Use Roundtable
56
- to review this decision."** The installed MCP tools start the local board as needed, return
57
- questions to the coordinating assistant, and wait for the chairman's recommendation.
58
- You do not need to open this repository or start a browser for each review.
59
-
60
- Setup installs a user-level workflow skill and MCP connection. `roundtable setup --client codex
61
- --check` checks it; `--remove` removes its unchanged entries. After updating Roundtable, rerun
62
- setup to refresh the skill, and use `roundtable server restart` once active reviews finish.
63
- No checkout is needed. To install a local checkout instead, run `npm pack` there and
64
- `npm install -g` with the printed `.tgz` filename; `npm install -g .` can create a link
65
- back to the checkout that breaks when it moves.
66
- See [assistant setup](docs/workflow.md#connect-an-assistant-for-every-project)
67
- for paths, demo mode and troubleshooting, or the [Linux walkthrough](docs/workflow.md#first-connection-on-linux).
68
- For a source snapshot before its npm release, use
69
- `npm install -g https://github.com/prplkane/roundtable/archive/refs/heads/main.tar.gz`.
70
-
71
- Interactive `roundtable --help`, `roundtable` and `roundtable fake` show the app's pixel logo
72
- tile in orchid, with the wordmark, a blinking cursor and the installed version beside it, then
73
- the provider CLIs found on this machine in their seat colors. Narrow terminals and terminals
74
- without UTF-8 use a short title; `NO_COLOR=1` disables color. Redirected output, CI, dumb
75
- terminals, MCP and JSON commands omit the decoration.
76
-
77
- ### Try the demo
78
-
79
- The demo uses scripted replies. It needs no provider account and makes no model calls.
80
-
81
- ```bash
82
- git clone https://github.com/prplkane/roundtable.git
83
- cd roundtable
84
- npm run fake
85
- ```
86
-
87
- The board opens at [localhost:4748](http://localhost:4748/). If no browser window appears,
88
- open that address yourself. The header identifies the session as **Demo**. Press Ctrl+C in
89
- the terminal to stop the server.
90
-
91
- ### Run a live review
92
-
93
- Install and sign in to a supported CLI, or configure an OpenAI-compatible endpoint using
94
- the [provider setup guide](docs/workflow.md). CLI seats use your existing logins; hosted API
95
- endpoints have separate billing.
96
-
97
- **Antigravity and your Google account:** Google's [Antigravity FAQ](https://antigravity.google/docs/faq)
98
- says wrapping `agy` inside third-party applications is not supported under consumer plans,
99
- and that third-party access can lead to suspension or termination of the account. Roundtable
100
- runs `agy -p` in that way. It sends nothing to `agy`, not even a model-list or quota read,
101
- until you acknowledge this once on an Antigravity card; an agent request must send
102
- `options.acknowledgeTermsRisk: true` itself. Check your plan's terms, or use another provider.
103
-
104
- ```bash
105
- npm run doctor
106
- npm start
107
- ```
108
-
109
- Open [localhost:4747](http://localhost:4747/). The header identifies the session as **Live**.
110
- Start with two seats and one critique round; see the [first test-drive checklist](docs/workflow.md#a-first-live-test-drive)
111
- for a complete walkthrough. `npm run doctor` checks setup without making model calls.
112
-
113
- After updating, stop the running server with Ctrl+C, run `npm start` again and refresh the
114
- page. Refreshing the browser alone does not load an updated server or model list.
115
-
116
- ## Controls and limits
117
-
118
- | Control | Behavior |
119
- | --- | --- |
120
- | Answer questions | Add context before the discussion continues. Agent notes and your notes are labelled separately. |
121
- | Finish with verdict | End the discussion and request a recommendation from the completed replies. Available after a usable round. |
122
- | Stop | Cancel the discussion and any active chairman call. Saved replies and reported usage remain. |
123
- | Delete / Clear | Remove finished and interrupted history while protecting running sessions. Exports and local usage statistics are retained. |
124
-
125
- Set round, time and provider budget limits before starting. Budget checks run before each
126
- attempt, including retries. If a provider omits token usage while a token cap is set, further
127
- calls to that provider are blocked. Calls already running can exceed estimates; these checks
128
- are not guaranteed billing ceilings.
129
-
130
- ## Records and privacy
131
-
132
- - **Local storage:** history is saved outside the checkout in the OS user-data folder, with
133
- separate live and demo directories. The board shows the active location under **Local data
134
- and backups**. Stop the server before copying or moving that folder.
135
- - **Recovery and export:** saved reviews can be reopened after a restart. Interrupted writes
136
- retain a backup before recovery. Markdown exports include the recommendation, dissent,
137
- human decision, notes and reported usage.
138
- - **Provider access:** live reviews send relevant notes and replies to the selected providers.
139
- Local storage and stateless requests do not control provider retention. CLI tool restrictions
140
- depend on the installed CLI and are not an operating-system sandbox.
141
-
142
- Records, exports and browser preferences may contain private context. See [SECURITY.md](SECURITY.md)
143
- for credentials, billing, endpoint restrictions and the local HTTP boundary. If a request
144
- fails, use **Save error log** and keep its reference ID; diagnostic logs stay local and omit
145
- review text, credentials and personal paths.
146
-
147
- ## Automation and commands
148
-
149
- ```bash
150
- node src/cli.js agent --help
151
- ```
152
-
153
- The JSON client provides `status`, `check`, `start`, `wait` and `answer` commands, plus controls
154
- to finish or stop a review. Questions remain paused until answered, explicitly skipped or
155
- their answer window expires (two minutes by default). Silence continues with unknowns intact.
156
- See the [agent workflow](docs/workflow.md#8-run-a-debate-without-the-browser)
157
- for request examples and response fields.
158
-
159
- | Command | Purpose |
160
- | --- | --- |
161
- | `npm run fake` | Open the scripted demo on port 4748. |
162
- | `npm start` | Open the live board on port 4747. |
163
- | `npm run doctor` | Check installed providers and available status without model calls. |
164
- | `roundtable setup --client all` | Connect MCP tools and the skill across projects for Codex, Claude and AGY. |
165
- | `roundtable server status` | Inspect the background board; `stop` and `restart` refuse active reviews. |
166
- | `roundtable mcp` | Serve the agent workflow over MCP stdio. |
167
- | `npm run export -- <debate> <folder>` | Export a decision record and update its index. |
168
- | `npm test` | Run offline unit and integration tests, without vendor CLIs or model calls. |
169
-
170
- ## Documentation
171
-
172
- - [User guide](docs/workflow.md): setup, providers, limits, backup, recovery and troubleshooting
173
- - [Security](SECURITY.md): data handling and private vulnerability reporting
174
- - [Contributing](CONTRIBUTING.md): development and review requirements
175
- - [Changelog](CHANGELOG.md): changes by version
176
-
177
- ## Feedback and support
178
-
179
- Ask questions, report bugs or suggest changes through [GitHub Issues](https://github.com/prplkane/roundtable/issues).
180
- For a bug, include your OS, Node and provider CLI versions, steps to reproduce, and the error
181
- reference if available. Exclude credentials and private review content. Support is best effort.
182
- Report security issues through the [private reporting channel](https://github.com/prplkane/roundtable/security/advisories/new).
183
-
184
- If Roundtable is useful to you, consider starring the repository.
185
- Maintained by [prplkane](https://github.com/prplkane).
186
-
187
- ## License
188
-
189
- [MIT](LICENSE).
1
+ # Roundtable
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@prplkane/roundtable)](https://www.npmjs.com/package/@prplkane/roundtable)
4
+ [![tests](https://github.com/prplkane/roundtable/actions/workflows/test.yml/badge.svg)](https://github.com/prplkane/roundtable/actions/workflows/test.yml)
5
+ [![Node.js](https://img.shields.io/node/v/@prplkane/roundtable)](package.json)
6
+ [![license](https://img.shields.io/npm/l/@prplkane/roundtable)](LICENSE)
7
+
8
+ Run decision reviews with multiple AI agents and export the outcome as Markdown.
9
+
10
+ Give the agents a question, alternatives and constraints. Each takes an independent position,
11
+ then critiques the others. A chairman recommends an option and records the dissent. You can
12
+ answer questions during the review and record your own decision at the end.
13
+
14
+ Roundtable runs on Node.js 22 or newer and stores reviews on your machine. Live seats use
15
+ your chosen providers and their billing. This developer preview supports the following workflows.
16
+
17
+ ## Review in the browser
18
+
19
+ Try a review with scripted seats and no provider account:
20
+
21
+ ```sh
22
+ npx @prplkane/roundtable fake
23
+ ```
24
+
25
+ On the [demo board](http://localhost:4748/), enter a decision and at least two options.
26
+ Choose seats with different perspectives, such as cost and risk. Open the table, answer
27
+ the seats' questions, then read the recommendation. You can export it with your decision.
28
+
29
+ ![Browser demo with two questions awaiting answers and three seats split between shipping now and waiting a sprint](docs/images/board-questions.png)
30
+
31
+ For live reviews, sign in to the provider CLIs you use and create their AgentLink
32
+ profiles once. The browser and the Codex workflow use the same profiles.
33
+
34
+ ```sh
35
+ npm install -g @prplkane/roundtable @prplkane/agentlink@0.3.0-beta.3
36
+ agentlink add codex --provider codex
37
+ agentlink add claude --provider claude
38
+ agentlink add agy --provider antigravity
39
+ roundtable
40
+ ```
41
+
42
+ On the [live board](http://localhost:4747/), choose a profile for each seat and the
43
+ chairman. Leave Model and Effort blank to follow the profile defaults. Choose **Load
44
+ profile models** to see the available choices and **Refresh profile models** after a
45
+ provider update. To set a default once for every project, inspect the IDs with
46
+ `agentlink models PROFILE`, then use `agentlink defaults PROFILE --model MODEL_ID --effort EFFORT_ID`.
47
+ Roundtable displays the advertised names and sends the IDs for seat-specific overrides.
48
+ Direct CLI seats and OpenAI-compatible endpoints are also available.
49
+ A searcher can gather cited sources for every seat before the first round. For provider setup
50
+ and a first live run, see the [test-drive guide](docs/workflow.md#a-first-live-test-drive).
51
+
52
+ ## Review in Codex with AgentLink seats
53
+
54
+ Codex coordinates the review through Roundtable's Model Context Protocol (MCP) tools.
55
+ Each seat runs through a named AgentLink profile using the Agent Client Protocol (ACP).
56
+ You can use the same profile for several seats or choose a different one for each.
57
+
58
+ Install both tools. This example uses Codex and Claude seats. Sign in to those CLIs and
59
+ configure trusted review profiles with their tools disabled before sending them a decision.
60
+
61
+ ```sh
62
+ npm install -g @prplkane/roundtable @prplkane/agentlink@0.3.0-beta.3
63
+ agentlink add risk-review --provider codex
64
+ agentlink add cost-review --provider claude
65
+ agentlink check risk-review
66
+ agentlink check cost-review
67
+ roundtable setup --client codex
68
+ ```
69
+
70
+ Restart Codex or reload its MCP connections. In any project, try:
71
+
72
+ > Use Roundtable to decide whether to run a small rollout trial or wait one sprint.
73
+ > Use the AgentLink profiles `risk-review` for risk and `cost-review` for cost.
74
+ > Use `risk-review` as chairman. Run one critique round and bring me the seats' questions.
75
+
76
+ Codex checks the request and relays questions and the final recommendation. ACP seats use
77
+ fresh sessions and the selected profile's permissions and billing. Confirm that you accept
78
+ limited isolation for these profiles before starting. [AgentLink setup and limits](docs/workflow.md#7c-agentlink-acp-profiles).
79
+
80
+ ![Board opened from the Codex review showing both AgentLink profiles, the recommendation to run a trial and the cost seat's dissent](docs/images/codex-agentlink-review.png)
81
+
82
+ In this offline example, Codex called `roundtable_check`, `roundtable_start` and
83
+ `roundtable_wait`. Two scripted AgentLink seats completed five calls including the chairman.
84
+ The screenshot shows the finished board linked from the tool result.
85
+
86
+ To verify the connection, run `roundtable setup --client codex --check`. After updating,
87
+ rerun setup and use `roundtable server restart` when the board is idle. The
88
+ [assistant setup guide](docs/workflow.md#connect-an-assistant-for-every-project) also covers
89
+ Claude, Antigravity and installation from a checkout.
90
+
91
+ **Provider availability:** some vendors or models are unavailable in certain regions. Regional
92
+ network paths can also interrupt replies even when login succeeds. Check the
93
+ [availability and network guidance](docs/workflow.md#provider-availability-and-network-access)
94
+ before your first live review.
95
+
96
+ **Antigravity and your Google account:** Google's [Antigravity FAQ](https://antigravity.google/docs/faq)
97
+ says wrapping `agy` inside third-party applications is not supported under consumer plans,
98
+ and that third-party access can lead to suspension or termination of the account. Roundtable
99
+ runs `agy -p` in that way. It sends nothing to `agy`, not even a model-list or quota read,
100
+ until you acknowledge this once on an Antigravity card; an agent request must send
101
+ `options.acknowledgeTermsRisk: true` itself. Check your plan's terms, or use another provider.
102
+
103
+ ## Controls and limits
104
+
105
+ | Control | Behavior |
106
+ | --- | --- |
107
+ | Answer questions | Add context before the discussion continues. Your notes, answers your assistant relayed for you, and the assistant's own notes are labelled separately. |
108
+ | Finish with verdict | End the discussion and request a recommendation from the completed replies. Available after a usable round. |
109
+ | Stop | Cancel the discussion and any active chairman call. Saved replies and reported usage remain. |
110
+ | Delete / Clear | Remove finished and interrupted history while protecting running sessions. Exports and local usage statistics are retained. |
111
+
112
+ Set round, time and provider budget limits before starting. Budget checks run before each
113
+ attempt, including retries. If a provider omits token usage while a token cap is set, further
114
+ calls to that provider are blocked. Calls already running can exceed estimates; these checks
115
+ are not guaranteed billing ceilings.
116
+
117
+ ## Records and privacy
118
+
119
+ - Usage statistics stay on your machine. Roundtable sends no analytics to its developers.
120
+ - **Local storage:** history is saved outside the checkout in the OS user-data folder, with
121
+ separate live and demo directories. The board shows the active location under **Local data
122
+ and backups**. Stop the server before copying or moving that folder.
123
+ - **Recovery and export:** saved reviews can be reopened after a restart. Interrupted writes
124
+ retain a backup before recovery. Markdown exports include the recommendation, dissent,
125
+ human decision, notes and reported usage.
126
+ - **Provider access:** live reviews send relevant notes and replies to the selected providers.
127
+ Local storage and stateless requests do not control provider retention. CLI tool restrictions
128
+ depend on the installed CLI and are not an operating-system sandbox.
129
+
130
+ Records, exports and browser preferences may contain private context. See [SECURITY.md](SECURITY.md)
131
+ for credentials, billing, endpoint restrictions and the local HTTP boundary. If a request
132
+ fails, use **Save error log** and keep its reference ID; diagnostic logs stay local and omit
133
+ review text, credentials and personal paths.
134
+
135
+ ## Automation and commands
136
+
137
+ ```bash
138
+ node src/cli.js agent --help
139
+ ```
140
+
141
+ The JSON client provides `status`, `check`, `start`, `wait` and `answer` commands, plus controls
142
+ to finish or stop a review. Questions remain paused until answered, explicitly skipped or
143
+ their answer window expires (two minutes by default). Silence continues with unknowns intact.
144
+ See the [agent workflow](docs/workflow.md#8-run-a-debate-without-the-browser)
145
+ for request examples and response fields.
146
+
147
+ | Command | Purpose |
148
+ | --- | --- |
149
+ | `npm run fake` | Open the scripted demo on port 4748. |
150
+ | `npm start` | Open the live board on port 4747. |
151
+ | `npm run doctor` | Check installed providers and available status without model calls. |
152
+ | `roundtable setup --client all` | Connect MCP tools and the skill across projects for Codex, Claude and AGY. |
153
+ | `roundtable server status` | Inspect the background board; `stop` and `restart` refuse active reviews. |
154
+ | `roundtable mcp` | Serve the agent workflow over MCP stdio. |
155
+ | `roundtable --version` | Print the installed version. `roundtable --help` lists every command. |
156
+ | `npm run export -- <debate> <folder>` | Export a decision record and update its index. |
157
+ | `npm test` | Run offline unit and integration tests, without vendor CLIs or model calls. |
158
+
159
+ Interactive `roundtable --help`, `roundtable` and `roundtable fake` show the app's pixel logo
160
+ tile in orchid, with the wordmark, a blinking cursor and the installed version beside it, then
161
+ the provider CLIs found on this machine in their seat colors. Narrow terminals and terminals
162
+ without UTF-8 use a short title; `NO_COLOR=1` disables color. Redirected output, CI, dumb
163
+ terminals, MCP and JSON commands omit the decoration.
164
+
165
+ ## Documentation
166
+
167
+ - [User guide](docs/workflow.md): setup, providers, limits, backup, recovery and troubleshooting
168
+ - [Security](SECURITY.md): data handling and private vulnerability reporting
169
+ - [Contributing](CONTRIBUTING.md): development and review requirements
170
+ - [Changelog](CHANGELOG.md): changes by version
171
+
172
+ ## Feedback and support
173
+
174
+ Ask questions, report bugs or suggest changes through [GitHub Issues](https://github.com/prplkane/roundtable/issues).
175
+ For a bug, include your OS, Node and provider CLI versions, steps to reproduce, and the error
176
+ reference if available. Exclude credentials and private review content. Support is best effort.
177
+ Report security issues through the [private reporting channel](https://github.com/prplkane/roundtable/security/advisories/new).
178
+
179
+ If Roundtable is useful to you, consider starring the repository.
180
+ Maintained by [prplkane](https://github.com/prplkane).
181
+
182
+ ## License
183
+
184
+ [MIT](LICENSE).