antechamber 2.0.17 → 2.0.19
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 +23 -0
- package/README.md +107 -317
- package/extensions/antechamber/README.md +19 -7
- package/extensions/antechamber/package.json +2 -1
- package/extensions/antechamber/panel/index.html +9 -0
- package/extensions/antechamber/panel/main.js +75 -75
- package/extensions/antechamber/runtime/launcher.js +53 -21
- package/extensions/antechamber/service/main.js +153 -82
- package/extensions/antechamber/status/index.html +7 -0
- package/extensions/antechamber/status/main.js +43 -43
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,29 @@ and this project uses [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.0.19] - 2026-11-28
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Folder-installed extensions now recognize when OpenChamber's default settings already select their launcher, so
|
|
15
|
+
OmO Graph and OmO Work no longer claim that sessions are not running on OmO while Antechamber is active.
|
|
16
|
+
|
|
17
|
+
## [2.0.18] - 2026-11-27
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Installing the OpenChamber extension now sets antechamber up with no clicks in its panel: on OpenChamber 2.7+ the
|
|
22
|
+
extension's service starts as soon as it is approved, installs antechamber and OmO, and makes itself the OpenCode
|
|
23
|
+
CLI when none is set or another antechamber launcher is. It does this once; a CLI you pick later stays. The OmO
|
|
24
|
+
panel and the OmO Work section then ask for **Restart OpenCode** until antechamber runs. A custom OpenCode CLI is
|
|
25
|
+
left alone; the panel and the section show a **Use antechamber as OpenCode CLI** button instead of hiding it in the
|
|
26
|
+
panel's settings. Updating the extension asks you to approve its local service again, because it now keeps running.
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- An unreadable OpenChamber `settings.json` no longer crashes the extension's service (and with it the OmO Graph and
|
|
31
|
+
OmO Work); the panel and the section say what is wrong with the file instead.
|
|
32
|
+
|
|
10
33
|
## [2.0.17] - 2026-11-26
|
|
11
34
|
|
|
12
35
|
### Fixed
|
package/README.md
CHANGED
|
@@ -1,370 +1,160 @@
|
|
|
1
1
|
# antechamber
|
|
2
2
|
|
|
3
|
-
|
|
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
|
[](https://github.com/eliottness/antechamber/actions/workflows/ci.yml)
|
|
8
|
+
[](https://www.npmjs.com/package/antechamber)
|
|
6
9
|
[](./LICENSE)
|
|
7
10
|
|
|
8
|
-
|
|
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
|
-
|
|
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
|
-
|
|
18
|
+
1. In OpenChamber, open **Settings → Extensions → Add → URL** and enter:
|
|
76
19
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
|
44
|
+
| Feature | What you get |
|
|
162
45
|
|---|---|
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
|
|
|
167
|
-
|
|
|
168
|
-
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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
|
-
|
|
221
|
-
|
|
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
|
-
|
|
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
|
-
|
|
|
73
|
+
| Component | Supported |
|
|
239
74
|
|---|---|
|
|
240
|
-
|
|
|
241
|
-
|
|
|
242
|
-
|
|
|
243
|
-
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
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
|
-
|
|
264
|
-
prefix
|
|
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`;
|
|
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
|
-
|
|
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
|
|
283
|
-
with
|
|
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
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
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
|
-
|
|
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
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
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
|
-
##
|
|
121
|
+
## Documentation
|
|
344
122
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
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
|
-
|
|
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
|
-
|
|
358
|
-
|
|
359
|
-
|
|
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
|
-
|
|
364
|
-
[
|
|
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
|
|
370
|
-
|
|
159
|
+
MIT. See [LICENSE](./LICENSE), which keeps the original openchamber-pi-connector copyright notice alongside
|
|
160
|
+
antechamber's.
|
|
@@ -29,12 +29,21 @@ 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.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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 reads OpenChamber's default `~/.config/openchamber/settings.json` to recognize an already selected launcher.
|
|
44
|
+
It cannot switch that file automatically because the folder might belong to another OpenChamber data directory;
|
|
45
|
+
set the launcher in **Settings → General → OpenCode CLI** if it is not selected. The panel's settings (the sliders
|
|
46
|
+
icon) list the installed versions and the launcher path while it is not the OpenCode CLI.
|
|
38
47
|
|
|
39
48
|
Other ways to add it: a **Folder** (`extensions/antechamber` of an npm install or a built checkout; `antechamber
|
|
40
49
|
setup` prints it), or the release **ZIP**
|
|
@@ -57,6 +66,9 @@ OpenChamber offers it under **Update** in Settings → Extensions. Updating the
|
|
|
57
66
|
OmO: the next time OpenChamber starts its server, the launcher installs the new pair. OpenChamber's own OpenCode
|
|
58
67
|
Update action runs the launcher's `upgrade`, which only points here.
|
|
59
68
|
|
|
69
|
+
Updating from a release before 2.0.18 asks you to approve the local service again, because it now keeps running with
|
|
70
|
+
OpenChamber (`keepRunning`) and OpenChamber 2.7+ shows that in its approval.
|
|
71
|
+
|
|
60
72
|
The previous runtime stays installed for an adapter that is still running from it; older ones are removed.
|
|
61
73
|
|
|
62
74
|
## Settings
|
|
@@ -83,7 +95,7 @@ OpenChamber --spawn--> bin/opencode-antechamber --exec--> bun <runtime>/node_mod
|
|
|
83
95
|
panel / section (sandboxed iframes) --serviceRequest--> OpenChamber host --loopback + token--> service/main.js
|
|
84
96
|
/graph reads the OmO task store and the session registry
|
|
85
97
|
/status relays antechamber's /antechamber/work-status routes
|
|
86
|
-
/runtime reports
|
|
98
|
+
/runtime reports the runtime, installs it, sets the CLI
|
|
87
99
|
```
|
|
88
100
|
|
|
89
101
|
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.
|
|
3
|
+
"version": "2.0.19",
|
|
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>
|