antechamber 2.0.17 → 2.0.18

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/CHANGELOG.md CHANGED
@@ -7,6 +7,22 @@ and this project uses [Semantic Versioning](https://semver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.0.18] - 2026-11-27
11
+
12
+ ### Changed
13
+
14
+ - Installing the OpenChamber extension now sets antechamber up with no clicks in its panel: on OpenChamber 2.7+ the
15
+ extension's service starts as soon as it is approved, installs antechamber and OmO, and makes itself the OpenCode
16
+ CLI when none is set or another antechamber launcher is. It does this once; a CLI you pick later stays. The OmO
17
+ panel and the OmO Work section then ask for **Restart OpenCode** until antechamber runs. A custom OpenCode CLI is
18
+ left alone; the panel and the section show a **Use antechamber as OpenCode CLI** button instead of hiding it in the
19
+ panel's settings. Updating the extension asks you to approve its local service again, because it now keeps running.
20
+
21
+ ### Fixed
22
+
23
+ - An unreadable OpenChamber `settings.json` no longer crashes the extension's service (and with it the OmO Graph and
24
+ OmO Work); the panel and the section say what is wrong with the file instead.
25
+
10
26
  ## [2.0.17] - 2026-11-26
11
27
 
12
28
  ### Fixed
package/README.md CHANGED
@@ -1,370 +1,160 @@
1
1
  # antechamber
2
2
 
