@prplkane/roundtable 0.6.6 → 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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 prplkane
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 prplkane
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,195 +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
- You can also choose **AgentLink (ACP)** for seats and the chairman, then enter a saved
16
- AgentLink profile name. Roundtable speaks standard ACP to the centrally installed
17
- launcher; AgentLink owns bridge installation and updates. This path uses stateless
18
- memory and has the selected profile's permissions and billing. See
19
- [AgentLink setup and limits](docs/workflow.md#7c-agentlink-acp-profiles-optional).
20
-
21
- **Requirements:** Node.js 22 or newer. No runtime dependencies. Live reviews use installed
22
- Claude, Codex or Antigravity CLIs, or an OpenAI-compatible endpoint for a local or hosted model.
23
-
24
- **Provider availability:** some vendors or models are unavailable in certain regions. Regional
25
- network paths can also interrupt replies even when login succeeds. Check the
26
- [availability and network guidance](docs/workflow.md#provider-availability-and-network-access)
27
- before your first live review.
28
-
29
- **Status:** early preview for developers. Feedback from real workflows is welcome. What does not
30
- work well yet is listed under [Known issues](docs/workflow.md#known-issues).
31
-
32
- ## How a review works
33
-
34
- 1. **Define the decision.** Add the alternatives, known facts and constraints. Choose two to
35
- eight participants, called seats, and give each a perspective such as risk, cost or evidence.
36
- Seats can use different models or share the same provider.
37
- 2. **Gather sources first (optional).** Add a searcher: one extra call, on the provider you
38
- pick. Its query starts from your question and options; review it or write a custom query.
39
- Every seat and the chairman then read the same cited sources. Other context and discussion
40
- answers stay out of research. The searcher never argues or votes.
41
- 3. **Collect independent positions.** Each seat answers before seeing the others' responses.
42
- The board then pauses for your input.
43
- 4. **Discuss the differences.** A critique round lets seats review the previous replies and
44
- revise their positions. Questions appear together so you can answer them in one place.
45
- 5. **Review the recommendation.** A designated chairman summarizes the discussion and its
46
- disagreements. Accept the recommendation or record a different decision, then export the
47
- record as Markdown.
48
-
49
- ## Quick start
50
-
51
- ### Connect your assistant once
52
-
53
- Install Roundtable globally, then connect your assistant:
54
-
55
- ```bash
56
- npm install -g @prplkane/roundtable
57
- roundtable setup --client codex
58
- ```
59
-
60
- Use `--client claude`, `--client agy`, or `--client all` for the other supported assistants.
61
- Restart the assistant or reload its MCP connections. In any project, ask **"Use Roundtable
62
- to review this decision."** The installed MCP tools start the local board as needed, return
63
- questions to the coordinating assistant, and wait for the chairman's recommendation.
64
- You do not need to open this repository or start a browser for each review.
65
-
66
- Setup installs a user-level workflow skill and MCP connection. `roundtable setup --client codex
67
- --check` checks it; `--remove` removes its unchanged entries. After updating Roundtable, rerun
68
- setup to refresh the skill, and use `roundtable server restart` once active reviews finish.
69
- No checkout is needed. To install a local checkout instead, run `npm pack` there and
70
- `npm install -g` with the printed `.tgz` filename; `npm install -g .` can create a link
71
- back to the checkout that breaks when it moves.
72
- See [assistant setup](docs/workflow.md#connect-an-assistant-for-every-project)
73
- for paths, demo mode and troubleshooting, or the [Linux walkthrough](docs/workflow.md#first-connection-on-linux).
74
- For a source snapshot before its npm release, use
75
- `npm install -g https://github.com/prplkane/roundtable/archive/refs/heads/main.tar.gz`.
76
-
77
- Interactive `roundtable --help`, `roundtable` and `roundtable fake` show the app's pixel logo
78
- tile in orchid, with the wordmark, a blinking cursor and the installed version beside it, then
79
- the provider CLIs found on this machine in their seat colors. Narrow terminals and terminals
80
- without UTF-8 use a short title; `NO_COLOR=1` disables color. Redirected output, CI, dumb
81
- terminals, MCP and JSON commands omit the decoration.
82
-
83
- ### Try the demo
84
-
85
- The demo uses scripted replies. It needs no provider account and makes no model calls.
86
-
87
- ```bash
88
- git clone https://github.com/prplkane/roundtable.git
89
- cd roundtable
90
- npm run fake
91
- ```
92
-
93
- The board opens at [localhost:4748](http://localhost:4748/). If no browser window appears,
94
- open that address yourself. The header identifies the session as **Demo**. Press Ctrl+C in
95
- the terminal to stop the server.
96
-
97
- ### Run a live review
98
-
99
- Install and sign in to a supported CLI, or configure an OpenAI-compatible endpoint using
100
- the [provider setup guide](docs/workflow.md). CLI seats use your existing logins; hosted API
101
- endpoints have separate billing.
102
-
103
- **Antigravity and your Google account:** Google's [Antigravity FAQ](https://antigravity.google/docs/faq)
104
- says wrapping `agy` inside third-party applications is not supported under consumer plans,
105
- and that third-party access can lead to suspension or termination of the account. Roundtable
106
- runs `agy -p` in that way. It sends nothing to `agy`, not even a model-list or quota read,
107
- until you acknowledge this once on an Antigravity card; an agent request must send
108
- `options.acknowledgeTermsRisk: true` itself. Check your plan's terms, or use another provider.
109
-
110
- ```bash
111
- npm run doctor
112
- npm start
113
- ```
114
-
115
- Open [localhost:4747](http://localhost:4747/). The header identifies the session as **Live**.
116
- Start with two seats and one critique round; see the [first test-drive checklist](docs/workflow.md#a-first-live-test-drive)
117
- for a complete walkthrough. `npm run doctor` checks setup without making model calls.
118
-
119
- After updating, stop the running server with Ctrl+C, run `npm start` again and refresh the
120
- page. Refreshing the browser alone does not load an updated server or model list.
121
-
122
- ## Controls and limits
123
-
124
- | Control | Behavior |
125
- | --- | --- |
126
- | 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. |
127
- | Finish with verdict | End the discussion and request a recommendation from the completed replies. Available after a usable round. |
128
- | Stop | Cancel the discussion and any active chairman call. Saved replies and reported usage remain. |
129
- | Delete / Clear | Remove finished and interrupted history while protecting running sessions. Exports and local usage statistics are retained. |
130
-
131
- Set round, time and provider budget limits before starting. Budget checks run before each
132
- attempt, including retries. If a provider omits token usage while a token cap is set, further
133
- calls to that provider are blocked. Calls already running can exceed estimates; these checks
134
- are not guaranteed billing ceilings.
135
-
136
- ## Records and privacy
137
-
138
- - **Local storage:** history is saved outside the checkout in the OS user-data folder, with
139
- separate live and demo directories. The board shows the active location under **Local data
140
- and backups**. Stop the server before copying or moving that folder.
141
- - **Recovery and export:** saved reviews can be reopened after a restart. Interrupted writes
142
- retain a backup before recovery. Markdown exports include the recommendation, dissent,
143
- human decision, notes and reported usage.
144
- - **Provider access:** live reviews send relevant notes and replies to the selected providers.
145
- Local storage and stateless requests do not control provider retention. CLI tool restrictions
146
- depend on the installed CLI and are not an operating-system sandbox.
147
-
148
- Records, exports and browser preferences may contain private context. See [SECURITY.md](SECURITY.md)
149
- for credentials, billing, endpoint restrictions and the local HTTP boundary. If a request
150
- fails, use **Save error log** and keep its reference ID; diagnostic logs stay local and omit
151
- review text, credentials and personal paths.
152
-
153
- ## Automation and commands
154
-
155
- ```bash
156
- node src/cli.js agent --help
157
- ```
158
-
159
- The JSON client provides `status`, `check`, `start`, `wait` and `answer` commands, plus controls
160
- to finish or stop a review. Questions remain paused until answered, explicitly skipped or
161
- their answer window expires (two minutes by default). Silence continues with unknowns intact.
162
- See the [agent workflow](docs/workflow.md#8-run-a-debate-without-the-browser)
163
- for request examples and response fields.
164
-
165
- | Command | Purpose |
166
- | --- | --- |
167
- | `npm run fake` | Open the scripted demo on port 4748. |
168
- | `npm start` | Open the live board on port 4747. |
169
- | `npm run doctor` | Check installed providers and available status without model calls. |
170
- | `roundtable setup --client all` | Connect MCP tools and the skill across projects for Codex, Claude and AGY. |
171
- | `roundtable server status` | Inspect the background board; `stop` and `restart` refuse active reviews. |
172
- | `roundtable mcp` | Serve the agent workflow over MCP stdio. |
173
- | `npm run export -- <debate> <folder>` | Export a decision record and update its index. |
174
- | `npm test` | Run offline unit and integration tests, without vendor CLIs or model calls. |
175
-
176
- ## Documentation
177
-
178
- - [User guide](docs/workflow.md): setup, providers, limits, backup, recovery and troubleshooting
179
- - [Security](SECURITY.md): data handling and private vulnerability reporting
180
- - [Contributing](CONTRIBUTING.md): development and review requirements
181
- - [Changelog](CHANGELOG.md): changes by version
182
-
183
- ## Feedback and support
184
-
185
- Ask questions, report bugs or suggest changes through [GitHub Issues](https://github.com/prplkane/roundtable/issues).
186
- For a bug, include your OS, Node and provider CLI versions, steps to reproduce, and the error
187
- reference if available. Exclude credentials and private review content. Support is best effort.
188
- Report security issues through the [private reporting channel](https://github.com/prplkane/roundtable/security/advisories/new).
189
-
190
- If Roundtable is useful to you, consider starring the repository.
191
- Maintained by [prplkane](https://github.com/prplkane).
192
-
193
- ## License
194
-
195
- [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).