omp-superagent 0.1.9 → 0.1.11

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.
Files changed (151) hide show
  1. package/DESIGN.md +68 -21
  2. package/README.ko.md +30 -372
  3. package/README.md +31 -419
  4. package/THIRD_PARTY_NOTICES.md +35 -436
  5. package/assets/architecture-dark.svg +7 -12
  6. package/assets/architecture.ko-dark.svg +7 -12
  7. package/assets/architecture.ko.svg +7 -12
  8. package/assets/architecture.mmd +5 -13
  9. package/assets/architecture.svg +7 -12
  10. package/config.example.json +8 -0
  11. package/docs/OPERATIONS.en.md +2277 -0
  12. package/docs/OPERATIONS.md +198 -45
  13. package/docs/design/execution.md +163 -54
  14. package/docs/design/messaging.md +125 -34
  15. package/docs/kakao-bridge-protocol.md +193 -0
  16. package/docs/releases/0.1.10.md +17 -0
  17. package/docs/releases/0.1.11.md +18 -0
  18. package/gateway/bin/omp-gateway-darwin-arm64 +0 -0
  19. package/gateway/bin/omp-gateway-darwin-x64 +0 -0
  20. package/gateway/bin/omp-gateway-linux-arm64 +0 -0
  21. package/gateway/bin/omp-gateway-linux-x64 +0 -0
  22. package/host-owner/bin/omp-host-owner-darwin-arm64 +0 -0
  23. package/host-owner/bin/omp-host-owner-darwin-x64 +0 -0
  24. package/host-owner/bin/omp-host-owner-linux-arm64 +0 -0
  25. package/host-owner/bin/omp-host-owner-linux-x64 +0 -0
  26. package/package.json +10 -11
  27. package/scripts/{prepare-ulw.ts → prepare-super.ts} +1 -1
  28. package/skills/head/SKILL.md +36 -5
  29. package/skills/head/references/routing.md +1 -1
  30. package/skills/head/references/supervision.md +32 -26
  31. package/skills/lane/SKILL.md +39 -21
  32. package/skills/lane/references/workflow.md +23 -16
  33. package/src/cli.ts +35 -33
  34. package/src/{config.ts → config/config.ts} +51 -6
  35. package/src/config/wake-config.ts +36 -0
  36. package/src/contracts.ts +91 -13
  37. package/src/{cron-jobs.ts → cron/cron-jobs.ts} +21 -13
  38. package/src/{cron-pr-intake.ts → cron/cron-pr-intake.ts} +4 -4
  39. package/src/{cron-schedule.ts → cron/cron-schedule.ts} +3 -3
  40. package/src/extension.ts +64 -28
  41. package/src/{gateway-client.ts → gateway/gateway-client.ts} +89 -32
  42. package/src/{gateway-native.ts → gateway/gateway-native.ts} +4 -4
  43. package/src/{gateway-protocol.ts → gateway/gateway-protocol.ts} +69 -14
  44. package/src/{gateway-wire.ts → gateway/gateway-wire.ts} +12 -7
  45. package/src/gateway-config.ts +1 -1
  46. package/src/gateway-restart-env.ts +3 -3
  47. package/src/{group-access.ts → group/group-access.ts} +8 -3
  48. package/src/{group-policy.ts → group/group-policy.ts} +2 -2
  49. package/src/{group-runner.ts → group/group-runner.ts} +11 -6
  50. package/src/host-extension.ts +213 -43
  51. package/src/host-sdk-helper.ts +62 -65
  52. package/src/{decision-tool.ts → lane/decision-tool.ts} +12 -4
  53. package/src/{decisions.ts → lane/decisions.ts} +12 -10
  54. package/src/{lane-models.ts → lane/lane-models.ts} +1 -1
  55. package/src/{lane-report.ts → lane/lane-report.ts} +22 -0
  56. package/src/{lane-rows.ts → lane/lane-rows.ts} +2 -2
  57. package/src/{lane-watch.ts → lane/lane-watch.ts} +6 -2
  58. package/src/{workflow.ts → lane/workflow.ts} +1 -1
  59. package/src/lane-extension.ts +69 -13
  60. package/src/managed-memory-helper.ts +2 -2
  61. package/src/{managed-ulw-probe.ts → managed-super-probe.ts} +3 -3
  62. package/src/{delivery.ts → messaging/delivery.ts} +1 -1
  63. package/src/{discord-command-registration.ts → messaging/discord-command-registration.ts} +3 -2
  64. package/src/{discord-context.ts → messaging/discord-context.ts} +1 -1
  65. package/src/{messenger-command-catalog.json → messaging/messenger-command-catalog.json} +1 -0
  66. package/src/messaging/messenger-commands.ts +55 -0
  67. package/src/{result-attachment.ts → messaging/result-attachment.ts} +3 -3
  68. package/src/{slack-command-registration.ts → messaging/slack-command-registration.ts} +3 -3
  69. package/src/{telegram-command-registration.ts → messaging/telegram-command-registration.ts} +2 -2
  70. package/src/omp/head-resume.ts +123 -0
  71. package/src/{host-owner-path.ts → omp/host-owner-path.ts} +1 -1
  72. package/src/{host-protocol.ts → omp/host-protocol.ts} +11 -2
  73. package/src/omp/host-reply-voice.ts +181 -0
  74. package/src/{host-superkit.ts → omp/host-superkit.ts} +1 -1
  75. package/src/{host.ts → omp/host.ts} +26 -17
  76. package/src/{installed-omp.ts → omp/installed-omp.ts} +1 -1
  77. package/src/{managed-memory.ts → omp/managed-memory.ts} +2 -2
  78. package/src/{managed-ulw.ts → omp/managed-super.ts} +42 -16
  79. package/src/omp/native-journal.ts +124 -0
  80. package/src/{native-launch-profile.ts → omp/native-launch-profile.ts} +6 -2
  81. package/src/{native-presets.ts → omp/native-presets.ts} +2 -2
  82. package/src/omp/native-sessions.ts +124 -0
  83. package/src/{omp-usage.ts → omp/omp-usage.ts} +1 -1
  84. package/src/omp/soul.ts +214 -0
  85. package/src/omp/stock-head-launch.ts +31 -0
  86. package/src/{autostart.ts → operator/autostart.ts} +3 -3
  87. package/src/{operator.ts → operator/operator.ts} +2 -2
  88. package/src/{setup-judge.ts → operator/setup-judge.ts} +1 -1
  89. package/src/{setup-profiles.ts → operator/setup-profiles.ts} +2 -2
  90. package/src/{setup.ts → operator/setup.ts} +7 -6
  91. package/src/{pr-intake-automation.ts → pr/pr-intake-automation.ts} +1 -1
  92. package/src/{pr-intake-mode.ts → pr/pr-intake-mode.ts} +3 -3
  93. package/src/{pr-intake-review.ts → pr/pr-intake-review.ts} +5 -5
  94. package/src/{pr-intake-work.ts → pr/pr-intake-work.ts} +1 -1
  95. package/src/{pr-review-models.ts → pr/pr-review-models.ts} +2 -2
  96. package/src/{pr-watch.ts → pr/pr-watch.ts} +36 -26
  97. package/src/{message-order.ts → routing/message-order.ts} +3 -2
  98. package/src/{topic-history.ts → routing/topic-history.ts} +2 -2
  99. package/src/{topic-request.ts → routing/topic-request.ts} +4 -2
  100. package/src/{runtime.ts → runtime/controller.ts} +1278 -1267
  101. package/src/runtime/deferred-routing.ts +106 -0
  102. package/src/runtime/dm-timeline.ts +194 -0
  103. package/src/{head-recovery.ts → runtime/head-recovery.ts} +1 -1
  104. package/src/{head-rotation.ts → runtime/head-rotation.ts} +32 -5
  105. package/src/runtime/model-journal.ts +119 -0
  106. package/src/runtime/native-frames.ts +131 -0
  107. package/src/{observation-request.ts → runtime/observation-request.ts} +1 -1
  108. package/src/runtime/preset-sync.ts +232 -0
  109. package/src/runtime/preset-watch-paths.ts +137 -0
  110. package/src/runtime/result-attachments.ts +146 -0
  111. package/src/storage/deferred-routing.ts +149 -0
  112. package/src/{store.ts → storage/store.ts} +450 -49
  113. package/src/{worker-bridge.ts → worker/worker-bridge.ts} +2 -2
  114. package/src/{worker-enrollment.ts → worker/worker-enrollment.ts} +2 -2
  115. package/src/{worker-host.ts → worker/worker-host.ts} +7 -3
  116. package/src/{worker-placement.ts → worker/worker-placement.ts} +1 -1
  117. package/src/{worker-profile.ts → worker/worker-profile.ts} +1 -1
  118. package/src/{worker-registration.ts → worker/worker-registration.ts} +2 -2
  119. package/src/{worker-request.ts → worker/worker-request.ts} +5 -5
  120. package/src/{worker-service.ts → worker/worker-service.ts} +2 -2
  121. package/src/{worker-trust.ts → worker/worker-trust.ts} +1 -1
  122. package/src/{worker-wire.ts → worker/worker-wire.ts} +3 -3
  123. package/src/worker-serve-prepare.ts +4 -4
  124. package/src/board-extension.ts +0 -217
  125. package/src/board.ts +0 -467
  126. package/src/gateway-host-helper.ts +0 -13
  127. package/src/messenger-commands.ts +0 -15
  128. package/src/native-sessions.ts +0 -34
  129. /package/src/{credentials.ts → config/credentials.ts} +0 -0
  130. /package/src/{dialog.ts → messaging/dialog.ts} +0 -0
  131. /package/src/{telegram-command-languages.json → messaging/telegram-command-languages.json} +0 -0
  132. /package/src/{host-broker-services.ts → omp/host-broker-services.ts} +0 -0
  133. /package/src/{host-inventory-manifest.ts → omp/host-inventory-manifest.ts} +0 -0
  134. /package/src/{host-services.ts → omp/host-services.ts} +0 -0
  135. /package/src/{native-settings.ts → omp/native-settings.ts} +0 -0
  136. /package/src/{superkit-skills.ts → omp/superkit-skills.ts} +0 -0
  137. /package/src/{repository.ts → operator/repository.ts} +0 -0
  138. /package/src/{pr-github-schema.ts → pr/pr-github-schema.ts} +0 -0
  139. /package/src/{pr-github.ts → pr/pr-github.ts} +0 -0
  140. /package/src/{pr-intake-comment.ts → pr/pr-intake-comment.ts} +0 -0
  141. /package/src/{pr-intake-fix.ts → pr/pr-intake-fix.ts} +0 -0
  142. /package/src/{pr-intake-github.ts → pr/pr-intake-github.ts} +0 -0
  143. /package/src/{pr-intake-material.ts → pr/pr-intake-material.ts} +0 -0
  144. /package/src/{pr-intake-tree.ts → pr/pr-intake-tree.ts} +0 -0
  145. /package/src/{head-quota.ts → runtime/head-quota.ts} +0 -0
  146. /package/src/{worker-checkout.ts → worker/worker-checkout.ts} +0 -0
  147. /package/src/{worker-destination.ts → worker/worker-destination.ts} +0 -0
  148. /package/src/{worker-doctor.ts → worker/worker-doctor.ts} +0 -0
  149. /package/src/{worker-ledger.ts → worker/worker-ledger.ts} +0 -0
  150. /package/src/{worker-repository.ts → worker/worker-repository.ts} +0 -0
  151. /package/upstream/{ulw.json → super.json} +0 -0
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
- The head can investigate, write code, and answer directly—or assign work to independent
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 &amp; operations</strong></a> ·
26
+ <a href="docs/OPERATIONS.en.md"><strong>Setup &amp; operations</strong></a> ·
30
27
  <a href="config.example.json"><strong>Configuration</strong></a>
