@geohar/un-bien 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/README.md +237 -268
  2. package/dist/bin/launcher.js +38 -0
  3. package/dist/bin/launcher.js.map +1 -0
  4. package/dist/config.d.ts +41 -1
  5. package/dist/config.js.map +1 -1
  6. package/dist/daemon/install.d.ts +33 -35
  7. package/dist/daemon/install.js +43 -73
  8. package/dist/daemon/install.js.map +1 -1
  9. package/dist/enrich_tool_args.d.ts +9 -0
  10. package/dist/enrich_tool_args.js +171 -0
  11. package/dist/enrich_tool_args.js.map +1 -0
  12. package/dist/image_codec.d.ts +22 -0
  13. package/dist/image_codec.js +149 -0
  14. package/dist/image_codec.js.map +1 -0
  15. package/dist/index.d.ts +0 -26
  16. package/dist/index.js +235 -1237
  17. package/dist/index.js.map +1 -1
  18. package/dist/launch.d.ts +34 -0
  19. package/dist/launch.js +171 -0
  20. package/dist/launch.js.map +1 -0
  21. package/dist/launcher/launcher.d.ts +6 -0
  22. package/dist/launcher/launcher.js +188 -0
  23. package/dist/launcher/launcher.js.map +1 -0
  24. package/dist/pairing/crypto.d.ts +4 -0
  25. package/dist/pairing/crypto.js +10 -0
  26. package/dist/pairing/crypto.js.map +1 -1
  27. package/dist/pairing/peer_trust.d.ts +20 -0
  28. package/dist/pairing/peer_trust.js +82 -0
  29. package/dist/pairing/peer_trust.js.map +1 -0
  30. package/dist/pairing/storage.d.ts +51 -26
  31. package/dist/pairing/storage.js +346 -136
  32. package/dist/pairing/storage.js.map +1 -1
  33. package/dist/panel_bridge.d.ts +3 -1
  34. package/dist/panel_bridge.js +10 -10
  35. package/dist/panel_bridge.js.map +1 -1
  36. package/dist/rooms.d.ts +16 -0
  37. package/dist/rooms.js +22 -0
  38. package/dist/rooms.js.map +1 -1
  39. package/dist/session/debug_log.js +2 -2
  40. package/dist/session/debug_log.js.map +1 -1
  41. package/dist/session/local_config.js +2 -0
  42. package/dist/session/local_config.js.map +1 -1
  43. package/dist/session/rpc_envelope.d.ts +18 -0
  44. package/dist/session/rpc_envelope.js +1 -1
  45. package/dist/session/rpc_envelope.js.map +1 -1
  46. package/dist/session/rpc_inbound.d.ts +2 -2
  47. package/dist/session/rpc_inbound.js +1 -1
  48. package/dist/session/rpc_inbound.js.map +1 -1
  49. package/dist/subagent_rooms.d.ts +49 -0
  50. package/dist/subagent_rooms.js +787 -0
  51. package/dist/subagent_rooms.js.map +1 -0
  52. package/dist/transport/peer_channel.d.ts +7 -1
  53. package/dist/transport/peer_channel.js +8 -1
  54. package/dist/transport/peer_channel.js.map +1 -1
  55. package/dist/transport/relay_client.d.ts +19 -0
  56. package/dist/transport/relay_client.js.map +1 -1
  57. package/docs/daemon.md +65 -64
  58. package/package.json +13 -11
  59. package/service-templates/launchd.plist.template +5 -5
  60. package/service-templates/systemd.service.template +2 -2
  61. package/service-templates/task-launcher.vbs.template +5 -5
  62. package/service-templates/task-scheduler.xml.template +1 -1
  63. package/dist/bin/supervisord.js +0 -86
  64. package/dist/bin/supervisord.js.map +0 -1
  65. package/dist/daemon/client.d.ts +0 -20
  66. package/dist/daemon/client.js +0 -131
  67. package/dist/daemon/client.js.map +0 -1
  68. package/dist/daemon/control_protocol.d.ts +0 -176
  69. package/dist/daemon/control_protocol.js +0 -63
  70. package/dist/daemon/control_protocol.js.map +0 -1
  71. package/dist/daemon/cron_log.d.ts +0 -45
  72. package/dist/daemon/cron_log.js +0 -71
  73. package/dist/daemon/cron_log.js.map +0 -1
  74. package/dist/daemon/cron_registry.d.ts +0 -80
  75. package/dist/daemon/cron_registry.js +0 -198
  76. package/dist/daemon/cron_registry.js.map +0 -1
  77. package/dist/daemon/id.d.ts +0 -24
  78. package/dist/daemon/id.js +0 -36
  79. package/dist/daemon/id.js.map +0 -1
  80. package/dist/daemon/registry.d.ts +0 -63
  81. package/dist/daemon/registry.js +0 -153
  82. package/dist/daemon/registry.js.map +0 -1
  83. package/dist/daemon/rpc_child.d.ts +0 -194
  84. package/dist/daemon/rpc_child.js +0 -419
  85. package/dist/daemon/rpc_child.js.map +0 -1
  86. package/dist/daemon/supervisor.d.ts +0 -93
  87. package/dist/daemon/supervisor.js +0 -666
  88. package/dist/daemon/supervisor.js.map +0 -1
  89. /package/dist/bin/{supervisord.d.ts → launcher.d.ts} +0 -0