3
- A local OpenCode-compatible HTTP/SSE server that lets [OpenChamber](https://github.com/openchamber/openchamber) drive [OmO](https://github.com/code-yeongyu/oh-my-openagent) instead of OpenCode. Plain [pi](https://github.com/badlogic/pi-mono) also works as an opt-in backend.
3
+ **Run the [OmO](https://github.com/code-yeongyu/oh-my-openagent) coding agent inside
4
+ [OpenChamber](https://github.com/openchamber/openchamber).** antechamber stands in for OpenCode as OpenChamber's
5
+ server, so you keep OpenChamber's UI (sessions, tool cards, approvals, diffs) while every session runs on OmO.
4
6
 
5
7
  [![CI](https://github.com/eliottness/antechamber/actions/workflows/ci.yml/badge.svg)](https://github.com/eliottness/antechamber/actions/workflows/ci.yml)
8
+ [![npm](https://img.shields.io/npm/v/antechamber?style=flat&labelColor=100F0F&color=205EA6)](https://www.npmjs.com/package/antechamber)
6
9
  [![License](https://img.shields.io/github/license/eliottness/antechamber?style=flat&labelColor=100F0F&color=205EA6)](./LICENSE)
7
10
 
8
- ## What it is
9
-
10
- OpenChamber only speaks the OpenCode HTTP/SSE API. OmO (and pi, which it
11
- builds on) are headless agents with their own RPC protocol (JSONL over stdio). antechamber sits
12
- between them: it implements the subset of the OpenCode API that OpenChamber
13
- actually uses, and translates every call into an OmO RPC session.
14
-
15
- ```
16
- OpenChamber (UI) --OpenCode API (HTTP/SSE)--> antechamber --JSONL/stdio--> omo --mode rpc
17
- (one process per session)
18
- ```
19
-
20
- No fork of OpenChamber or pi is required. Point OpenChamber at antechamber as
21
- an **external OpenCode server** and sessions run on OmO.
22
-
23
- ## Features
24
-
25
- - Session create/list/rename/archive/delete, prompt streaming (text and
26
- reasoning deltas), and abort, mapped onto pi/OmO RPC sessions.
27
- - Tool calls rendered as native OpenChamber tool parts (bash, write, edit,
28
- and so on), including subagent/task cards.
29
- - Approvals and questions bridged through pi's extension-UI protocol.
30
- - OmO's todo list, grouped by phase, in the extension's OmO Work section.
31
- - Fork, revert, and unrevert backed by the agent's session tree, not a
32
- filesystem snapshot. Reverting changes conversation context only; it never
33
- touches files on disk.
34
- - Session diff endpoint (unified patch) independent of OpenChamber's own git
35
- integration.
36
- - Session persistence and revival across connector restarts, with explicit
37
- ownership tracking for detached task-host processes it spawned.
38
- - Idle reaping and a live-process cap (`ANTECHAMBER_MAX_LIVE`) so long-running
39
- deployments don't accumulate agent processes.
40
- - [One OpenChamber extension](#the-openchamber-extension) that installs and
41
- updates antechamber and OmO for you, draws the OmO sub-agents behind the open
42
- session as a live graph (**OmO Graph**), shows the todo phases and goal timer
43
- in the Work Status panel (**OmO Work**), and titles OmO's tool cards.
44
-
45
- ## Supported backends
46
-
47
- | Backend | Status |
48
- |---|---|
49
- | [OmO](https://github.com/code-yeongyu/oh-my-openagent) (`omo`, package `omo-ai`) | **default and supported**: titles, steering, subagent cards, structured questions, and private task-host teardown are built and tested against it |
50
- | [pi](https://github.com/badlogic/pi-mono) (`@earendil-works/pi-coding-agent`) | opt-in, best effort: set `ANTECHAMBER_PI_BINARY=pi`; OmO-specific features are unavailable |
51
-
52
- Each antechamber release depends on one exact `omo-ai` version and runs that
53
- OmO, so the pair you get is the pair that was tested together.
54
- `ANTECHAMBER_PI_BINARY` selects another executable; `omo` on `PATH` is the
55
- fallback when the pinned one is not installed (see
56
- [docs/configuration.md](docs/configuration.md)).
57
-
58
- ## Compatibility
59
-
60
- | OpenChamber | API | Status |
61
- |---|---|---|
62
- | >= 2.3.2 | v2 (`/api/*`) | supported; antechamber advertises `opencode v2.999.0` on `--version` |
63
- | other versions | - | not tested |
64
-
65
- OpenChamber changes which OpenCode API calls it makes between releases. If a
66
- feature breaks on a newer OpenChamber, run `npm run smoke` to see which check
67
- failed, then open an issue with the output. See
68
- [docs/api-surface.md](docs/api-surface.md) for the maintained route, response,
69
- and event-stream inventory.
11
+ [Quick start](#quick-start) · [Features](#features) · [How it works](#how-it-works) ·
12
+ [Configuration](#configuration) · [Docs](#documentation)
70
13
 
71
14
  ## Quick start
72
15
 
73
- Needs [Bun](https://bun.sh) 1.4+ on the machine OpenChamber runs on.
16
+ You need **OpenChamber 2.3.2+** (web or desktop) and **[Bun](https://bun.sh) 1.4+** on the machine OpenChamber runs on.
74
17
 
75
- ### As an OpenChamber extension (recommended)
18
+ 1. In OpenChamber, open **Settings → Extensions → Add → URL** and enter:
76
19
 
77
- 1. In OpenChamber 2.3.2 or newer, open **Settings → Extensions → Add → URL** and
78
- enter `https://github.com/eliottness/antechamber`.
79
- 2. Approve **sessions** and the **local service** (it runs `bun`).
80
- 3. Open the **OmO** rail panel's settings (the sliders icon). Once the **Runtime** block
81
- says antechamber is installed, click **Use as OpenCode CLI**, then **Reload OpenCode**
82
- in OpenChamber's OpenCode settings. A folder install shows the launcher path to paste
83
- into **Settings → OpenCode CLI** instead.
20
+ ```text
21
+ https://github.com/eliottness/antechamber
22
+ ```
84
23
 
85
- The launcher installs the antechamber release named by the extension's version,
86
- and the OmO it pins, into `~/.antechamber/runtime/<version>` the first time it
87
- starts. Updating the extension in Settings → Extensions is how antechamber and
88
- OmO are updated. Details: [extensions/antechamber/README.md](extensions/antechamber/README.md).
24
+ 2. Approve the two permissions it asks for: **sessions** and a **local service** (it runs `bun`).
25
+ 3. When the OmO Work section (in the chat's Work Status panel) or the **OmO** rail panel says so, click
26
+ **Restart OpenCode** in OpenChamber's **Settings → General → OpenCode CLI**.
89
27
 
90
- ### From npm
28
+ That's it: new sessions run on OmO. Right after approval the extension downloads the antechamber release matching its
29
+ version, and the OmO it pins, into `~/.antechamber/runtime/<version>`, then makes itself OpenChamber's OpenCode CLI.
30
+ If you had picked another OpenCode CLI yourself, it leaves it alone and shows a **Use antechamber as OpenCode CLI**
31
+ button in those two places instead. On OpenChamber older than 2.7, open the OmO panel once to start the setup. To
32
+ update antechamber and OmO, update the extension in **Settings → Extensions** when OpenChamber offers it.
33
+
34
+ **Other ways to install.** Prefer the CLI? Run the two commands below, then restart OpenChamber. For an isolated
35
+ profile, systemd, or a source checkout, see [docs/installation.md](docs/installation.md).
91
36
 
92
37
  ```bash
93
38
  npm i -g antechamber
94
- # or: bun add -g antechamber
95
- antechamber doctor
96
39
  antechamber setup --auto-update
97
40
  ```
98
41
 
99
- The npm package brings its pinned OmO along. `setup` updates OpenChamber's
100
- `opencodeBinary`, preserves all other settings, and backs up an existing
101
- settings file before changing it. Restart OpenChamber after setup. Preview
102
- changes with `antechamber setup --dry-run`.
103
-
104
- `--auto-update` keeps antechamber current without any action from you. It
105
- writes a small launcher, `~/.config/antechamber/opencode-antechamber`, and points
106
- OpenChamber at it. Each time OpenChamber starts antechamber, the launcher
107
- checks npm for a newer release once the server is up and installs it with the
108
- package manager that owns the global install. The new version runs from the
109
- next start; startup never waits on the network, and an offline start just
110
- skips the check. It needs a global npm or bun install, so it is refused for
111
- source checkouts and `npx`. Drop the flag (plain `antechamber setup`) to point
112
- OpenChamber back at the `antechamber` bin and stop auto-updates.
113
-
114
- `setup` ends by printing the bundled extension's folder (under
115
- `$(npm root -g)/antechamber/extensions/antechamber`); add it with
116
- **Settings → Extensions → Add → Folder** for the Graph, Work and tool headers.
117
- OpenChamber can keep using the npm-installed `antechamber` as its OpenCode CLI.
118
-
119
- For an isolated OpenChamber instance, leaving your main settings untouched:
120
-
121
- ```bash
122
- antechamber setup --profile ~/.config/antechamber-openchamber
123
- # setup prints the command for this profile:
124
- OPENCHAMBER_DATA_DIR=~/.config/antechamber-openchamber openchamber serve --port 57124
125
- ```
126
-
127
- For a systemd-managed OpenChamber, also capture the shell's PATH and the
128
- absolute OmO executable in a user service drop-in:
129
-
130
- ```bash
131
- antechamber setup --systemd
132
- # default unit: openchamber.service; another unit: --systemd my-openchamber.service
133
- systemctl --user daemon-reload && systemctl --user restart openchamber.service
134
- # or explicitly let setup run those commands:
135
- antechamber setup --systemd --restart
136
- ```
137
-
138
- `--pi-binary /absolute/path/to/omo` overrides backend discovery for the drop-in.
139
- Other drop-ins setting `ANTECHAMBER_*` or `OCPI_*` produce a warning: later
140
- files can override the generated configuration. `setup` never runs systemctl
141
- unless `--restart` is passed.
142
-
143
- OpenChamber spawns whatever `settings.opencodeBinary` points at as
144
- `serve --hostname H --port P`, waits for the stdout line
145
- `opencode server listening on <url>`, then health-checks `/global/health`.
146
- The installed `antechamber` bin implements this contract itself, including the
147
- `--version` compatibility probe. `bin/opencode-antechamber` is only needed for
148
- source checkouts; `bin/opencode-pi` remains a deprecated compatibility shim.
149
-
150
- You can also run antechamber directly, outside of OpenChamber's managed
151
- lifecycle:
152
-
153
- ```bash
154
- antechamber --port 4096 --host 127.0.0.1 --directory /path/to/project
155
- # or, OpenCode-compatible:
156
- antechamber serve --hostname 127.0.0.1 --port 4096
157
- ```
158
-
159
- ## Commands
42
+ ## Features
160
43
 
161
- | Command | Purpose / options |
44
+ | Feature | What you get |
162
45
  |---|---|
163
- | `antechamber serve` | OpenCode-compatible server; `--hostname`/`--host`, `--port`, `--directory`. Bare `antechamber` also starts the server. |
164
- | `antechamber setup` | Configure OpenChamber; `--settings <file>`, `--profile <dir>`, `--binary <path>`, `--dry-run`, `--systemd [unit]`, `--pi-binary <path>`, `--restart`, `--auto-update`. |
165
- | `antechamber doctor` | Read-only Bun, backend, agent/state directories, teardown, OpenChamber and auth checks, plus the installed, latest released and running adapter versions (a running server older than the install needs an OpenChamber restart); `--json`, `--settings <file>`, `--profile <dir>`. Exits 1 on any FAIL; warnings do not fail. |
166
- | `antechamber upgrade` | Install the latest release over a global npm or bun install, with the package manager that owns it. Refused for source checkouts, `npx`, and when the extension's launcher manages antechamber (see Upgrade, uninstall and rollback below). |
167
- | `antechamber version` | Package version plus OpenCode API contract version. `--version`/`-v` deliberately print exactly `opencode v2.999.0` for OpenChamber. |
168
- | `antechamber help` | Usage and options; also `--help`/`-h`. |
169
-
170
- ## Upgrade, uninstall and rollback
171
-
172
- With `setup --auto-update` there is nothing to do: each start installs the
173
- latest release for the next one. Otherwise:
174
-
175
- ```bash
176
- antechamber upgrade
177
- # equivalent: npm update -g antechamber (or: bun add -g antechamber)
178
- ```
179
-
180
- Restart OpenChamber, or `systemctl --user restart openchamber.service` for a
181
- managed service. Run `antechamber doctor` again. If the executable moved,
182
- rerun `antechamber setup`.
183
-
184
- OpenChamber can show an "OpenCode update" notice. Its **Update** button runs
185
- `<opencodeBinary> upgrade`: for an npm install that upgrades antechamber itself
186
- (a no-op when it is already current); for the extension's launcher it only says
187
- to update the extension in Settings → Extensions. Click **Reload OpenCode**
188
- afterwards to restart onto the new version.
189
-
190
- To roll back wiring, copy the backup printed by setup over the settings file:
191
-
192
- ```bash
193
- cp /path/settings.json.bak-antechamber-YYYYMMDDHHMMSS /path/settings.json
194
- ```
195
-
196
- If you used `--systemd`, restore the printed `antechamber.conf` backup, or
197
- remove only that generated drop-in if there was no previous file. Then run
198
- `systemctl --user daemon-reload` and restart OpenChamber/the service. Restore
199
- the old `opencodeBinary` before uninstalling:
200
-
201
- ```bash
202
- npm uninstall -g antechamber
203
- # or: bun remove -g antechamber
204
- ```
205
-
206
- ## From source
207
-
208
- ```bash
209
- git clone https://github.com/eliottness/antechamber.git
210
- cd antechamber
211
- npm ci
212
- npm run build
213
- bun dist/cli.js doctor
214
- bun dist/cli.js setup --binary "$PWD/bin/opencode-antechamber"
215
- # isolated alternative:
216
- bun dist/cli.js setup --profile ~/.config/antechamber-openchamber \
217
- --binary "$PWD/bin/opencode-antechamber"
46
+ | **Native OpenChamber sessions** | Create, rename, archive, delete; streamed text and reasoning; abort; model and thinking-level pickers. |
47
+ | **Tool and sub-agent cards** | bash, edit, write and the rest render as native tool parts; OmO sub-agents get task cards. |
48
+ | **Approvals and questions** | OmO's permission prompts and structured questions show up as OpenChamber's own dialogs. |
49
+ | **Fork, revert, unrevert** | Backed by the agent's session tree. Revert rewinds the conversation only and never touches your files. |
50
+ | **OmO Graph** | A rail panel (and full-screen page) drawing the open session's sub-agents as a live, clickable graph. |
51
+ | **OmO Work** | A Work Status section with the session's todo phases, goal timer and other wake sources. |
52
+ | **Readable tool headers** | Eval cells read `JS Eval` / `Python Eval` plus their summary; sub-agent cards show agent and description. |
53
+ | **Long-running friendly** | Sessions survive restarts; idle sessions are reaped and live agent processes are capped. |
54
+
55
+ ## How it works
56
+
57
+ OpenChamber only speaks the OpenCode HTTP/SSE API. OmO is a headless agent with its own RPC protocol (JSONL over
58
+ stdio). antechamber implements the part of the OpenCode API that OpenChamber uses and translates each call into an OmO
59
+ RPC session, one agent process per session. No fork of OpenChamber or OmO is involved.
60
+
61
+ ```mermaid
62
+ flowchart LR
63
+ UI["OpenChamber<br/>(UI)"] -- "OpenCode API<br/>HTTP / SSE" --> A["antechamber"]
64
+ A -- "JSONL over stdio" --> O1["omo --mode rpc<br/>session 1"]
65
+ A -- "JSONL over stdio" --> O2["omo --mode rpc<br/>session 2"]
218
66
  ```
219
67
 
220
- Building needs Node.js 22+ for the development tooling; the built CLI runs on
221
- Bun. The source launcher requires the built `dist/cli.js` and finds Bun on PATH,
222
- in `$BUN_INSTALL/bin` or in `~/.bun/bin`. Pull updates, run
223
- `npm ci && npm run build`, and restart OpenChamber.
224
-
225
- `npm run build` also builds the extension; `setup` prints its folder
226
- (`$PWD/extensions/antechamber`) to add in **Settings → Extensions → Add →
227
- Folder**. To run a checkout through the extension's launcher instead, `npm pack`
228
- it and set `ANTECHAMBER_RUNTIME_SPEC` to the tarball in OpenChamber's
229
- environment.
230
-
231
- ## The OpenChamber extension
68
+ Each antechamber release depends on one exact OmO (`omo-ai`) version, so the pair you run is the pair that was tested
69
+ together. Design notes: [docs/architecture.md](docs/architecture.md).
232
70
 
233
- `extensions/antechamber` is one OpenChamber 2.3.2+ extension (web and desktop;
234
- VS Code and mobile load no extensions). It replaces the OmO Graph, OmO Work and
235
- OmO Compatibility extensions of antechamber 1.x: remove those, then add this
236
- one.
71
+ ### Compatibility
237
72
 
238
- | Part | What it does |
73
+ | Component | Supported |
239
74
  |---|---|
240
- | Runtime | `bin/opencode-antechamber`, OpenChamber's OpenCode CLI: installs and runs the pinned antechamber and OmO with Bun |
241
- | OmO Graph | a rail panel (and page) drawing the open session's OmO sub-agents as a live, clickable graph |
242
- | OmO Work | a Work Status section with the session's todo phases, goal timer and other wake sources |
243
- | Tool headers | eval cells read `JS Eval`/`Python Eval` and their summary; sub-agent cards read their agent and description |
244
-
245
- Add it from **Settings → Extensions → Add**:
246
-
247
- | Source | Add | Updates |
248
- |---|---|---|
249
- | **URL** (Git, recommended) | `https://github.com/eliottness/antechamber` (the repository root is the extension), or `…#extension/antechamber` for a clone of just the extension | OpenChamber offers **Update** after each release |
250
- | **Folder** | `extensions/antechamber` of an npm install or a built checkout | changes with the installation |
251
- | **ZIP** | `antechamber-openchamber.zip` from a GitHub release, or `npm run build && npm run pack:extension -- out.zip` | never; reinstall the new archive |
252
-
253
- Both URLs install the same extension: the root `package.json` carries its
254
- manifest, pointing into `extensions/antechamber/`, whose built files are
255
- committed. It asks
256
- for **sessions** and a **local service** (`bun`). Details, data paths and the
257
- design: [extensions/antechamber/README.md](extensions/antechamber/README.md),
258
- [docs/GRAPH.md](extensions/antechamber/docs/GRAPH.md),
259
- [docs/WORK.md](extensions/antechamber/docs/WORK.md).
75
+ | OpenChamber | 2.3.2 and newer (OpenCode v2 `/api/*`); other versions are not tested |
76
+ | Agent | [OmO](https://github.com/code-yeongyu/oh-my-openagent) (default). Plain [pi](https://github.com/badlogic/pi-mono) works best-effort with `ANTECHAMBER_PI_BINARY=pi`, without the OmO-specific features |
77
+ | OS | Linux (primary) and macOS; elsewhere OmO task-host teardown is skipped with a warning ([details](docs/installation.md#platform-support)) |
78
+ | Runtime | Bun 1.4+; building from source also needs Node.js 22+ |
79
+
80
+ If something breaks on a newer OpenChamber, `antechamber doctor` and `npm run smoke` help narrow it down; please
81
+ [open an issue](https://github.com/eliottness/antechamber/issues) with the output. The implemented routes are listed in
82
+ [docs/api-surface.md](docs/api-surface.md).
260
83
 
261
84
  ## Configuration
262
85
 
263
- Connector settings use the `ANTECHAMBER_` prefix; the deprecated `OCPI_`
264
- prefix is still accepted as a fallback. RPC capability passthrough also reads
265
- `OMO_RPC_CLIENT_CAPABILITIES` and `SENPI_RPC_CLIENT_CAPABILITIES` directly.
266
- Full reference, defaults, and units:
267
- [docs/configuration.md](docs/configuration.md).
86
+ The defaults work for a local install. Settings are environment variables with the `ANTECHAMBER_` prefix (the old
87
+ `OCPI_` prefix still works). The common ones:
268
88
 
269
89
  | Variable | Purpose |
270
90
  |---|---|
271
- | `ANTECHAMBER_PI_BINARY` | agent executable to spawn (default `omo`; set to `pi` for plain pi) |
91
+ | `ANTECHAMBER_PI_BINARY` | agent executable to spawn (default: the pinned `omo`; `pi` for plain pi) |
272
92
  | `ANTECHAMBER_PI_ARGS` | extra whitespace-split args passed to that binary |
273
93
  | `ANTECHAMBER_STATE_DIR` | session registry directory |
274
- | `ANTECHAMBER_AGENT` | agent name override advertised to OpenChamber |
275
94
  | `ANTECHAMBER_IDLE_TIMEOUT_MS` | idle session reap timeout |
276
95
  | `ANTECHAMBER_MAX_LIVE` | cap on concurrent live agent processes |
277
96
  | `ANTECHAMBER_DEBUG` / `ANTECHAMBER_DEBUG_LOG` | request/event debug logging |
278
- | `OMO_RPC_CLIENT_CAPABILITIES` / `SENPI_RPC_CLIENT_CAPABILITIES` | inherited RPC capabilities merged for the agent process |
97
+
98
+ Full reference with defaults and units: [docs/configuration.md](docs/configuration.md).
279
99
 
280
100
  ## Security
281
101
 
282
- antechamber is a local development tool: by default it binds to loopback
283
- with no authentication, and it can run arbitrary shell commands on behalf of
284
- the agent. Treat it the same way you'd treat a local dev server with shell
285
- access, not a service to expose on a network.
286
-
287
- Hardening controls (full reference in [docs/configuration.md](docs/configuration.md#security)):
288
-
289
- - Optional HTTP Basic auth, matching OpenCode's own contract:
290
- `OPENCODE_SERVER_PASSWORD` (plus `OPENCODE_SERVER_USERNAME`, default
291
- `opencode`).
292
- - Without a password, browser origins are limited to the adapter's own origin,
293
- HTTP(S) loopback origins (including a different loopback port), and origins
294
- listed in `ANTECHAMBER_ALLOWED_ORIGINS`; other origins get `403`. With a
295
- password, other origins may make authenticated requests but receive no CORS
296
- headers unless explicitly allowed.
297
- - Binding to a non-loopback host requires a password, `ANTECHAMBER_ALLOW_INSECURE=1`,
298
- or the `--insecure-no-auth` flag.
299
- - Request bodies are capped by `ANTECHAMBER_MAX_BODY_BYTES` (default 10 MiB);
300
- SSE subscribers, file search and agent RPC frames have fixed bounds.
301
-
302
- ## Platform notes
303
-
304
- Linux is the primary supported platform. OmO's private task-host teardown
305
- (killing detached supervisor processes antechamber spawned) uses Linux
306
- pidfds (`os.pidfd_open`, Linux 5.3+) and `python3` on PATH, because Node has no pidfd
307
- API; on Linux it never signals a numeric PID. macOS has no pidfd, so there it
308
- reads `/bin/ps` and `/usr/sbin/lsof` and signals each owned process by PID after
309
- re-checking its process group and start time (see
310
- [the OmO backend notes](docs/backends/omo.md#private-task-host-teardown)). CI runs the suite on
311
- macOS. On other platforms that teardown step is skipped with one warning instead of crashing.
312
-
313
- ## Limitations / non-goals
314
-
315
- - Not a reimplementation of OpenChamber's own platform features (scheduler,
316
- relay, goals). Those stay in OpenChamber.
317
- - Not a way to use pi/OmO as an LLM provider inside OpenCode. pi/OmO are full
318
- agents with their own loop; antechamber adapts at the session-protocol
319
- level, not the model level.
320
- - Some OpenCode routes have no pi/OmO equivalent and are stubbed or return
321
- `400`/`501` (OAuth-based provider auth, MCP connect/disconnect, session
322
- share). See [docs/api-surface.md](docs/api-surface.md) for the maintained
323
- route and unsupported-response inventory.
324
-
325
- ## Development
102
+ antechamber is a local development tool that runs shell commands on the agent's behalf. Treat it like a local dev server
103
+ with shell access, not a network service.
326
104
 
327
- ```bash
328
- npm run typecheck
329
- npm test
330
- npm run build
331
- ```
105
+ - It binds to loopback with no authentication by default.
106
+ - Set `OPENCODE_SERVER_PASSWORD` (and optionally `OPENCODE_SERVER_USERNAME`) for HTTP Basic auth, matching OpenCode's
107
+ own contract. Binding a non-loopback host requires a password or an explicit `--insecure-no-auth`.
108
+ - Without a password, browser requests are accepted only from loopback origins and `ANTECHAMBER_ALLOWED_ORIGINS`.
109
+
110
+ Details: [docs/configuration.md#security](docs/configuration.md#security). To report a vulnerability, see
111
+ [SECURITY.md](SECURITY.md).
332
112
 
333
- The smoke scripts (`npm run smoke`, `npm run omo-smoke`, `npm run probe`,
334
- `npm run model-smoke`, `npm run v2-smoke`) drive a real `omo` (or `pi`)
335
- process end to end and cost model tokens; they are not part of `npm test`
336
- and are not run in CI. See [docs/development.md](docs/development.md).
113
+ ## Limitations
337
114
 
338
- Every commit on `main` is released as a new patch version: CI runs the checks,
339
- bumps the package and extension versions, tags, publishes to npm with
340
- provenance and creates the GitHub release from the CHANGELOG. See
341
- [RELEASE.md](RELEASE.md).
115
+ - It does not reimplement OpenChamber's own platform features (scheduler, relay, goals); those stay in OpenChamber.
116
+ - It is not a way to use OmO as a model provider inside OpenCode: OmO is a full agent, and antechamber adapts it at the
117
+ session level.
118
+ - OpenCode features with no OmO equivalent (OAuth provider login, MCP connect/disconnect, session sharing) are stubbed
119
+ or return `400`/`501` instead of pretending to work. See [docs/api-surface.md](docs/api-surface.md).
342
120
 
343
- ## Docs
121
+ ## Documentation
344
122
 
345
- - [docs/architecture.md](docs/architecture.md) - design and session-model mapping
346
- - [docs/api-surface.md](docs/api-surface.md) - OpenCode endpoints implemented, stubbed, or unsupported
347
- - [docs/configuration.md](docs/configuration.md) - full environment variable reference
348
- - [docs/development.md](docs/development.md) - source layout, testing, smoke scripts
349
- - [docs/backends/omo.md](docs/backends/omo.md) - OmO backend details (agent name, task hosts, transcripts)
350
- - [RELEASE.md](RELEASE.md) - automatic patch releases to npm and GitHub on every push to `main`
123
+ | Doc | What's in it |
124
+ |---|---|
125
+ | [Installation](docs/installation.md) | npm, source, systemd, standalone server, CLI commands, upgrade and rollback |
126
+ | [The OpenChamber extension](extensions/antechamber/README.md) | runtime launcher, [OmO Graph](extensions/antechamber/docs/GRAPH.md), [OmO Work](extensions/antechamber/docs/WORK.md), tool headers |
127
+ | [Configuration](docs/configuration.md) | every environment variable, `setup` and `doctor` behavior, security controls |
128
+ | [OmO backend](docs/backends/omo.md) | session tree, child transcripts, task-host teardown, systemd example |
129
+ | [Architecture](docs/architecture.md) | design and how OpenCode sessions map onto OmO |
130
+ | [API surface](docs/api-surface.md) | OpenCode routes implemented, stubbed or unsupported |
131
+ | [Development](docs/development.md) | source layout, tests, smoke scripts |
132
+ | [Releasing](RELEASE.md) | every push to `main` ships a patch release to npm and GitHub |
133
+
134
+ ## Contributing
135
+
136
+ Issues and pull requests are welcome; start with [CONTRIBUTING.md](CONTRIBUTING.md). The basics:
137
+
138
+ ```bash
139
+ npm ci
140
+ npm run check # typecheck, lint, format, dead-code check, tests
141
+ npm run build
142
+ ```
351
143
 
352
- - [extensions/antechamber/README.md](extensions/antechamber/README.md) - the OpenChamber extension: runtime launcher, OmO Graph ([design](extensions/antechamber/docs/GRAPH.md)), OmO Work ([design](extensions/antechamber/docs/WORK.md)) and tool headers
144
+ The smoke scripts (`npm run smoke`, `npm run omo-smoke`, ...) drive a real agent and cost model tokens, so they are not
145
+ part of `npm test` or CI. See [docs/development.md](docs/development.md).
353
146
 
354
147
  ## Credits
355
148
 
356
- antechamber began as a fork of
357
- [openchamber-pi-connector](https://github.com/qingzhu521/openchamber-pi-connector)
358
- by qingzhu521 (xiuli.qz), released under the MIT license, and was substantially
359
- extended from there (OpenCode v2 API support, OmO support, session fork/revert,
360
- subagent and task cards, approvals, todos, thinking levels, shell runs, diffs,
361
- session persistence, lifecycle caps, and more).
149
+ antechamber began as a fork of [openchamber-pi-connector](https://github.com/qingzhu521/openchamber-pi-connector) by
150
+ qingzhu521 (xiuli.qz), released under the MIT license, and has since been substantially extended (OpenCode v2 API, OmO
151
+ support, fork/revert, sub-agent and task cards, approvals, todos, thinking levels, shell runs, diffs, persistence,
152
+ lifecycle caps, the OpenChamber extension, and more).
362
153
 
363
- Also relies on [OpenChamber](https://github.com/openchamber/openchamber),
364
- [OmO](https://github.com/code-yeongyu/oh-my-openagent) by code-yeongyu, and
365
- [pi](https://github.com/badlogic/pi-mono) by badlogic / earendil.
154
+ It builds on [OpenChamber](https://github.com/openchamber/openchamber), [OmO](https://github.com/code-yeongyu/oh-my-openagent)
155
+ by code-yeongyu, and [pi](https://github.com/badlogic/pi-mono) by badlogic / earendil.
366
156
 
367
157
  ## License
368
158
 
369
- MIT. See [LICENSE](./LICENSE), which retains the original
370
- openchamber-pi-connector copyright notice alongside the antechamber one.
159
+ MIT. See [LICENSE](./LICENSE), which keeps the original openchamber-pi-connector copyright notice alongside
160
+ antechamber's.
@@ -29,12 +29,20 @@ It replaces the separate OmO Graph, OmO Work and OmO Compatibility extensions of
29
29
  installs the same extension from a branch holding only its files.
30
30
  2. Approve what it asks for: **sessions**, to follow the open session and open sub-agent sessions, and **a local
31
31
  service that runs `bun`**, which installs the runtime and reads the OmO task store and antechamber's run records.
32
- 3. Open the **OmO** rail panel's settings (the sliders icon). The **Runtime** block shows the install; the service
33
- starts it as soon as a panel or the Work section opens.
34
- 4. Click **Use as OpenCode CLI**, then **Reload OpenCode**. The service sets `opencodeBinary` in OpenChamber's
35
- `settings.json` to the launcher (keeping a `settings.json.bak-antechamber-<stamp>` copy); OpenChamber reads it each
36
- time it starts OpenCode. A folder install has no OpenChamber data dir around it, so the block shows the launcher
37
- path to paste into **Settings → OpenCode CLI** instead.
32
+ 3. Click **Restart OpenCode** in OpenChamber's **Settings → General → OpenCode CLI** when the OmO Work section or the OmO panel
33
+ asks for it.
34
+
35
+ The service runs from approval on (`keepRunning`; OpenChamber 2.7+, older hosts start it when the panel or the Work
36
+ section first opens). It installs the runtime, then sets `opencodeBinary` in OpenChamber's `settings.json` to the
37
+ launcher, keeping a `settings.json.bak-antechamber-<stamp>` copy. It does so unasked once per install location, and
38
+ only when `opencodeBinary` is unset or names another `opencode-antechamber` launcher (an older install, a checkout, or
39
+ the npm `--auto-update` launcher); a CLI you picked yourself, then or later, stays until you press **Use antechamber
40
+ as OpenCode CLI**. OpenChamber reads the setting each time it starts OpenCode, so the OmO panel and the Work section
41
+ ask for **Restart OpenCode** until the launcher has started once since the switch; the launcher records its starts,
42
+ and the service its switch, under `~/.antechamber/launches/`. They show nothing once antechamber runs. A folder
43
+ install has no OpenChamber data dir around it, so they show the launcher path to paste into **Settings → General →
44
+ OpenCode CLI** instead. The panel's settings (the sliders icon) list the installed versions, and the launcher path
45
+ while it is not the OpenCode CLI.
38
46
 
39
47
  Other ways to add it: a **Folder** (`extensions/antechamber` of an npm install or a built checkout; `antechamber
40
48
  setup` prints it), or the release **ZIP**
@@ -57,6 +65,9 @@ OpenChamber offers it under **Update** in Settings → Extensions. Updating the
57
65
  OmO: the next time OpenChamber starts its server, the launcher installs the new pair. OpenChamber's own OpenCode
58
66
  Update action runs the launcher's `upgrade`, which only points here.
59
67
 
68
+ Updating from a release before 2.0.18 asks you to approve the local service again, because it now keeps running with
69
+ OpenChamber (`keepRunning`) and OpenChamber 2.7+ shows that in its approval.
70
+
60
71
  The previous runtime stays installed for an adapter that is still running from it; older ones are removed.
61
72
 
62
73
  ## Settings
@@ -83,7 +94,7 @@ OpenChamber --spawn--> bin/opencode-antechamber --exec--> bun <runtime>/node_mod
83
94
  panel / section (sandboxed iframes) --serviceRequest--> OpenChamber host --loopback + token--> service/main.js
84
95
  /graph reads the OmO task store and the session registry
85
96
  /status relays antechamber's /antechamber/work-status routes
86
- /runtime reports and starts the runtime install
97
+ /runtime reports the runtime, installs it, sets the CLI
87
98
  ```
88
99
 
89
100
  The launcher and the service share one install: a lock directory beside the runtime lets whichever starts first
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antechamber-openchamber",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "description": "OpenChamber extension for antechamber: installs and pins the antechamber server and OmO, draws the OmO Graph and the OmO Work section, and titles OmO tool cards",
5
5
  "private": true,
6
6
  "type": "module",
@@ -32,6 +32,7 @@
32
32
  "service": {
33
33
  "entry": "service/main.js",
34
34
  "runtime": "host",
35
+ "keepRunning": true,
35
36
  "permissions": {
36
37
  "exec": [
37
38
  "bun"
@@ -57,6 +57,14 @@
57
57
  #runtime[data-state="failed"] { color: var(--bad); }
58
58
  #runtime[data-state="installing"] { color: var(--run); }
59
59
  #runtime .row { justify-content: flex-start; }
60
+ #notice { display: grid; gap: 6px; justify-items: start; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 12px;
61
+ background: color-mix(in srgb, var(--notice) 12%, var(--surface)); border-left: 3px solid var(--notice); --notice: var(--run); }
62
+ #notice[hidden] { display: none; }
63
+ #notice[data-tone="warn"] { --notice: var(--warn); }
64
+ #notice[data-tone="bad"] { --notice: var(--bad); }
65
+ #notice > span { justify-self: stretch; min-width: 0; overflow-wrap: anywhere; }
66
+ #notice code { font: 11px var(--mono); word-break: break-all; user-select: all; -webkit-user-select: all; }
67
+ #notice button { padding: 5px 12px; border-radius: 6px; border: 1px solid transparent; background: var(--accent); color: var(--oc-primary-fg, #001); font-weight: 600; cursor: pointer; }
60
68
 
61
69
  #viewport { position: relative; flex: 1; overflow: hidden; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none;
62
70
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 22%, transparent) 1px, transparent 1px);
@@ -162,6 +170,7 @@
162
170
  </button>
163
171
  </div>
164
172
  </header>
173
+ <div id="notice" role="status" hidden></div>
165
174
  <form id="settings" hidden>
166
175
  <section id="runtime" aria-live="polite"><strong>Runtime</strong><span id="runtime-state">Checking…</span></section>
167
176
  <label>OmO agent directory <input name="agentDir" placeholder="~/.omo/agent (default, then ~/.pi/agent)" autocomplete="off" spellcheck="false" /></label>