31
28
  </p>
32
29
 
@@ -34,459 +31,74 @@
34
31
  <strong>English</strong> · <a href="README.ko.md">한국어</a>
35
32
  </p>
36
33
 
37
- ## Why superagent?
34
+ ## What it does
38
35
 
39
- <table>
40
- <tr>
41
- <td width="50%" valign="top">
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>
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.
84
39
 
85
40
  ## Architecture
86
41
 
87
42
  <picture>
88
43
  <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.">
44
+ <img src="assets/architecture.svg" width="100%" alt="Messengers connect to the Gateway. HEAD handles requests and coordinates independent lanes, which report back to HEAD.">
91
45
  </picture>
92
46
 
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.
121
-
122
47
  ## Quick start
123
48
 
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
49
  ### 1. Install
145
50
 
146
- <table width="100%"><tr><td>
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).
51
+ 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
52
 
158
53
  ```sh
159
- bun add --global --trust omp-superagent@0.1.9
54
+ bun add --global --trust omp-superagent
160
55
  omp-sa --help
161
56
  ```
162
57
 
163
- `--trust` allows package lifecycle scripts, including preparation of the managed omp-superkit integration.
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>
58
+ 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
59
 
200
60
  ### 2. Configure
201
61
 
202
- For optional remote execution, configure the head normally, then follow
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:
62
+ Prepare a [Discord, Telegram, or Slack app](docs/OPERATIONS.en.md#2-platform-apps-and-access), then run:
207
63
 
208
64
  ```sh
209
65
  omp-sa setup --config ./config.local.json
210
66
  ```
211
67
 
212
- <table width="100%"><tr><td>
213
-
214
- **Important**
68
+ 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.
215
69
 
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.
232
-
233
- See [configuration and setup effects](docs/OPERATIONS.md#3-설정) for permissions,
234
- memory behavior, alternative config paths, and manual configuration.
70
+ 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
71
 
236
72
  ### 3. Start
237
73
 
238
- Check local configuration without logging into the messengers:
239
-
240
74
  ```sh
241
75
  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
76
  omp-sa start --config ./config.local.json
77
+ omp-sa status --config ./config.local.json
252
78
  ```
253
79
 
254
- The same head initializes missing native `high`/`middle`/`low` presets before ordinary
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.
80
+ `doctor` runs local checks without signing in to messengers. `start` connects all configured platforms; `status` distinguishes a connected Gateway from a ready HEAD.
346
81
 
347
82
  ## Working from chat
348
83
 
349
- - With `discord.requireAddressing` enabled (off by default), ordinary owner messages in
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 |
84
+ | What you want | What to send |
463
85
  | --- | --- |
464
- | [Design](DESIGN.md) | architecture, messaging authority and execution contracts. |
465
- | [Messaging and authority](docs/design/messaging.md) | ingress, routing, controls, approvals, recovery, delivery, and Discord voice. |
466
- | [Execution and coordination](docs/design/execution.md) | lanes, native Host lifecycle, models, workflows, managed integration, monitoring, and the board. |
467
- | [Operations guide](docs/OPERATIONS.md) | platform setup, commands, and recovery. |
468
- | [Voice configuration guide](docs/discord-voice.md) | Codex subscription voice or the separately billed API. |
469
- | Releases | [Release notes](docs/releases/0.1.9.md) and [historical verification records](docs/releases/0.1.0.md#verification-records). |
86
+ | Start or continue work | Send a request in chat; follow up in the same work topic. |
87
+ | Ask the global HEAD | `/head <request>` |
88
+ | Choose an exact workspace | Put `cwd: /absolute/path` on the first line. |
89
+ | Start a separate topic | `/new <request>` |
90
+ | Inspect or pause a lane | `/status` or `/stop` in its topic. Use `/resume` to continue. |
470
91
 
471
- Built on [oh-my-pi](https://github.com/can1357/oh-my-pi), with
472
- [omp-superkit](https://github.com/dbc-hbin/omp-superkit) workflow integration.
473
- The mascot reimagines OMP's pi mark as a little superhero.
92
+ 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
93
 
475
- [Jay (@Momentum96)](https://github.com/Momentum96) contributed the original
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.
94
+ ## Add a remote worker
482
95
 
483
- ## License
96
+ Follow the [SSH worker enrollment guide](docs/OPERATIONS.en.md#add-a-remote-worker). Only HEAD needs messenger credentials.
484
97
 
485
- Project code is licensed under [MIT](LICENSE). Third-party components retain their
486
- separate terms; see [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
98
+ ## Documentation & credits
487
99
 
488
- <p align="center">
489
- <a href="https://github.com/dbc-hbin/omp-superagent/issues">Issues</a> ·
490
- <a href="https://github.com/dbc-hbin/omp-superagent/releases">Releases</a> ·
491
- <a href="https://www.npmjs.com/package/omp-superagent">npm</a>
492
- </p>
100
+ - Operations: [English](docs/OPERATIONS.en.md) · [한국어](docs/OPERATIONS.md)
101
+ - [Design and architecture](DESIGN.md) · [Configuration example](config.example.json) · [Developer verification](docs/OPERATIONS.en.md#6-developer-verification)
102
+ - [Release notes](docs/releases/) · [GitHub downloads](https://github.com/dbc-hbin/omp-superagent/releases)
103
+ - 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.
104
+ - [MIT license](LICENSE) · [Third-party notices](THIRD_PARTY_NOTICES.md)