package/README.md CHANGED
@@ -1,28 +1,26 @@
1
1
  > **Derived from [remote-pi](https://github.com/jacobaraujo7/remote_pi)** by Jacob
2
2
  > Moura, used under the MIT License (preserved in [`LICENSE`](LICENSE)). This tree
3
- > is part of the [un-bien](../README.md) monorepo and is mid-rework — the content
4
- > below still carries upstream branding and is being rebranded to un-bien.
3
+ > is part of the [Un Bien](../README.md) monorepo.
5
4
 
6
5
  <p align="center">
7
- <img src="https://raw.githubusercontent.com/jacobaraujo7/remote_pi/main/branding/logo-full.svg" width="160" alt="Remote Pi logo" />
6
+ <img src="https://raw.githubusercontent.com/georgeharker/un-bien/main/app/icons/un-bien-macos-1024.png" width="160" alt="Un Bien logo" />
8
7
  </p>
9
8
 
10
- <h1 align="center">Remote Pi</h1>
9
+ <h1 align="center">Un Bien</h1>
11
10
 
12
11
  > Extend the [Pi coding agent](https://github.com/earendil-works/pi) with two
13
- > superpowers: agents that talk to each other on the same machine, and a mobile
14
- > app that drives Pi from your phone.
12
+ > superpowers: **remote-control Pi from your phone** (native iOS/macOS app over a
13
+ > relay you host), and a **local agent mesh** where several Pi sessions talk to
14
+ > each other.
15
15
 
16
- **Homepage:** <https://remote-pi.jacobmoura.work>
17
-
18
- `/remote-pi` is a single slash command that wires both at once. Run it; the
19
- first time it asks a couple of questions and you are done.
16
+ `/unbien` is a single slash command that wires both at once. Run it; the first
17
+ time it asks a couple of questions and you are done.
20
18
 
21
19
  ## Protocol & Security
22
20
 
23
21
  For wire format, identity model, ACK protocol, cross-PC routing, mesh
24
22
  membership, and the trust model (what the relay sees and doesn't see),
25
- read [`PROTOCOL.md`](../PROTOCOL.md) at the repo root. It is the canonical
23
+ read [`rpc-envelope`](../docs/rpc-envelope.md) at the repo root. It is the canonical
26
24
  document — this README only covers user-facing setup.
27
25
 
28
26
  ---
@@ -32,22 +30,28 @@ document — this README only covers user-facing setup.
32
30
  Install the extension (one-time):
33
31
 
34
32
  ```bash
35
- pi install npm:remote-pi
33
+ pi install npm:@geohar/un-bien
36
34
  ```
37
35
 
38
36
  Then in any Pi terminal:
39
37
 
40
38
  ```text
41
- /remote-pi
39
+ /unbien
42
40
  ```
43
41
 
44
42
  The first run shows a short interactive wizard (agent name, default session,
45
- whether to auto-start the relay). On every following run, `/remote-pi` joins
46
- the local agent session and starts the relay automatically — no extra typing.
43
+ whether to use the relay on this terminal). On every following run, `/unbien`
44
+ joins the local agent session and starts the relay automatically — no extra
45
+ typing.
46
+
47
+ > **You must configure a relay before the mobile app can connect.** Un Bien ships
48
+ > pointing at **nobody's** infrastructure — there is no built-in default relay.
49
+ > Self-host one (see [The relay](#the-relay)) and point the extension at it with
50
+ > `/unbien set-relay <url>`.
47
51
 
48
52
  ### Try the agent network in 30 seconds
49
53
 
50
- Open **two** Pi terminals in the same directory and run `/remote-pi` in each.
54
+ Open **two** Pi terminals in the same directory and run `/unbien` in each.
51
55
  Both join the same session. Now just talk to the LLM — it has the tools.
52
56
 
53
57
  In terminal A (say it ended up named `agent-A`):
@@ -78,14 +82,13 @@ normalize it.
78
82
 
79
83
  ## What it does
80
84
 
81
- Remote Pi adds two independent layers on top of Pi. You can use either, or
82
- both:
85
+ Un Bien adds two independent layers on top of Pi. You can use either, or both:
83
86
 
84
87
  ### 1) Agent network (local broker, optional cross-PC relay)
85
88
 
86
89
  Several Pi instances running side-by-side in different terminals can discover
87
90
  each other and exchange messages. Each instance is a peer in a named
88
- *session*. The LLM uses:
91
+ _session_. The LLM uses:
89
92
 
90
93
  - `list_peers` — discover current peer routing addresses
91
94
  - `agent_send` — unicast waits for the broker delivery ACK; broadcast is
@@ -97,34 +100,31 @@ current turn, and receive any later reply through the inbox/turn flow with
97
100
  `re` correlating it to the original message id.
98
101
 
99
102
  Peers on the same machine talk over a Unix domain socket at
100
- `~/.pi/remote/sessions/<session-name>/broker.sock`. When sibling PCs are paired,
103
+ `~/.pi/un-bien/sessions/<session-name>/broker.sock`. When sibling PCs are paired,
101
104
  a leader-capable Extension or MCP participant bridges the opaque cross-PC
102
105
  addresses over the relay; local-only use stays on UDS when relay access is off.
103
106
  Useful for splitting work across roles (`backend`, `frontend`, `tests`,
104
107
  `orchestrator`, …) and letting them coordinate.
105
108
 
106
- The first agent to enter a session becomes the *leader* (hosts the broker);
107
- the rest are *followers*. If the leader exits, a follower automatically takes
109
+ The first agent to enter a session becomes the _leader_ (hosts the broker);
110
+ the rest are _followers_. If the leader exits, a follower automatically takes
108
111
  over — the failover is invisible to the LLMs.
109
112
 
110
113
  ### 2) Mobile app (over the relay)
111
114
 
112
- The companion mobile app lets you send prompts to Pi and read its responses
113
- from your phone. The phone and the Pi process find each other through a
114
- **relay**: a small WebSocket server that ferries messages between them.
115
- Pairing is one-time and per device, via QR code.
115
+ The companion native iOS/macOS app lets you **attach to a running Pi session or
116
+ launch a new one** and drive it from your phone: send prompts, read responses,
117
+ answer Pi's interactive prompts, and switch models. The phone and the Pi process
118
+ find each other through a **relay**: a small WebSocket server that ferries
119
+ messages between them. Pairing is one-time and per device, via QR code.
116
120
 
117
121
  Communication uses WebSocket over TLS to the relay. Fields such as `ct` are
118
122
  wire containers, not a systemwide end-to-end confidentiality guarantee: current
119
123
  Pi-forward, cross-PC, app, and control envelopes visible to the relay are not
120
124
  fully opaque or E2E encrypted. A relay operator can see routed plaintext
121
- protocol content and metadata; see [`PROTOCOL.md`](../PROTOCOL.md) for the exact
122
- trust boundaries.
123
-
124
- **Get the app** — all current download options (Google Play, App Store, and
125
- direct builds while public releases roll out):
126
-
127
- <https://remote-pi.jacobmoura.work/#get-the-app>
125
+ protocol content and metadata; see [`rpc-envelope`](../docs/rpc-envelope.md) for the exact
126
+ trust boundaries. **Host the relay yourself** to keep that operator role in your
127
+ own hands.
128
128
 
129
129
  ---
130
130
 
@@ -134,39 +134,41 @@ Beyond the chat, the app surfaces a small set of typed actions you can run
134
134
  on the paired Pi session. Tap the ⚙ button next to the message input (visible
135
135
  when the input is empty) to open the Quick Actions sheet:
136
136
 
137
- | Action | What it does |
138
- | --- | --- |
139
- | **Compact context** | Runs `ctx.compact()` — same as `/compact` in the TUI. |
140
- | **New session** | Runs `ctx.newSession()` — equivalent to `/new`, asks for confirmation first. |
141
- | **Model** | Opens a model picker fed by your authenticated providers (same source the TUI uses) and switches via `pi.setModel(model)`. |
142
- | **Thinking** | Segmented control with the 6 SDK levels (`off` · `minimal` · `low` · `medium` · `high` · `xhigh`). Changes via `pi.setThinkingLevel(level)`. |
137
+ | Action | What it does |
138
+ | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
139
+ | **Compact context** | Runs `ctx.compact()` — same as `/compact` in the TUI. |
140
+ | **New session** | Runs `ctx.newSession()` — equivalent to `/new`, asks for confirmation first. |
141
+ | **Model** | Opens a model picker fed by your authenticated providers (same source the TUI uses) and switches via `pi.setModel(model)`. |
142
+ | **Thinking** | Segmented control with the 6 SDK levels (`off` · `minimal` · `low` · `medium` · `high` · `xhigh`). Changes via `pi.setThinkingLevel(level)`. |
143
143
 
144
144
  Each action gets a structured `action_ok` / `action_error` reply so the app
145
145
  can show a SnackBar on failure. Visible side-effects (chat output, model
146
146
  change broadcasts, compaction notice) still flow through the normal chat
147
- channels. The wire schema is documented in [`PROTOCOL.md`](../PROTOCOL.md)
147
+ channels. The wire schema is documented in [`rpc-envelope`](../docs/rpc-envelope.md)
148
148
  under "App actions".
149
149
 
150
150
  It is **not** a generic slash-command picker. The Pi SDK does not expose
151
151
  programmatic invocation for most builtins (those live in the TUI's
152
152
  interactive loop), so the app exposes only the actions that have a clean
153
- SDK call. The [`pi-telegram`](https://github.com/llblab/pi-telegram) adapter
154
- follows the same pattern.
153
+ SDK call.
155
154
 
156
155
  ### Images
157
156
 
158
- The app can attach **one image** (camera or gallery) to a message. It's
159
- compressed on the device and rides **inline** in the `user_message` the
160
- optional `images` field carries `{ data: <base64>, mime }`. The pi-extension
161
- turns it into the SDK's multimodal content (an `ImageContent` followed by the
162
- caption `TextContent`) and calls `sendUserMessage(content)`, so the model sees
163
- the picture plus your text.
157
+ Un Bien **displays images produced during a session** when a tool or the agent
158
+ emits an image, the extension surfaces it to the app as a preview (customType
159
+ `un-bien:received-image`), capped at 10 MB.
160
+
161
+ On the inbound side, the wire and extension also support **image ingest**: a
162
+ `user_message` may carry an optional `images` field (`{ data: <base64>, mime }`),
163
+ which the extension turns into the SDK's multimodal content (an `ImageContent`
164
+ followed by the caption `TextContent`) and feeds to `sendUserMessage(content)`.
165
+ The mobile app does **not** yet expose an attach control, so this path is
166
+ available to clients but not surfaced in the app today.
164
167
 
165
168
  Whether a model accepts images is surfaced as a `vision` flag on each
166
- `WireModel` (derived from the SDK's `Model.input` including `"image"`); the app
167
- greys out the attach button when the active model is text-only.
169
+ `WireModel` (derived from the SDK's `Model.input` including `"image"`).
168
170
 
169
- The **relay is unchanged** — the image travels inside the same application
171
+ The **relay is unchanged** — an image travels inside the same application
170
172
  message container as the text, so there's no binary channel (large files are a
171
173
  future track). Base64 or a field named `ct` is not an E2E confidentiality
172
174
  boundary; the current Relay visibility follows the trust model above. Text-only
@@ -179,39 +181,39 @@ messages are unaffected.
179
181
  Requirements: Node 20+, Pi (the host coding agent).
180
182
 
181
183
  ```bash
182
- pi install npm:remote-pi
184
+ pi install npm:@geohar/un-bien
183
185
  ```
184
186
 
185
- The extension self-registers the `/remote-pi` slash command and deploys an
187
+ The extension self-registers the `/unbien` slash command and deploys an
186
188
  agent skill that teaches the LLM how to use `list_peers`, `agent_send`, and the
187
189
  event-driven inbox/reply flow.
188
190
 
189
191
  To verify:
190
192
 
191
193
  ```text
192
- /remote-pi config
194
+ /unbien config
193
195
  ```
194
196
 
195
197
  It should print the effective relay URL and where it came from
196
- (`env` / `config` / `default`).
198
+ (`env` / `config` / `unset`).
197
199
 
198
200
  ---
199
201
 
200
- ## Using `/remote-pi`
202
+ ## Using `/unbien`
201
203
 
202
204
  The bare command is the everyday entry point:
203
205
 
204
206
  ```text
205
- /remote-pi
207
+ /unbien
206
208
  ```
207
209
 
208
210
  Behavior depends on whether there's a local config for this directory:
209
211
 
210
- | State | What happens |
211
- | --- | --- |
212
- | First run (no `.pi/remote-pi/config.json`) | Interactive wizard → saves config → joins agent session → starts relay (if you opted in) |
213
- | Returning user, auto-start enabled | Joins agent session + starts relay automatically, then prints status |
214
- | Returning user, auto-start disabled | Prints status only; join/relay must be run manually |
212
+ | State | What happens |
213
+ | ---------------------------------------- | ---------------------------------------------------------------------------------------- |
214
+ | First run (no `.pi/un-bien/config.json`) | Interactive wizard → saves config → joins agent session → starts relay (if you opted in) |
215
+ | Returning user, auto-start enabled | Joins agent session + starts relay automatically, then prints status |
216
+ | Returning user, auto-start disabled | Prints status only; join/relay must be run manually |
215
217
 
216
218
  The wizard asks three questions:
217
219
 
@@ -220,36 +222,36 @@ The wizard asks three questions:
220
222
  an address from this name. Defaults to the directory name.
221
223
  2. **Default session** — the name of the agent-network room for this
222
224
  directory. Multiple terminals in the same directory join the same session.
223
- 3. **Auto-start relay (for mobile app access)?** — `Yes` if you want
224
- `/remote-pi` to also connect to the relay so the mobile app can reach this
225
- Pi. `No` for local-only use (agent network without mobile access).
225
+ 3. **Use the relay on this terminal?** — `Yes` if you want `/unbien` to also
226
+ connect to the relay so the mobile app (and paired PCs) can reach this Pi.
227
+ `No` for local-only use (agent network without mobile access).
226
228
 
227
- Re-run the wizard later with `/remote-pi setup`.
229
+ Re-run the wizard later with `/unbien setup`.
228
230
 
229
231
  ---
230
232
 
231
233
  ## Pairing a mobile device
232
234
 
233
- Once the relay is up (`/remote-pi relay status` shows `started` or `paired`):
235
+ Once the relay is up (`/unbien relay status` shows `started` or `paired`):
234
236
 
235
237
  ```text
236
- /remote-pi pair
238
+ /unbien pair
237
239
  ```
238
240
 
239
- A QR code is printed in the terminal. Scan it with the Remote Pi mobile app.
241
+ A QR code is printed in the terminal. Scan it with the Un Bien mobile app.
240
242
  Pairing is **per machine** — once a device is paired, every Pi process on
241
- this machine accepts it (it lives in `~/.pi/remote/peers.json`).
243
+ this machine accepts it (it lives in `~/.pi/un-bien/peers.json`).
242
244
 
243
245
  To list paired devices:
244
246
 
245
247
  ```text
246
- /remote-pi devices
248
+ /unbien devices
247
249
  ```
248
250
 
249
251
  To remove one:
250
252
 
251
253
  ```text
252
- /remote-pi revoke <shortid>
254
+ /unbien revoke <shortid>
253
255
  ```
254
256
 
255
257
  The shortid is the first 8 chars shown by `devices`.
@@ -259,60 +261,36 @@ The shortid is the first 8 chars shown by `devices`.
259
261
  ## The relay
260
262
 
261
263
  The relay is the network boundary. TLS protects transit, but the Relay can see
262
- routed plaintext protocol content and metadata; use a relay you trust or
263
- self-host. There is no systemwide or PC-mesh E2E guarantee. For Pi-to-Pi
264
+ routed plaintext protocol content and metadata; **use a relay you trust or
265
+ self-host**. There is no systemwide or PC-mesh E2E guarantee. For Pi-to-Pi
264
266
  forwarding, the Relay currently permits a route when any correctly signed Owner
265
267
  blob lists both canonical Pi keys. That does not prove the Owner paired with or
266
268
  controls either Pi.
267
269
 
268
- ### Upgrade order (Relay 0.3 first, then Extension 0.6)
269
-
270
- Upgrade the **Relay to 0.3 first**: an old Extension can consume the new
271
- Relay's UUID errors. Extension 0.6 carries a one-release legacy wire-label
272
- shim, so mixed new/old Extensions interoperate when both select the same unique
273
- colon-free signed nickname label, or when neither has one and both use the
274
- canonical standard-padded key prefix. Delimiter or collision cases, like
275
- divergent nickname views, are unsupported and may be silently dropped by the
276
- old receiver. Upgrade all Extension/MCP participants in one maintenance window.
277
- The shim does not replace the receiver-local aliases returned by `list_peers`;
278
- addresses remain opaque.
279
-
280
- Extension 0.6 accepts an old Relay's lowercase 32-hex trusted error ID only as
281
- a narrow shim for an old Relay or Relay rollback; that shim is not why
282
- Relay-first is safe.
270
+ **Un Bien ships with no default relay** `/unbien config` reports `unset` until
271
+ you configure one, and the extension refuses to connect until you do.
283
272
 
284
- You have two options:
273
+ ### Self-host the relay
285
274
 
286
- ### Option A Use the community relay
287
-
288
- `https://relay-rp1.jacobmoura.work` (default). Zero setup. Good for trying
289
- things out or for casual use. (The extension converts to `wss://…`
290
- internally when opening the connection — both schemes point at the same
291
- endpoint.)
292
-
293
- Caveats:
294
-
295
- - Shared infrastructure — availability is best-effort.
296
- - **There is no IP allow-listing or VPN gating**.
297
-
298
- ### Option B — Self-host (recommended for privacy)
299
-
300
- Run the relay yourself in Docker and put it behind a VPN like
275
+ Run the relay yourself and put it behind a VPN like
301
276
  [Tailscale](https://tailscale.com), [WireGuard](https://www.wireguard.com),
302
277
  or your own VPC. Because the relay's network-level protection is just TLS +
303
278
  keypair authentication, layering a VPN on top means **only your devices** can
304
279
  even reach the WebSocket port — defense in depth.
305
280
 
306
- Quick Docker outline (see the
307
- [relay README](https://github.com/jacobaraujo7/remote_pi/blob/main/relay/README.md#self-hosted-relay-recommended-for-privacy)
308
- for the full setup, environment variables, and reverse-proxy guidance):
281
+ Build and run from the `relay/` crate in this monorepo (see the
282
+ [relay README](../relay/README.md) for environment variables and reverse-proxy
283
+ guidance):
309
284
 
310
285
  ```bash
286
+ # From the monorepo root:
287
+ docker build -t un-bien-relay ./relay
311
288
  docker run -d \
312
- --name remote-pi-relay \
289
+ --name un-bien-relay \
313
290
  -p 3000:3000 \
291
+ -v un-bien-data:/data \
314
292
  --restart unless-stopped \
315
- ghcr.io/jacobaraujo7/remote-pi-relay:latest
293
+ un-bien-relay
316
294
  ```
317
295
 
318
296
  Bind the container to your VPN interface, terminate TLS in a reverse proxy,
@@ -323,7 +301,7 @@ and point both your Pi and your phone at the resulting `https://…` URL.
323
301
  Once your relay is reachable, tell the extension:
324
302
 
325
303
  ```text
326
- /remote-pi relay url https://relay.yourdomain.tld
304
+ /unbien relay url https://relay.yourdomain.tld
327
305
  ```
328
306
 
329
307
  The URL **must** be `http://` or `https://` — `ws://` / `wss://` are
@@ -331,21 +309,23 @@ rejected at validation. The extension converts to WebSocket internally when
331
309
  it opens the connection. Same canonical form for the mobile app and any
332
310
  self-hosting docs: paste the URL your reverse proxy exposes.
333
311
 
334
- This writes `~/.pi/remote/config.json` with `{ "relay": "..." }`. Resolution
335
- order (highest precedence first):
312
+ This writes the `relay` field into the global config at
313
+ `~/.pi/extensions/un-bien.json`. Resolution order (highest precedence first):
314
+
315
+ 1. `UNBIEN_RELAY` environment variable (CI / one-off overrides)
316
+ 2. `relay` field in `~/.pi/extensions/un-bien.json`
336
317
 
337
- 1. `REMOTE_PI_RELAY` environment variable (CI / one-off overrides)
338
- 2. `~/.pi/remote/config.json`
339
- 3. The built-in default (`https://relay-rp1.jacobmoura.work`)
318
+ There is **no built-in default** when neither is set, the extension refuses
319
+ to connect and prompts you to configure a relay.
340
320
 
341
321
  Verify the active URL and its source with:
342
322
 
343
323
  ```text
344
- /remote-pi config
324
+ /unbien config
345
325
  ```
346
326
 
347
- If you change the URL while connected, run `/remote-pi relay stop` then
348
- `/remote-pi relay start` (or `/remote-pi relay` to toggle).
327
+ If you change the URL while connected, run `/unbien relay stop` then
328
+ `/unbien relay start` (or `/unbien relay` to toggle).
349
329
 
350
330
  The mobile app has its own relay-URL setting in its preferences pane — keep
351
331
  both pointing at the same relay.
@@ -394,16 +374,16 @@ original message id.
394
374
 
395
375
  The wire format is a 5-field envelope `{ from, to, id, re, body }` serialized
396
376
  as one JSON line per message. The leader's broker writes an `audit.jsonl`
397
- log at `~/.pi/remote/sessions/<name>/audit.jsonl` for postmortem inspection.
377
+ log at `~/.pi/un-bien/sessions/<name>/audit.jsonl` for postmortem inspection.
398
378
 
399
379
  Useful commands:
400
380
 
401
- | Command | What it does |
402
- | --- | --- |
403
- | `/remote-pi` | Join the local mesh (and start the relay, if enabled) |
404
- | `/remote-pi peers` | List local + cross-PC mesh peers, grouped by PC |
405
- | `/remote-pi rename <new>` | Rename this agent in the current session |
406
- | `/remote-pi stop` | Leave the local mesh and disconnect the relay |
381
+ | Command | What it does |
382
+ | ---------------------- | ----------------------------------------------------- |
383
+ | `/unbien` | Join the local mesh (and start the relay, if enabled) |
384
+ | `/unbien peers` | List local + cross-PC mesh peers, grouped by PC |
385
+ | `/unbien rename <new>` | Rename this agent in the current session |
386
+ | `/unbien stop` | Leave the local mesh and disconnect the relay |
407
387
 
408
388
  Name collisions inside a session get a numeric suffix automatically
409
389
  (`backend`, `backend#2`, `backend#3`). The broker assigns it and returns the
@@ -415,71 +395,69 @@ real name to the peer.
415
395
 
416
396
  ### Local session (one Pi, one terminal)
417
397
 
418
- | Command | Description |
419
- | --- | --- |
420
- | `/remote-pi` | Connect (join local mesh + start relay), or run setup on first use |
421
- | `/remote-pi setup` | Run the setup wizard and update local config |
422
- | `/remote-pi status` | Show local mesh + relay status |
423
- | `/remote-pi stop` | Stop everything for **this** terminal (mesh + relay) |
424
- | `/remote-pi pair` | Show QR code + copy-paste pairing URI for a new mobile device |
425
- | `/remote-pi devices` | List paired mobile devices (online/offline per device) |
426
- | `/remote-pi revoke <shortid>` | Revoke a paired device by its shortid |
427
- | `/remote-pi set-relay <url>` | Persist a new relay URL (http:// or https://) |
428
- | `/remote-pi relay [start\|stop\|status]` | Relay-only control — leaves local mesh membership untouched (no verb = toggle) |
429
- | `/remote-pi relay url <url>` | Same as `set-relay` |
430
- | `/remote-pi config` | Show the effective relay URL and its source (env / config / default) |
398
+ | Command | Description |
399
+ | ------------------------------------- | ------------------------------------------------------------------------------ |
400
+ | `/unbien` | Connect (join local mesh + start relay), or run setup on first use |
401
+ | `/unbien setup` | Run the setup wizard and update local config |
402
+ | `/unbien status` | Show local mesh + relay status |
403
+ | `/unbien stop` | Stop everything for **this** terminal (mesh + relay) |
404
+ | `/unbien pair` | Show QR code + copy-paste pairing URI for a new mobile device |
405
+ | `/unbien devices` | List paired mobile devices (online/offline per device) |
406
+ | `/unbien revoke <shortid>` | Revoke a paired device by its shortid |
407
+ | `/unbien set-relay <url>` | Persist a new relay URL (http:// or https://) |
408
+ | `/unbien relay [start\|stop\|status]` | Relay-only control — leaves local mesh membership untouched (no verb = toggle) |
409
+ | `/unbien relay url <url>` | Same as `set-relay` |
410
+ | `/unbien config` | Show the effective relay URL and its source (env / config / unset) |
431
411
 
432
412
  ### Daemon fleet (one supervisor, N background Pis — see [Daemon mode](#daemon-mode))
433
413
 
434
- | Command | Description |
435
- | --- | --- |
436
- | `/remote-pi create <cwd> [--name X]` | Register a folder as a daemon |
437
- | `/remote-pi remove <id>` | Unregister a daemon (local config preserved) |
438
- | `/remote-pi daemons` | List registered daemons + state |
439
- | `/remote-pi daemon start` | Start every registered daemon |
440
- | `/remote-pi daemon stop` | Stop every running daemon (`/remote-pi stop` stops only the local terminal) |
441
- | `/remote-pi daemon restart` | Stop + start all daemons |
442
- | `/remote-pi daemon status` | Detailed runtime status (pid, uptime, restart count) |
443
- | `/remote-pi daemon send <id> "<text>"` | Send a prompt to a specific daemon |
444
- | `/remote-pi cron add <id> "<expr>" "<prompt>"` | Schedule a recurring prompt (`--tz`, `--wake`, `--no-skip-busy`, `--catchup`) |
445
- | `/remote-pi cron list` | List scheduled jobs (schedule, enabled, next run, last status) |
446
- | `/remote-pi cron run <jobId>` | Fire a job now (ignores its schedule) |
447
- | `/remote-pi cron enable\|disable <jobId>` | Toggle a job on/off |
448
- | `/remote-pi cron remove <jobId>` | Delete a job |
449
- | `/remote-pi cron log [<jobId>] [--tail N]` | Read the fire/skip audit log |
450
- | `/remote-pi install` | Install `pi-supervisord` as a system service |
451
- | `/remote-pi uninstall` | Remove the system service (registry preserved) |
414
+ | Command | Description |
415
+ | ------------------------------------------- | ----------------------------------------------------------------------------- |
416
+ | `/unbien create <cwd> [--name X]` | Register a folder as a daemon |
417
+ | `/unbien remove <id>` | Unregister a daemon (local config preserved) |
418
+ | `/unbien daemons` | List registered daemons + state |
419
+ | `/unbien daemon start` | Start every registered daemon |
420
+ | `/unbien daemon stop` | Stop every running daemon (`/unbien stop` stops only the local terminal) |
421
+ | `/unbien daemon restart` | Stop + start all daemons |
422
+ | `/unbien daemon status` | Detailed runtime status (pid, uptime, restart count) |
423
+ | `/unbien daemon send <id> "<text>"` | Send a prompt to a specific daemon |
424
+ | `/unbien cron add <id> "<expr>" "<prompt>"` | Schedule a recurring prompt (`--tz`, `--wake`, `--no-skip-busy`, `--catchup`) |
425
+ | `/unbien cron list` | List scheduled jobs (schedule, enabled, next run, last status) |
426
+ | `/unbien cron run <jobId>` | Fire a job now (ignores its schedule) |
427
+ | `/unbien cron enable\|disable <jobId>` | Toggle a job on/off |
428
+ | `/unbien cron remove <jobId>` | Delete a job |
429
+ | `/unbien cron log [<jobId>] [--tail N]` | Read the fire/skip audit log |
430
+ | `/unbien install` | Install `pi-supervisord` as a system service |
431
+ | `/unbien uninstall` | Remove the system service (registry preserved) |
452
432
 
453
433
  All commands above work both as Pi slash commands (interactive) and as
454
- shell-level `remote-pi <subcommand>` when the package is installed
455
- globally (`npm install -g remote-pi`).
434
+ shell-level `unbien <subcommand>` when the package is installed
435
+ globally (`npm install -g @geohar/un-bien`).
456
436
 
457
437
  ### Scheduled prompts (`cron`)
458
438
 
459
- `remote-pi cron` schedules **recurring prompts** to daemons through the
439
+ `unbien cron` schedules **recurring prompts** to daemons through the
460
440
  supervisor — e.g. a daily "summarise new PRs". Output flows fire-and-forget to
461
441
  the mesh/app like any prompt; the cron layer only audits the dispatch.
462
442
 
463
- - **Schedule** is a cron expression (croner syntax; an optional 6th *seconds*
443
+ - **Schedule** is a cron expression (croner syntax; an optional 6th _seconds_
464
444
  field is supported), with an optional IANA timezone via `--tz`:
465
445
 
466
446
  ```sh
467
- remote-pi cron add a1b2c3d4 "0 9 * * *" "Summarise new PRs" --tz America/Sao_Paulo
447
+ unbien cron add a1b2c3d4 "0 9 * * *" "Summarise new PRs" --tz America/Sao_Paulo
468
448
  ```
469
449
 
470
450
  - **Minimum interval is 60s** — more frequent schedules are rejected (guards
471
451
  token cost + pileup). A fire is **skipped when the daemon is mid-turn**
472
452
  (`--no-skip-busy` to override); `--wake` starts a stopped daemon first;
473
453
  `--catchup` runs once on supervisor start if the previous run was missed.
474
- - **Prerequisite**: the supervisor must run as a service (`remote-pi install`).
454
+ - **Prerequisite**: the supervisor must run as a service (`unbien install`).
475
455
  Without it there is no scheduler, and `cron` commands say so instead of
476
456
  silently pretending to schedule.
477
457
  - **Audit**: every fire **and** every skip appends one line to
478
- `~/.pi/remote/cron.jsonl` with a `result` of `delivered`,
458
+ `~/.pi/un-bien/cron.jsonl` with a `result` of `delivered`,
479
459
  `woke_and_delivered`, `deliver_failed`, `skipped_busy`, `skipped_down`, or
480
- `skipped_disabled` — read it with `remote-pi cron log`.
481
-
482
- Step-by-step walkthrough: the [daemon tutorial](https://remote-pi.jacobmoura.work/tutorials/daemon).
460
+ `skipped_disabled` — read it with `unbien cron log`.
483
461
 
484
462
  ### Footer + title
485
463
 
@@ -506,22 +484,22 @@ See [`docs/daemon.md`](./docs/daemon.md) for troubleshooting.
506
484
  ### One-time setup
507
485
 
508
486
  ```bash
509
- # Install the package globally so `remote-pi` and `pi-supervisord`
510
- # are on your PATH (`pi install npm:remote-pi` alone makes the Pi
487
+ # Install the package globally so `unbien` and `pi-supervisord`
488
+ # are on your PATH (`pi install npm:@geohar/un-bien` alone makes the Pi
511
489
  # extension available but does NOT expose the CLI binaries — see
512
490
  # https://docs.npmjs.com/cli/v10/configuring-npm/package-json#bin).
513
- npm install -g remote-pi
491
+ npm install -g @geohar/un-bien
514
492
 
515
493
  # Install the supervisor as a user-level system service. Linux uses
516
494
  # systemd --user; macOS uses launchd LaunchAgent. Both auto-start at
517
495
  # login and survive reboots.
518
- remote-pi install
496
+ unbien install
519
497
  ```
520
498
 
521
499
  The `install` command:
522
500
 
523
- - Writes `~/.config/systemd/user/remote-pi-supervisord.service` (Linux)
524
- or `~/Library/LaunchAgents/dev.remotepi.supervisord.plist` (macOS)
501
+ - Writes `~/.config/systemd/user/unbien-supervisord.service` (Linux)
502
+ or `~/Library/LaunchAgents/dev.unbien.supervisord.plist` (macOS)
525
503
  - Activates it via `systemctl --user enable --now` or `launchctl bootstrap`
526
504
  - The supervisor starts immediately and re-starts on every login
527
505
 
@@ -532,25 +510,25 @@ For each agent you want to keep alive 24/7:
532
510
  ```bash
533
511
  # 1. Configure the agent interactively first (one time).
534
512
  cd ~/Movies
535
- pi # /remote-pi → setup wizard, /remote-pi pair, etc
513
+ pi # /unbien → setup wizard, /unbien pair, etc
536
514
 
537
515
  # 2. Promote to a daemon. The id is derived from the cwd
538
516
  # (sha256(realpath)[:8]), stable across machines.
539
- remote-pi create ~/Movies --name "Video Editor"
517
+ unbien create ~/Movies --name "Video Editor"
540
518
  # → Daemon registered: id=4e39152d name="Video Editor" cwd=/Users/x/Movies
541
519
 
542
520
  # 3. Start it (supervisor spawns `pi --mode rpc` for this folder).
543
- remote-pi daemon start
521
+ unbien daemon start
544
522
  ```
545
523
 
546
524
  Now you can:
547
525
 
548
526
  ```bash
549
- remote-pi daemons # list + state
550
- remote-pi daemon status # uptime, pid, restart count
551
- remote-pi daemon send 4e39152d "Cut the first 30 seconds of latest clip"
552
- remote-pi daemon stop # stop all
553
- remote-pi daemon restart # restart all
527
+ unbien daemons # list + state
528
+ unbien daemon status # uptime, pid, restart count
529
+ unbien daemon send 4e39152d "Cut the first 30 seconds of latest clip"
530
+ unbien daemon stop # stop all
531
+ unbien daemon restart # restart all
554
532
  ```
555
533
 
556
534
  The agent receives the prompt as if a user typed it; its response flows
@@ -561,27 +539,27 @@ via the local UDS mesh.
561
539
  ### Removing or uninstalling
562
540
 
563
541
  ```bash
564
- remote-pi remove <id> # unregister one daemon (config preserved)
565
- remote-pi uninstall # remove the supervisor service (registry kept)
542
+ unbien remove <id> # unregister one daemon (config preserved)
543
+ unbien uninstall # remove the supervisor service (registry kept)
566
544
  ```
567
545
 
568
546
  `uninstall` is reversible — re-running `install` later brings every
569
547
  registered daemon back. To wipe the registry entirely, `rm
570
- ~/.pi/remote/daemons.json`.
548
+ ~/.pi/un-bien/daemons.json`.
571
549
 
572
550
  ### Where to find logs
573
551
 
574
- | Platform | Command |
575
- | --- | --- |
576
- | Linux | `journalctl --user -u remote-pi-supervisord -f` |
577
- | macOS | `tail -f ~/.pi/remote/supervisord.log` |
552
+ | Platform | Command |
553
+ | -------- | -------------------------------------------- |
554
+ | Linux | `journalctl --user -u unbien-supervisord -f` |
555
+ | macOS | `tail -f ~/.pi/un-bien/supervisord.log` |
578
556
 
579
557
  Each spawned daemon's stderr is forwarded into the supervisor's log
580
558
  with a `[<cwd>]` prefix, so a single log stream shows every agent.
581
559
 
582
- ### Caveats (plan/26 trade-offs)
560
+ ### Caveats
583
561
 
584
- - **Tool approval is not gated.** Daemons inherit the same Pi config
562
+ - **Tool execution is not gated.** Daemons inherit the same Pi config
585
563
  the interactive run uses — Bash, Edit, Write etc. all execute without
586
564
  prompting. Configure Pi's tool permissions to taste before promoting
587
565
  a folder to daemon.
@@ -596,65 +574,80 @@ with a `[<cwd>]` prefix, so a single log stream shows every agent.
596
574
 
597
575
  ---
598
576
 
599
- ## Configuration files
577
+ ## Configuration & settings
600
578
 
601
- | Path | Scope | What's in it |
602
- | --- | --- | --- |
603
- | `<cwd>/.pi/remote-pi/config.json` | Per-directory | `agent_name`, `session_name`, `auto_start_relay` |
604
- | `~/.pi/remote/config.json` | Per-user | `relay` URL; optional `defaults.auto_start_relay` (machine-wide fallback for per-directory configs) |
605
- | `~/.pi/remote/peers.json` | Per-machine | Paired mobile devices |
606
- | `~/.pi/remote/sessions/<name>/` | Per-session | Broker socket + `audit.jsonl` |
607
- | `~/.pi/remote/skills/agent-network/SKILL.md` | Per-user | Agent skill the LLM reads |
579
+ ### Files
608
580
 
609
- Every path above **except the global `config.json`** derives from a single
610
- **state root** by default `~/.pi/remote`. Two environment variables relocate
611
- that state root:
581
+ | Path | Scope | What's in it |
582
+ | --------------------------------------------- | ----------------- | ------------------------------------------------------------------------------ |
583
+ | `~/.pi/extensions/un-bien.json` | Per-user (global) | `relay` URL, `defaults`, `identity`, `debug` — the global settings (see below) |
584
+ | `<cwd>/.pi/un-bien/config.json` | Per-directory | `agent_name`, `auto_start_relay`, `allow_remote_launch` |
585
+ | `~/.pi/un-bien/identity.json` | Per-machine | Paired identity keypair (file identity backend; `0600`) |
586
+ | `~/.pi/un-bien/peers.json` | Per-machine | Paired mobile devices |
587
+ | `~/.pi/un-bien/sessions/<name>/` | Per-session | Broker socket + `audit.jsonl` |
588
+ | `~/.pi/un-bien/daemons.json` | Per-machine | Daemon registry |
589
+ | `~/.pi/un-bien/cron.json` · `cron.jsonl` | Per-machine | Cron registry + fire/skip audit log |
590
+ | `~/.pi/un-bien/supervisor.sock` | Per-machine | Supervisor control socket |
591
+ | `~/.pi/un-bien/skills/agent-network/SKILL.md` | Per-user | Agent skill the LLM reads |
612
592
 
613
- | Variable | Behaviour |
614
- | --- | --- |
615
- | `REMOTE_PI_DIR` | Absolute path to the state root. No suffix appended — set this to an XDG-style location like `~/.config/pi/remote-pi`. Takes priority over every other variable. |
616
- | `REMOTE_PI_HOME` | Stand-in for `$HOME`; state lives at `<REMOTE_PI_HOME>/.pi/remote`. Kept for backward compatibility. |
593
+ ### Global settings `~/.pi/extensions/un-bien.json`
617
594
 
618
- When both are set, `REMOTE_PI_DIR` wins. Use these to put remote-pi **state**
619
- (sessions, daemon registries, cwd locks, paired identity) on a specific disk,
620
- inside an XDG directory, or anywhere your system's conventions dictate.
621
-
622
- The global `config.json` (relay URL + defaults) is resolved separately, so it
623
- can sit beside the coding agent's own settings rather than the state tree:
624
-
625
- | Variable | Behaviour |
626
- |---|---|
627
- | `PI_CODING_AGENT_DIR` | The Pi host's settings root (default `~/.pi`). `config.json` lives at `<PI_CODING_AGENT_DIR>/remote/config.json`, so with the default agent dir the path stays exactly `~/.pi/remote/config.json`. Takes priority for config. |
628
-
629
- When `PI_CODING_AGENT_DIR` is unset, `config.json` falls back to the state root
630
- above (so a pure `REMOTE_PI_DIR` relocation still keeps config beside the rest).
631
-
632
- ### Global defaults
633
-
634
- The global `~/.pi/remote/config.json` can include a `defaults` block that acts
635
- as a fallback for every per-directory config that doesn't set the field:
595
+ This is a Pi **extension config** (it lives beside the coding agent's own
596
+ settings, under `PI_CODING_AGENT_DIR/extensions/`, not in the state tree). All
597
+ fields are optional:
636
598
 
637
599
  ```jsonc
638
600
  {
601
+ // Relay URL in canonical http(s):// form. No default — unset means the
602
+ // extension refuses to connect. Set via `/unbien set-relay <url>`.
639
603
  "relay": "https://relay.yourdomain.tld",
640
- "defaults": {
641
- "auto_start_relay": true
642
- }
604
+
605
+ // Machine-wide fallback for every per-cwd config that doesn't set the field.
606
+ // Pin auto-start once instead of dropping a file into every repo.
607
+ "defaults": { "auto_start_relay": true },
608
+
609
+ // Machine-identity storage. `storage` selects the PRIMARY backend for this
610
+ // Pi's long-term Ed25519 seed: "keychain" (OS-secured, default) or "file"
611
+ // (a 0600 seed file — the SSH-private-key model: cat-able, portable,
612
+ // works headless). `path` overrides the file-backend location
613
+ // (default ~/.pi/un-bien/identity.json). The unselected backend is still
614
+ // READ to recover an existing identity, but never written.
615
+ "identity": { "storage": "keychain", "path": "~/.pi/un-bien/identity.json" },
616
+
617
+ // File-based diagnostic logs. Off by default. Read from config (not env)
618
+ // because the daemon fork usually runs detached without a shell's env.
619
+ "debug": { "envelope": false, "panels": false },
643
620
  }
644
621
  ```
645
622
 
646
- This lets you pin `auto_start_relay` once beside `relay` — instead of
647
- dropping a `config.json` into every repo. A per-directory file (or the
648
- `REMOTE_PI_DIRECT_CONFIG` env var) still overrides the global default.
623
+ ### Per-directory settings`<cwd>/.pi/un-bien/config.json`
624
+
625
+ Written by the `/unbien` setup wizard:
649
626
 
650
- The `defaults` block is read from wherever the global `config.json` resolves, so
651
- it follows a relocated config: with `PI_CODING_AGENT_DIR` set it lives at
652
- `<PI_CODING_AGENT_DIR>/remote/config.json` (see the environment overrides above).
627
+ | Field | Default | Meaning |
628
+ | --------------------- | -------------- | ------------------------------------------------------------------------------------------ |
629
+ | `agent_name` | directory name | Presentation leaf name for this agent (senders still use the opaque `list_peers` address) |
630
+ | `auto_start_relay` | `true` | On a fresh terminal, `/unbien` auto-joins the mesh and starts the relay |
631
+ | `allow_remote_launch` | `false` | Honor `session_launch` requests from a paired owner (spawn a new Pi session). Opt-in only. |
632
+
633
+ ### Environment variables
634
+
635
+ | Variable | Purpose |
636
+ | ---------------------- | -------------------------------------------------------------------------------------------------------------------------- |
637
+ | `UNBIEN_RELAY` | Relay URL override (highest precedence, ahead of the config file). CI / one-off use. |
638
+ | `UNBIEN_DIR` | Absolute override of the **state** dir itself (no `.pi/un-bien` suffix). The knob for an XDG-style relocation. |
639
+ | `UNBIEN_HOME` | Stand-in `$HOME`; state lives at `<UNBIEN_HOME>/.pi/un-bien`. When both are set, `UNBIEN_DIR` wins. |
640
+ | `PI_CODING_AGENT_DIR` | The Pi host's settings root (default `~/.pi`); the global config lives at `<PI_CODING_AGENT_DIR>/extensions/un-bien.json`. |
641
+ | `UNBIEN_DIRECT_CONFIG` | Inline per-cwd config (JSON) instead of a `.pi/un-bien/config.json` file — used by the daemon supervisor. |
642
+
643
+ `UNBIEN_DIR`/`UNBIEN_HOME` relocate un-bien **state** (sessions, daemon
644
+ registries, cwd locks, paired identity). `PI_CODING_AGENT_DIR` relocates only
645
+ the global **config**, so it can sit beside the coding agent's own settings.
653
646
 
654
647
  Override the relay for a single run without persisting:
655
648
 
656
649
  ```bash
657
- REMOTE_PI_RELAY=https://staging.example.tld pi
650
+ UNBIEN_RELAY=https://staging.example.tld pi
658
651
  ```
659
652
 
660
653
  ---
@@ -662,15 +655,18 @@ REMOTE_PI_RELAY=https://staging.example.tld pi
662
655
  ## Troubleshooting
663
656
 
664
657
  **Footer says `🟡 relay waiting for pairing` even though I paired a device.**
665
- The icon reflects whether *any* device has been paired on this machine, not
658
+ The icon reflects whether _any_ device has been paired on this machine, not
666
659
  whether one is connected right now. If you really have a paired device in
667
- `/remote-pi devices`, restart Pi — the cache may be stale (fixed in current
660
+ `/unbien devices`, restart Pi — the cache may be stale (fixed in current
668
661
  release; report a bug if it recurs).
669
662
 
670
663
  **Mobile app times out connecting.** Verify the same relay URL is configured
671
664
  on both sides. If you self-host behind a VPN, your phone must also be on the
672
665
  VPN (Tailscale on iOS/Android works fine).
673
666
 
667
+ **`/unbien config` says the relay is `unset`.** Un Bien has no default relay.
668
+ Self-host one and set it with `/unbien set-relay <url>` (or `UNBIEN_RELAY`).
669
+
674
670
  **`agent_request` keeps timing out.** It is deprecated because it blocks the
675
671
  turn while waiting for another agent's content reply. Migrate to `agent_send`;
676
672
  a unicast waits only for the delivery ACK, and the receiver can reply later
@@ -683,44 +679,17 @@ other terminal first.
683
679
 
684
680
  ---
685
681
 
686
- ## Branding
687
-
688
- Official brand assets live in
689
- [`/branding`](https://github.com/jacobaraujo7/remote_pi/tree/main/branding) —
690
- SVG sources for the logo (full, foreground, background, monochrome) plus a
691
- banner. See the
692
- [branding README](https://github.com/jacobaraujo7/remote_pi/blob/main/branding/README.md)
693
- for palette and export sizes.
694
-
695
- <table>
696
- <tr>
697
- <td align="center">
698
- <img src="https://raw.githubusercontent.com/jacobaraujo7/remote_pi/main/branding/logo-full.svg" width="96" alt="logo-full" /><br/>
699
- <sub><code>logo-full</code></sub>
700
- </td>
701
- <td align="center">
702
- <img src="https://raw.githubusercontent.com/jacobaraujo7/remote_pi/main/branding/logo-foreground.svg" width="96" alt="logo-foreground" /><br/>
703
- <sub><code>logo-foreground</code></sub>
704
- </td>
705
- <td align="center">
706
- <img src="https://raw.githubusercontent.com/jacobaraujo7/remote_pi/main/branding/logo-monochrome.svg" width="96" alt="logo-monochrome" /><br/>
707
- <sub><code>logo-monochrome</code></sub>
708
- </td>
709
- </tr>
710
- </table>
711
-
712
- ---
713
-
714
682
  ## Links
715
683
 
716
- - Homepage: <https://remote-pi.jacobmoura.work>
717
- - Source: <https://github.com/jacobaraujo7/remote_pi>
684
+ - Repository: <https://github.com/georgeharker/un-bien>
685
+ - Documentation: <https://docs.georgeharker.com/un-bien>
718
686
  - Pi coding agent: <https://github.com/earendil-works/pi>
719
- - Relay (self-hosting guide): <https://github.com/jacobaraujo7/remote_pi/blob/main/relay/README.md>
720
- - Issues / bugs: <https://github.com/jacobaraujo7/remote_pi/issues>
687
+ - Relay (self-hosting guide): [`../relay/README.md`](../relay/README.md)
688
+ - Upstream project (remote-pi, MIT): <https://github.com/jacobaraujo7/remote_pi>
721
689
 
722
690
  ---
723
691
 
724
692
  ## License
725
693
 
726
- MIT
694
+ MIT — derived from [remote-pi](https://github.com/jacobaraujo7/remote_pi) by
695
+ Jacob Moura. See [`LICENSE`](LICENSE).