omp-superagent 0.1.9 → 0.1.10
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/DESIGN.md +10 -6
- package/README.ko.md +28 -377
- package/README.md +30 -425
- package/config.example.json +7 -0
- package/docs/OPERATIONS.en.md +2223 -0
- package/docs/OPERATIONS.md +104 -5
- package/docs/design/execution.md +85 -4
- package/docs/design/messaging.md +12 -2
- package/docs/kakao-bridge-protocol.md +193 -0
- package/docs/releases/0.1.10.md +17 -0
- package/gateway/bin/omp-gateway-darwin-arm64 +0 -0
- package/gateway/bin/omp-gateway-darwin-x64 +0 -0
- package/gateway/bin/omp-gateway-linux-arm64 +0 -0
- package/gateway/bin/omp-gateway-linux-x64 +0 -0
- package/host-owner/bin/omp-host-owner-darwin-arm64 +0 -0
- package/host-owner/bin/omp-host-owner-darwin-x64 +0 -0
- package/host-owner/bin/omp-host-owner-linux-arm64 +0 -0
- package/host-owner/bin/omp-host-owner-linux-x64 +0 -0
- package/package.json +1 -1
- package/skills/head/SKILL.md +25 -3
- package/skills/head/references/supervision.md +9 -0
- package/skills/lane/SKILL.md +11 -0
- package/skills/lane/references/workflow.md +9 -0
- package/src/cli.ts +2 -0
- package/src/config.ts +44 -3
- package/src/contracts.ts +30 -1
- package/src/extension.ts +22 -4
- package/src/host-extension.ts +50 -8
- package/src/host-protocol.ts +1 -0
- package/src/host-reply-voice.ts +181 -0
- package/src/lane-extension.ts +46 -8
- package/src/lane-report.ts +22 -0
- package/src/message-order.ts +2 -1
- package/src/runtime.ts +428 -71
- package/src/setup.ts +2 -1
- package/src/soul.ts +214 -0
- package/src/store.ts +381 -13
package/README.md
CHANGED
|
@@ -9,11 +9,8 @@
|
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
|
-
Connect Discord, Telegram, and Slack to <a href="https://github.com/can1357/oh-my-pi">oh-my-pi</a
|
|
13
|
-
|
|
14
|
-
OMP sessions called <strong>lanes</strong>, each with its own repository, context, and model.
|
|
15
|
-
Ordinary requests and replies stay in their work topic. Address the global head
|
|
16
|
-
with <code>/head</code> when you want coordination across topics.
|
|
12
|
+
Connect Discord, Telegram, and Slack to <a href="https://github.com/can1357/oh-my-pi">oh-my-pi</a>
|
|
13
|
+
for coding and project work from chat.
|
|
17
14
|
</p>
|
|
18
15
|
|
|
19
16
|
<p align="center">
|
|
@@ -26,7 +23,7 @@
|
|
|
26
23
|
<p align="center">
|
|
27
24
|
<a href="#quick-start"><strong>Quick start</strong></a> ·
|
|
28
25
|
<a href="DESIGN.md"><strong>Design</strong></a> ·
|
|
29
|
-
<a href="docs/OPERATIONS.md"><strong>Setup & operations</strong></a> ·
|
|
26
|
+
<a href="docs/OPERATIONS.en.md"><strong>Setup & operations</strong></a> ·
|
|
30
27
|
<a href="config.example.json"><strong>Configuration</strong></a>
|
|
31
28
|
</p>
|
|
32
29
|
|
|
@@ -34,459 +31,67 @@
|
|
|
34
31
|
<strong>English</strong> · <a href="README.ko.md">한국어</a>
|
|
35
32
|
</p>
|
|
36
33
|
|
|
37
|
-
##
|
|
34
|
+
## What it does
|
|
38
35
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<h4>A head that works, not just delegates</h4>
|
|
43
|
-
Keep straightforward work in the main session.
|
|
44
|
-
Open lanes when separate context or independent execution helps.
|
|
45
|
-
</td>
|
|
46
|
-
<td width="50%" valign="top">
|
|
47
|
-
<h4>Autonomy inside the entrusted objective</h4>
|
|
48
|
-
Choose and prioritize useful next work, plan, act, test, and repair. Verified
|
|
49
|
-
intermediate results lead to remaining authorized work without per-step permission,
|
|
50
|
-
not to unrelated scope or automatic external effects.
|
|
51
|
-
</td>
|
|
52
|
-
</tr>
|
|
53
|
-
<tr>
|
|
54
|
-
<td width="50%" valign="top">
|
|
55
|
-
<h4>Separate repositories and topics</h4>
|
|
56
|
-
Lanes are real OMP work sessions, not another supervisor layered over a worker.
|
|
57
|
-
</td>
|
|
58
|
-
<td width="50%" valign="top">
|
|
59
|
-
<h4>Models chosen per lane</h4>
|
|
60
|
-
A topic starts with the current head model and retains its own selection.
|
|
61
|
-
For explicit delegation, the head can choose a different native model or preset.
|
|
62
|
-
</td>
|
|
63
|
-
</tr>
|
|
64
|
-
<tr>
|
|
65
|
-
<td width="50%" valign="top">
|
|
66
|
-
<h4>An always-on gateway, not an always-thinking agent</h4>
|
|
67
|
-
The daemon keeps messenger connections and durable intake alive. OMP retains
|
|
68
|
-
conversations separately from process residency.
|
|
69
|
-
</td>
|
|
70
|
-
<td width="50%" valign="top">
|
|
71
|
-
<h4>A shared information board</h4>
|
|
72
|
-
The head and its managed lanes exchange findings and progress. Unconnected OMP
|
|
73
|
-
sessions cannot join; posts are information, not commands.
|
|
74
|
-
</td>
|
|
75
|
-
</tr>
|
|
76
|
-
<tr>
|
|
77
|
-
<td colspan="2" valign="top">
|
|
78
|
-
<h4>Unmodified OMP</h4>
|
|
79
|
-
Reuse native sessions, tools, approvals, and authentication through managed
|
|
80
|
-
extensions and public APIs, without maintaining a core fork.
|
|
81
|
-
</td>
|
|
82
|
-
</tr>
|
|
83
|
-
</table>
|
|
84
|
-
|
|
85
|
-
## Architecture
|
|
86
|
-
|
|
87
|
-
<picture>
|
|
88
|
-
<source media="(prefers-color-scheme: dark)" srcset="assets/architecture-dark.svg">
|
|
89
|
-
<source media="(prefers-color-scheme: light)" srcset="assets/architecture.svg">
|
|
90
|
-
<img src="assets/architecture.svg" width="100%" alt="Messengers connect to the Gateway, which routes all input through the OMP head. The head controls independent lanes and shares an informational board with them.">
|
|
91
|
-
</picture>
|
|
92
|
-
|
|
93
|
-
The **Gateway** owns messenger connections and the head's lifecycle. The **head** owns
|
|
94
|
-
lane control, approvals and delivery. A bound topic's **lane** handles its ordinary follow-ups;
|
|
95
|
-
the controller returns its replies without a global model turn.
|
|
96
|
-
|
|
97
|
-
[Mermaid source](assets/architecture.mmd)
|
|
98
|
-
|
|
99
|
-
## Safety and permissions
|
|
100
|
-
|
|
101
|
-
All configured messenger owners are the same trusted operator. This is not a multitenant
|
|
102
|
-
service or an OS sandbox; see [Design](DESIGN.md).
|
|
103
|
-
|
|
104
|
-
| Step | What it changes |
|
|
105
|
-
| --- | --- |
|
|
106
|
-
| [Install](#1-install) | Prepares dependencies and the managed omp-superkit integration. Does not start a bot or replace OMP. |
|
|
107
|
-
| [`setup`](#2-configure) | Writes `config.local.json` and the owner-only, plaintext `config.local.json.env` (`0600`). The final save discloses any needed OMP global memory change and bot avatar updates. Starts no bot or model session. |
|
|
108
|
-
| [`doctor`](#3-start) | Checks local configuration and whether the effective OMP memory backend is enabled, without writing settings or logging into the messengers. |
|
|
109
|
-
| [`start`](#3-start) | Applies the native memory fallback if needed, then starts the detached Gateway and head and connects all configured messengers. |
|
|
110
|
-
| [Discord voice](docs/discord-voice.md) | Off by default. A rejected subscription call never switches to API billing. |
|
|
111
|
-
| [`/stop`](#working-from-chat) | Pauses the bound lane. Approvals, cancellations, tool exclusions, and uncertain-effect holds remain binding. |
|
|
112
|
-
|
|
113
|
-
## Distribution
|
|
114
|
-
|
|
115
|
-
Install from [npm](https://www.npmjs.com/package/omp-superagent) or use the source
|
|
116
|
-
and npm tarballs from the
|
|
117
|
-
[GitHub Release](https://github.com/dbc-hbin/omp-superagent/releases/tag/v0.1.9).
|
|
118
|
-
Install with Bun or npm below. Bun is still required at runtime; this is not a
|
|
119
|
-
standalone binary. Installation prepares the managed dependencies. Running a Host
|
|
120
|
-
requires a separately installed OMP; this project neither patches nor builds it.
|
|
36
|
+
- **Work directly or split by topic.** HEAD can answer and work in place. A lane keeps its own repository, OMP session, and model; ordinary replies stay in the bound topic.
|
|
37
|
+
- **Keep chat connected without keeping a model busy.** The Gateway persists intake and manages HEAD's lifecycle. OMP still owns sessions, tools, authentication, and approvals; no core fork is required.
|
|
38
|
+
- **Run lanes locally or on an [enrolled SSH worker](#add-a-remote-worker).** All configured owners are treated as one trusted operator. This is not a multitenant service or an OS sandbox.
|
|
121
39
|
|
|
122
40
|
## Quick start
|
|
123
41
|
|
|
124
|
-
This checkout requires Git, **Bun >= 1.4.4**, and local Unix sockets. Installing the
|
|
125
|
-
package does not require OMP. To run a Host, install stock OMP separately; the
|
|
126
|
-
CLI checks capabilities, not a version range. CI tests **OMP 19.1.1**;
|
|
127
|
-
**18.20.3 and 18.22.2** were tested in earlier releases.
|
|
128
|
-
Windows is unsupported.
|
|
129
|
-
Configure `command` with the installed OMP executable followed by native CLI flags;
|
|
130
|
-
runtime/script wrappers are unsupported.
|
|
131
|
-
|
|
132
|
-
<details>
|
|
133
|
-
<summary><strong>SDK pin and CI reproduction</strong></summary>
|
|
134
|
-
|
|
135
|
-
The SDK is pinned to the [upstream `v19.1.1` commit](https://github.com/can1357/oh-my-pi/commit/31ffee513f27a01bba7d4dfbe12bae239cdc646a).
|
|
136
|
-
`bun run test:ci` tests the installed OMP. Use `bun run test:baseline` to reproduce
|
|
137
|
-
the SDK-matched CI check. OMP 18 is manual only: `bash scripts/test-omp.sh v18.22.2`
|
|
138
|
-
(or `v18.20.3`) verifies the release binary and runs the same suite locally.
|
|
139
|
-
The separate weekly/manual **OMP upstream compatibility** workflow tests the latest
|
|
140
|
-
published CLI without falling back to the baseline or blocking releases.
|
|
141
|
-
|
|
142
|
-
</details>
|
|
143
|
-
|
|
144
42
|
### 1. Install
|
|
145
43
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
**Important**
|
|
149
|
-
|
|
150
|
-
Before switching a Host from OMP 18 to 19, check its background services; the
|
|
151
|
-
OMP 19 daemon does not take over the old broker's services.
|
|
152
|
-
|
|
153
|
-
</td></tr></table>
|
|
154
|
-
|
|
155
|
-
To install OMP separately, see the
|
|
156
|
-
[upstream instructions](https://github.com/can1357/oh-my-pi#install).
|
|
44
|
+
Use macOS or Linux (arm64 or x64), [Bun 1.4.4+](https://bun.sh), and a separately installed [stock OMP](https://github.com/can1357/oh-my-pi#install). Authenticate your model provider in OMP.
|
|
157
45
|
|
|
158
46
|
```sh
|
|
159
|
-
bun add --global --trust omp-superagent
|
|
47
|
+
bun add --global --trust omp-superagent
|
|
160
48
|
omp-sa --help
|
|
161
49
|
```
|
|
162
50
|
|
|
163
|
-
|
|
164
|
-
Ensure `bun pm bin --global` is on `PATH`.
|
|
165
|
-
|
|
166
|
-
<details>
|
|
167
|
-
<summary><strong>Install with npm</strong></summary>
|
|
168
|
-
|
|
169
|
-
Alternatively, with Bun on `PATH`:
|
|
170
|
-
|
|
171
|
-
```sh
|
|
172
|
-
npm install --global omp-superagent@0.1.9
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
Keep lifecycle scripts enabled for the managed omp-superkit integration.
|
|
176
|
-
|
|
177
|
-
</details>
|
|
178
|
-
|
|
179
|
-
Published SDK packages and platform-native dependencies come from the package registry;
|
|
180
|
-
no Rust toolchain, OMP source checkout, core patch, or native build is required.
|
|
181
|
-
Dependency installation needs network access. It does not start a bot or replace OMP.
|
|
182
|
-
|
|
183
|
-
The CLI command is **`omp-sa`**; the package name is `omp-superagent`.
|
|
184
|
-
|
|
185
|
-
<details>
|
|
186
|
-
<summary><strong>Run from a source checkout</strong></summary>
|
|
187
|
-
|
|
188
|
-
For a source checkout or source tarball, install stable Rust/Cargo, CMake and a C compiler first. Cargo builds the Gateway and Host relay, not OMP. Run `bun run build:native` after changing their Rust code. From the project root:
|
|
189
|
-
|
|
190
|
-
```sh
|
|
191
|
-
bun install --frozen-lockfile
|
|
192
|
-
bun link
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
Both `omp-sa` and the source invocation `bun --no-env-file src/cli.ts` run the same
|
|
196
|
-
CLI with automatic `.env` loading disabled.
|
|
197
|
-
|
|
198
|
-
</details>
|
|
51
|
+
Put the output of `bun pm bin --global` on `PATH`. You can also use `npm install --global omp-superagent` with Bun on `PATH`. The npm package includes the native binaries; for source builds see the [operations guide](docs/OPERATIONS.en.md).
|
|
199
52
|
|
|
200
53
|
### 2. Configure
|
|
201
54
|
|
|
202
|
-
|
|
203
|
-
[Add a remote worker](#add-a-remote-worker). The worker does **not** need a messenger setup.
|
|
204
|
-
|
|
205
|
-
Prepare your platform apps using the [operations guide](docs/OPERATIONS.md#2-플랫폼별-앱과-접근-범위),
|
|
206
|
-
then run:
|
|
55
|
+
Prepare a [Discord, Telegram, or Slack app](docs/OPERATIONS.en.md#2-platform-apps-and-access), then run:
|
|
207
56
|
|
|
208
57
|
```sh
|
|
209
58
|
omp-sa setup --config ./config.local.json
|
|
210
59
|
```
|
|
211
60
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
**Important**
|
|
215
|
-
|
|
216
|
-
Setup creates `config.local.json` and stores hidden-input tokens in owner-only
|
|
217
|
-
`config.local.json.env` (`0600`). That file is plaintext, not a vault; nonempty shell
|
|
218
|
-
credentials take precedence. Configure model authentication through OMP.
|
|
219
|
-
|
|
220
|
-
</td></tr></table>
|
|
221
|
-
|
|
222
|
-
Setup does not start a bot or model session. Its final save confirmation includes
|
|
223
|
-
replacing configured Discord/Telegram bot avatars with the mascot and discloses a
|
|
224
|
-
native memory change when needed. Managed head and lane workspaces accept any
|
|
225
|
-
supported effective OMP memory backend other than `off`. If the selected profile
|
|
226
|
-
is unconfigured or memory is off at the global layer, setup sets only that
|
|
227
|
-
profile's global `memory.backend` to `mnemopi` after the confirmed save. There is no
|
|
228
|
-
separate memory prompt. Project and launch overrides are not rewritten. If memory
|
|
229
|
-
is still disabled or cannot be verified, setup keeps the saved files and reports
|
|
230
|
-
incomplete. Setup recommends configuring a missing native judge role but does not
|
|
231
|
-
choose or call a model.
|
|
61
|
+
Setup does not start bots or models. Keep `config.local.json.env` private: it stores tokens in plaintext with owner-only permissions. Review the final confirmation for avatar changes and any OMP memory setting change.
|
|
232
62
|
|
|
233
|
-
|
|
234
|
-
memory behavior, alternative config paths, and manual configuration.
|
|
63
|
+
KakaoTalk works only through a [bridge you run yourself](docs/kakao-bridge-protocol.md); it is unofficial automation and can put the Kakao account at risk. Add its block to the configuration manually.
|
|
235
64
|
|
|
236
65
|
### 3. Start
|
|
237
66
|
|
|
238
|
-
Check local configuration without logging into the messengers:
|
|
239
|
-
|
|
240
67
|
```sh
|
|
241
68
|
omp-sa doctor --config ./config.local.json
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
`doctor` reports a disabled or unverifiable backend without changing it. Gateway
|
|
245
|
-
start/restart and each managed Host launch apply the same default/global fallback
|
|
246
|
-
as setup, including for existing configurations. Each Host checks its own
|
|
247
|
-
workspace. Explicit disabled project or launch overrides still block startup.
|
|
248
|
-
Start the detached Gateway and head, connecting **all configured messengers**:
|
|
249
|
-
|
|
250
|
-
```sh
|
|
251
69
|
omp-sa start --config ./config.local.json
|
|
70
|
+
omp-sa status --config ./config.local.json
|
|
252
71
|
```
|
|
253
72
|
|
|
254
|
-
|
|
255
|
-
work. Managed presets then follow OMP's `slow`/`default`/`smol` roles without changing
|
|
256
|
-
active sessions or overwriting custom presets. `status` distinguishes initialization from
|
|
257
|
-
transport readiness. Setup and doctor do not start bot/model sessions.
|
|
258
|
-
|
|
259
|
-
<table width="100%"><tr><td>
|
|
260
|
-
|
|
261
|
-
**Note**
|
|
262
|
-
|
|
263
|
-
Native TUI/herdr attachment to managed RPC Hosts is not available in this patch-free
|
|
264
|
-
release. Use messenger commands and `omp-sa status` for managed sessions.
|
|
265
|
-
Lane journals also appear in ordinary OMP's native session discovery. Use `/resume`
|
|
266
|
-
(Tab for all projects) or native history tools; an intentional resume is normal OMP work,
|
|
267
|
-
not managed-Host attachment or a manager/board permission grant. See
|
|
268
|
-
[native session access](docs/OPERATIONS.md#일반-omp에서-세션-기록-찾기).
|
|
269
|
-
|
|
270
|
-
</td></tr></table>
|
|
271
|
-
|
|
272
|
-
For status, shutdown, macOS login startup, and recovery, use the
|
|
273
|
-
[operations guide](docs/OPERATIONS.md). Login startup is a one-shot launch, not a
|
|
274
|
-
crash supervisor; Linux service installation is not provided.
|
|
275
|
-
|
|
276
|
-
## Add a remote worker
|
|
277
|
-
|
|
278
|
-
Use this when the head should open an ordinary lane on another machine, for example
|
|
279
|
-
when you say **“test this repository on Linux.”** Only the head needs messenger
|
|
280
|
-
credentials. Use a build with `omp-sa worker` on **both** machines (for an unreleased
|
|
281
|
-
checkout, use the source installation above, not an older npm release).
|
|
282
|
-
|
|
283
|
-
1. **On the worker:** install Git, Bun, stock OMP and `omp-superagent` as above.
|
|
284
|
-
Install the executables and `omp-superagent` outside the checkout you want to
|
|
285
|
-
enroll, in paths that other users cannot replace.
|
|
286
|
-
Configure the worker account's own OMP provider access (not a shell-command
|
|
287
|
-
API key or remote auth broker) and enable its native
|
|
288
|
-
memory backend (for example `omp config set memory.backend mnemopi` if none
|
|
289
|
-
is enabled). Prepare a dedicated clean clone of the same Git repository
|
|
290
|
-
**at the requested commit**. Enable **OpenSSH
|
|
291
|
-
server** for this account over your private network (e.g. a tailnet). The
|
|
292
|
-
endpoint must enforce OpenSSH `authorized_keys` forced commands; Tailscale
|
|
293
|
-
SSH's own login policy is not a substitute. No public port, second head,
|
|
294
|
-
`omp-sa setup` or `omp-sa start` is needed on the worker.
|
|
295
|
-
2. **On the head:** verify the worker's SSH host-key fingerprint with its operator
|
|
296
|
-
and trust it in the head account's `known_hosts`. Use a directly resolvable DNS
|
|
297
|
-
name/IP, not a nickname from `~/.ssh/config`. If Tailscale SSH handles port 22,
|
|
298
|
-
use a separate OpenSSH listener on the private network, pin its host key as
|
|
299
|
-
`[host]:port` in `known_hosts`, and use `dev@linux-box:port` in both `worker add`
|
|
300
|
-
calls. For the default SSH port:
|
|
301
|
-
```sh
|
|
302
|
-
omp-sa worker add dev@linux-box --config ./config.local.json
|
|
303
|
-
```
|
|
304
|
-
3. **On the worker, as `dev`:** run the `worker init` command printed in step 2.
|
|
305
|
-
Keep its generated **public** head key and replace the example repository path:
|
|
306
|
-
```sh
|
|
307
|
-
omp-sa worker init --head-key 'ssh-ed25519 …' --repo "$HOME/src/my-app"
|
|
308
|
-
```
|
|
309
|
-
This authorizes a dedicated forced-command key in that account's
|
|
310
|
-
`~/.ssh/authorized_keys`. Do not copy the head's private key, bot tokens or
|
|
311
|
-
configuration. Use a dedicated OS account if the worker should not have access
|
|
312
|
-
to your other files: an OMP lane runs tools as the worker user, not in a sandbox.
|
|
313
|
-
4. **Back on the head:** repeat the same `worker add` command. Enrollment is complete
|
|
314
|
-
when the head reports **`verified`**, not when it prints the initial pairing
|
|
315
|
-
instructions. To prefer this worker for one **specific head checkout**,
|
|
316
|
-
repeat `worker add` with `--default --local-repo /path/on/head/my-app`.
|
|
317
|
-
Omitting `--local-repo` uses the configured `headCwd`. Other checkouts with
|
|
318
|
-
the same Git origin do not inherit permission to send ordinary tasks there.
|
|
319
|
-
|
|
320
|
-
Use `omp-sa worker list --config ./config.local.json` to see verified enrollments
|
|
321
|
-
without contacting the workers. To check one now, run
|
|
322
|
-
`omp-sa worker doctor dev@linux-box --config ./config.local.json` using the exact
|
|
323
|
-
enrolled destination, including its port if specified. It checks the worker identity
|
|
324
|
-
and available slots. For a default worker it also verifies the current revision of
|
|
325
|
-
the approved head checkout. A blocked check exits nonzero; neither command starts a lane.
|
|
326
|
-
|
|
327
|
-
Now ask for a remote lane or name the required platform in chat. Superagent matches
|
|
328
|
-
the repository by Git origin, not folder name; local edits and ignored files are
|
|
329
|
-
not synchronized. Start with a clean, committed source tree. The worker reserves
|
|
330
|
-
its checkout for one resident lane; it does not fetch, switch branches, or discard
|
|
331
|
-
edits. Follow-ups stay on the same worker and native session; disconnecting SSH
|
|
332
|
-
does not stop that Host. A cold reopen is held if the checkout has changed.
|
|
333
|
-
Chat replies and approval cards use the original route; messenger file transfer
|
|
334
|
-
and access to the head's local SQLite board are not provided across SSH.
|
|
335
|
-
Remote lanes require the normal stock OMP command without extra head-side flags:
|
|
336
|
-
custom tool/profile/approval flags are never silently removed to run remotely.
|
|
337
|
-
Use a dedicated worker OMP profile without ambient plugins. Worker startup
|
|
338
|
-
rejects project execution configuration (such as `.omp/`, `.env` or Git filter
|
|
339
|
-
drivers), linked worktrees and submodules rather than loading or rewriting
|
|
340
|
-
them. An operator who needs a custom model extension can list its trusted,
|
|
341
|
-
absolute module path in a private `worker-extensions.json` array in the worker's
|
|
342
|
-
OMP agent directory (`0600`, outside enrolled checkouts).
|
|
343
|
-
Check `omp-sa status --config ./config.local.json` for the saved placement.
|
|
344
|
-
To revoke new SSH connections, remove **only this enrollment's key** on the
|
|
345
|
-
worker. That is not a stop command for an already running lane.
|
|
73
|
+
`doctor` runs local checks without signing in to messengers. `start` connects all configured platforms; `status` distinguishes a connected Gateway from a ready HEAD.
|
|
346
74
|
|
|
347
75
|
## Working from chat
|
|
348
76
|
|
|
349
|
-
|
|
350
|
-
allowed server parent channels and threads this bot did not create must mention this
|
|
351
|
-
bot or reply to one of its messages in the same conversation. Threads this bot created
|
|
352
|
-
do not require a mention or reply; owner DMs and app commands are unaffected.
|
|
353
|
-
- Send ordinary follow-ups in the same conversation. They go to the bound lane in a work
|
|
354
|
-
thread and to HEAD in a head conversation or with `/head <request>`. No `/steer` is
|
|
355
|
-
needed: eligible follow-ups steer an active run at an OMP steering boundary, or start
|
|
356
|
-
a new turn if idle. Pause, approval, and uncertain-effect holds still apply.
|
|
357
|
-
- For a new request, send the request itself, even if it names a repository. HEAD answers questions
|
|
358
|
-
that need no workspace directly. For “check login in client-ui,” it uses your request and
|
|
359
|
-
its conversation context to find and verify the workspace before assigning work. It asks a
|
|
360
|
-
focused question only if a material ambiguity remains; it does not use a default repository
|
|
361
|
-
or the last active chat. If you asked from an unbound Discord thread, HEAD keeps any
|
|
362
|
-
resulting work there unless you explicitly ask for a split.
|
|
363
|
-
- Use `cwd: /absolute/workspace` on the first line to specify a workspace, `/new <request>`
|
|
364
|
-
to start a separate topic, or reply directly to a placed task or its delivered message to reuse
|
|
365
|
-
its known workspace without copying its history.
|
|
366
|
-
- With active, searchable Mnemopi on the head, describe earlier work from any allowed
|
|
367
|
-
owner channel, e.g. “continue the login bug investigation from last week.” The
|
|
368
|
-
controller uses Mnemopi recall and verifies candidates against this instance's
|
|
369
|
-
eligible session journals. Other enabled memory backends can run managed sessions
|
|
370
|
-
but do not support this historical topic search.
|
|
371
|
-
A cross-channel continuation uses the matched workspace and relevant task evidence, not
|
|
372
|
-
the original channel binding, transcript or approvals. Choose by number if multiple tasks match.
|
|
373
|
-
- Use `/head <request>` for coordination or direct global work. Repositories and
|
|
374
|
-
topics keep independent lane context; voice metadata does not imply transcription.
|
|
375
|
-
- Use `/help` and `/status` for controls and state. In a Discord work thread,
|
|
376
|
-
`/model` lets you choose the idle HEAD or the idle lane bound to that thread.
|
|
377
|
-
A direct `/model <provider/model>` still targets HEAD unless you add `--lane`.
|
|
378
|
-
`/effort` targets HEAD. You can also use `/head` to ask HEAD to switch its own
|
|
379
|
-
model after that turn. Global preset changes require explicit `--global`.
|
|
380
|
-
Slack's message commands use `!`.
|
|
381
|
-
- `/usage` shows masked account names, quotas, and reset times for built-in and extension-provided usage sources reported by stock OMP, without a model turn.
|
|
382
|
-
- `/usage-reset` shows saved reset tickets by account in Discord's slash picker or chat.
|
|
383
|
-
On Telegram use `/usage reset`; on Slack use `!usage reset` or `/superagent-usage reset`.
|
|
384
|
-
Select an account and choose **Confirm**
|
|
385
|
-
to spend one available ticket; this requires stock OMP with account-targeted reset support.
|
|
386
|
-
Separately, after a proven Codex quota rejection with no tool calls or partial answer,
|
|
387
|
-
HEAD releases later queued requests when fresh usage evidence confirms recovery. It does
|
|
388
|
-
not spend a ticket, mark the failed request complete, or replay it.
|
|
389
|
-
- To receive a generated file, start an owner request with `attach: path/to/result.pdf` (relative to the work directory).
|
|
390
|
-
- For a shared server or room, [configure restricted group access](docs/OPERATIONS.md#단체방서버-권한-분리) for request intake, tool-free chat or scoped worktree edits. These rooms cannot operate the owner session.
|
|
391
|
-
- Ask `/head` to summarize CI every two hours, or use `/cron add "every 2h" Summarize CI`, and
|
|
392
|
-
manage it from the same chat with [`/cron`](docs/OPERATIONS.md#예약-작업-cron).
|
|
393
|
-
Scheduled prompts use HEAD's normal approval rules; direct shell schedules
|
|
394
|
-
(`/cron add shell`) are disabled.
|
|
395
|
-
- Ask “keep the Discord bot online”, “watch `owner/repo#35` and tell me when CI passes”,
|
|
396
|
-
or “let me know when this lane stalls or finishes”. Ask for status or stop the watch
|
|
397
|
-
in the same conversation. Watches only notify; they do not act on PRs or stop work.
|
|
398
|
-
Discord presence changes the bot's indicator, not message intake.
|
|
399
|
-
- [External PR automation](docs/OPERATIONS.md#새-외부-pr-검토-cron-pr-add) is separate:
|
|
400
|
-
explicitly enroll a repository owned by your authenticated `gh` account with
|
|
401
|
-
`/cron pr-add` from an allowed Discord server parent channel. New enrollments default to
|
|
402
|
-
unattended review and a GitHub comment only. For automatic fix commits or merges, choose
|
|
403
|
-
a higher mode with `/cron pr-mode`; merges still require independent approval, required
|
|
404
|
-
CI, and branch protection checks.
|
|
405
|
-
- `/stop` pauses the bound lane; `/resume` authorizes continuation. Approvals,
|
|
406
|
-
cancellations, tool exclusions, and uncertain-effect holds remain binding.
|
|
407
|
-
Neither progress reports nor recovery prove task completion or undo external effects.
|
|
408
|
-
Saved goals do not guarantee crash replay or execution while unloaded.
|
|
409
|
-
|
|
410
|
-
<table width="100%"><tr><td>
|
|
411
|
-
|
|
412
|
-
**Voice**
|
|
413
|
-
|
|
414
|
-
Discord can optionally join a private voice conversation with the owner. A separate
|
|
415
|
-
OpenAI Live session answers speech; work goes to HEAD only after written confirmation.
|
|
416
|
-
Select Codex subscription voice or the separately billed API in the
|
|
417
|
-
[voice configuration guide](docs/discord-voice.md). Voice is off by default;
|
|
418
|
-
a rejected subscription call never switches to API billing.
|
|
419
|
-
|
|
420
|
-
</td></tr></table>
|
|
421
|
-
|
|
422
|
-
See [commands, approvals, and everyday use](docs/OPERATIONS.md#4-명령과-일상-사용)
|
|
423
|
-
for command registration, restart and recovery semantics, and platform differences.
|
|
424
|
-
Repository changes alone do not update a running service.
|
|
425
|
-
|
|
426
|
-
## SUPER workflows
|
|
427
|
-
|
|
428
|
-
[omp-superkit](https://github.com/dbc-hbin/omp-superkit) is installed and loaded as a managed integration;
|
|
429
|
-
loading it does not activate a workflow. To request one in chat, begin the work request
|
|
430
|
-
with `super`, `super-plan`, `super-run`, `super-loop`, `super-research`, or `super-graph`.
|
|
431
|
-
These correspond to the upstream OMP commands `/super`, `/super-plan`, `/super-run`,
|
|
432
|
-
`/super-loop`, `/super-research`, and `/super-graph`, not messenger slash commands.
|
|
433
|
-
See the [workflow table](docs/design/execution.md#workflow-selection) for their purposes,
|
|
434
|
-
installed skill IDs, and exact upstream revision.
|
|
435
|
-
|
|
436
|
-
The head may select a workflow when the authorized task genuinely benefits from it.
|
|
437
|
-
Ordinary work can stay in a direct session, native task, or regular lane.
|
|
438
|
-
|
|
439
|
-
Updates apply to new Hosts, not running heads or lanes. See
|
|
440
|
-
[managed integration operations](docs/OPERATIONS.md#필수-관리형-omp-superkit-설치와-갱신)
|
|
441
|
-
for update and activation behavior.
|
|
442
|
-
|
|
443
|
-
## Development
|
|
444
|
-
|
|
445
|
-
Local checks after installation:
|
|
446
|
-
|
|
447
|
-
```sh
|
|
448
|
-
bun run check
|
|
449
|
-
bun test test
|
|
450
|
-
bun run test:ci
|
|
451
|
-
```
|
|
452
|
-
|
|
453
|
-
See [developer verification and source release steps](docs/OPERATIONS.md#6-개발자-검증)
|
|
454
|
-
for offline native/PTY coverage, prerequisites, and local packaging/publication boundaries.
|
|
455
|
-
The [current CI matrix](https://github.com/dbc-hbin/omp-superagent/blob/main/.github/workflows/ci.yml)
|
|
456
|
-
uses the stock CLI matching the pinned SDK.
|
|
457
|
-
[Historical results](docs/releases/0.1.0.md#verification-records) apply only to the
|
|
458
|
-
recorded versions and scenarios. Offline CI does not verify live accounts or production readiness.
|
|
459
|
-
|
|
460
|
-
## Documentation & credits
|
|
461
|
-
|
|
462
|
-
| Document | What it covers |
|
|
77
|
+
| What you want | What to send |
|
|
463
78
|
| --- | --- |
|
|
464
|
-
|
|
|
465
|
-
|
|
|
466
|
-
|
|
|
467
|
-
|
|
|
468
|
-
|
|
|
469
|
-
| Releases | [Release notes](docs/releases/0.1.9.md) and [historical verification records](docs/releases/0.1.0.md#verification-records). |
|
|
79
|
+
| Start or continue work | Send a request in chat; follow up in the same work topic. |
|
|
80
|
+
| Ask the global HEAD | `/head <request>` |
|
|
81
|
+
| Choose an exact workspace | Put `cwd: /absolute/path` on the first line. |
|
|
82
|
+
| Start a separate topic | `/new <request>` |
|
|
83
|
+
| Inspect or pause a lane | `/status` or `/stop` in its topic. Use `/resume` to continue. |
|
|
470
84
|
|
|
471
|
-
|
|
472
|
-
[omp-superkit](https://github.com/dbc-hbin/omp-superkit) workflow integration.
|
|
473
|
-
The mascot reimagines OMP's pi mark as a little superhero.
|
|
85
|
+
Use `/help` for commands. See the [operations guide](docs/OPERATIONS.en.md#4-commands-and-daily-use) for model selection, usage resets, approvals, scheduling, and safe shutdown. [Discord voice](docs/discord-voice.md) (Korean guide) is optional and off by default.
|
|
474
86
|
|
|
475
|
-
|
|
476
|
-
[Discord addressing filter (#29)](https://github.com/dbc-hbin/omp-superagent/pull/29)
|
|
477
|
-
and proposed [remote lane parity (#30)](https://github.com/dbc-hbin/omp-superagent/pull/30),
|
|
478
|
-
[worker onboarding and diagnostics (#32)](https://github.com/dbc-hbin/omp-superagent/pull/32),
|
|
479
|
-
and [macOS GUI workers (#33)](https://github.com/dbc-hbin/omp-superagent/pull/33).
|
|
480
|
-
The enrolled SSH worker keeps its existing launch model; the diagnostics, custom SSH
|
|
481
|
-
port, and remote decision checks build on those proposals, not the GUI launcher.
|
|
87
|
+
## Add a remote worker
|
|
482
88
|
|
|
483
|
-
|
|
89
|
+
Follow the [SSH worker enrollment guide](docs/OPERATIONS.en.md#add-a-remote-worker). Only HEAD needs messenger credentials.
|
|
484
90
|
|
|
485
|
-
|
|
486
|
-
separate terms; see [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
|
|
91
|
+
## Documentation & credits
|
|
487
92
|
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
93
|
+
- Operations: [English](docs/OPERATIONS.en.md) · [한국어](docs/OPERATIONS.md)
|
|
94
|
+
- [Design and architecture](DESIGN.md) · [Configuration example](config.example.json) · [Developer verification](docs/OPERATIONS.en.md#6-developer-verification)
|
|
95
|
+
- [Release notes](docs/releases/) · [GitHub downloads](https://github.com/dbc-hbin/omp-superagent/releases)
|
|
96
|
+
- Built on [oh-my-pi](https://github.com/can1357/oh-my-pi) with [omp-superkit](https://github.com/dbc-hbin/omp-superkit). Thanks to [@Momentum96](https://github.com/Momentum96) for the [Discord addressing contribution](https://github.com/dbc-hbin/omp-superagent/pull/29) and proposals on [remote lane parity](https://github.com/dbc-hbin/omp-superagent/pull/30), [worker enrollment](https://github.com/dbc-hbin/omp-superagent/pull/32), and [GUI workers](https://github.com/dbc-hbin/omp-superagent/pull/33). The shipped worker uses SSH, not a GUI launcher.
|
|
97
|
+
- [MIT license](LICENSE) · [Third-party notices](THIRD_PARTY_NOTICES.md)
|
package/config.example.json
CHANGED
|
@@ -25,5 +25,12 @@
|
|
|
25
25
|
"ownerId": "REPLACE_WITH_SLACK_OWNER_ID",
|
|
26
26
|
"teamId": "REPLACE_WITH_SLACK_TEAM_ID",
|
|
27
27
|
"allowedChannelIds": ["REPLACE_WITH_SLACK_CHANNEL_ID"]
|
|
28
|
+
},
|
|
29
|
+
"kakao": {
|
|
30
|
+
"bridgeUrl": "http://127.0.0.1:REPLACE_WITH_BRIDGE_PORT",
|
|
31
|
+
"tokenEnv": "KAKAO_SUPERAGENT_TOKEN",
|
|
32
|
+
"botUserId": "REPLACE_WITH_BRIDGE_ACCOUNT_USER_ID",
|
|
33
|
+
"ownerId": "REPLACE_WITH_OWNER_KAKAO_USER_ID",
|
|
34
|
+
"chatId": "REPLACE_WITH_OWNER_ONE_TO_ONE_CHAT_ID"
|
|
28
35
|
}
|
|
29
36
|
}
|