@paigy/harness 0.3.44 → 0.3.46

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 (4) hide show
  1. package/README.md +25 -32
  2. package/dist/cli.js +632 -222
  3. package/dist/main.js +597 -206
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -11,7 +11,7 @@ other errors, and a failed recovery remain visible failures. Diagnostics name th
11
11
  recovery attempt, and outcome. This mitigates the vendor stream failure; it does not repair
12
12
  Antigravity's internal broadcaster. Keep verbose command output in files and read bounded summaries.
13
13
 
14
- Runs Claude Code and Codex on your machine, mirrors every turn to your Paigy inbox, and
14
+ Runs Claude Code, Codex and Antigravity on your machine, mirrors every turn to your Paigy inbox, and
15
15
  — when you ask it to — **rings your phone when an agent is blocked** (#804).
16
16
 
17
17
  ## Why this exists
@@ -68,18 +68,14 @@ job this mode reserves for the user.
68
68
 
69
69
  ## One rail, level per notification
70
70
 
71
- Mirrored turns and blocking asks ride the **same** notifications rail. What separates
72
- silent history from "answer me now" is `urgency`, not a second store:
73
-
74
- | Event | Level | Why |
75
- | --- | --- | --- |
76
- | a blocked action | `banner` | claims attention; escalates on its own if unanswered |
77
- | a blocked **destructive** action | `call` | `rm -rf` doesn't get to wait for the escalation ladder |
78
- | a turn that failed | `push` | worth knowing soon, not worth a sound |
79
- | our own parse failure | — | not on the rail at all; it's our problem, not yours |
80
-
81
- `paigy/level.ts` decides; `apps/api/src/arbitration/arbitrate.ts` still arbitrates against your
82
- session mode and account permissions and can only lower it.
71
+ Until 2026-09-16 mirrored turns and blocking asks rode one notifications rail at a level
72
+ `paigy/level.ts` chose: `banner` for a blocked action, `call` for a destructive one, `push` for a
73
+ failed turn. Since #2138 the bridge is on the Goal rail (`paigy/bridge.ts`). Every blocked action,
74
+ destructive or not, is a question on the session's Goal with `workItBlocks`, which asks for a call
75
+ (your settings and ring cooldowns still decide); a session that cannot work says so in a contact
76
+ update that asks nothing (`cannotWork`, since #2540); a turn that ends without failing completes the
77
+ Goal unless a question on it is still open or the person spoke on it meanwhile; and nothing the agent
78
+ writes is relayed. `paigy/level.ts` keeps only `isDestructive`, which only `bridge.test.ts` still calls.
83
79
 
84
80
  ## The working log, and the one thing it's allowed to do on your phone
85
81
 
@@ -100,14 +96,12 @@ them under its standing sentence. Every property that makes it not-a-notificatio
100
96
  - **It expires.** Overwritten in place by every beat, retired at the turn boundary, and drawn
101
97
  only while the process is live (`isLive`, the same window as the dot). A tail over a dead
102
98
  run is the working-over-a-corpse state the party already refused.
103
- - **It stays off the rail.** `entryFor` still returns null for every work event, and
104
- `bridge.test.ts` pins it — that assertion is now the guard on this feature too.
99
+ - **It stays off the rail.** Since #2138 the bridge has no path that relays a work event at all (`entryFor`, which returned null for each, went with it); what it sends is the asks, the cannot-work notices and, when a usage limit resets, the call the person asked for (`callForResume`).
105
100
 
106
101
  Only sessions the harness drives have one. A hatched identity used straight from a terminal
107
102
  (`PAIGY_AGENT="…" claude`) emits no work events, so its page shows no strip rather than an
108
- empty box. Note also that presence is **not** in the E2EE lane (`e2ee/flow.md` covers
109
- notifications and responses) — which is why the publisher clips each line and shortens
110
- absolute paths to their last two segments before it leaves the machine.
103
+ empty box. Nothing is end-to-end encrypted now (E2EE and `e2ee/flow.md` were removed on 2026-09-20), which is
104
+ why the publisher clips each line and shortens absolute paths to their last two segments before it leaves the machine.
111
105
 
112
106
  ## Retired queue sweep
113
107
 
@@ -124,12 +118,12 @@ don't get your shell PATH), an auth probe (`codex login status`), a login hint,
124
118
  install one-liner. The window renders it as a doctor: ✓ ready, ◐ needs login (with the
125
119
  command to run), ✗ missing (with an Install button — the command comes from the
126
120
  catalog, never the renderer). Starting a half-configured harness doesn't fail
127
- silently: the hint lands on your Paigy rail as a `push` (`nudgeSetup`).
121
+ silently: the CLI prints the harness's hint and exits before any session starts (`nudgeSetup` and its `push` went in #2138), and a session whose start fails says so in an update on its Goal (`cannotWork`, since #2531 and #2540).
128
122
 
129
123
  ## One transport: ACP
130
124
 
131
- Both harnesses speak **ACP** — the Agent Client Protocol, JSON-RPC over stdio — through
132
- their adapters: `@agentclientprotocol/claude-agent-acp` and `…/codex-acp`. One driver
125
+ All three harnesses speak **ACP** — the Agent Client Protocol, JSON-RPC over stdio — through
126
+ their adapters: `@agentclientprotocol/claude-agent-acp`, `…/codex-acp`, and `paigy-agy-acp`, which ships inside the harness because Antigravity has no ACP mode (#2176). One driver
133
127
  (acp.ts), no parser museum; ACP gave Codex the permission channel `codex exec` never
134
128
  had, and it's the door to every other harness that speaks it (Goose, Cursor, Devin…)
135
129
  as a catalog entry. The stream-json Claude adapter this replaced lives in git history.
@@ -146,7 +140,7 @@ src/paigy/ level.ts event → NotifyLevel
146
140
  conversation.ts the round trip — your words into a running agent's stdin
147
141
  src/ago.ts elapsed time shown in host status
148
142
  src/run.ts the whole bridge, Electron-free — what main.ts and cli.ts both drive
149
- src/main.ts Electron main; renderer/ is a doctor, a form and a log
143
+ src/main.ts Electron main; renderer/ is the pairing beacon, the party, a doctor, the workspace list and a log
150
144
  src/cli.ts `paigy-harness` — the same bridge from a terminal or a service unit
151
145
  ```
152
146
 
@@ -178,9 +172,8 @@ While a host is running (window open, or `paigy-harness host`), its heartbeat
178
172
  advertises ready harnesses + granted workspaces. On the phone: **Agents → "+ New
179
173
  session"** picks from those options and gives the session the pairing flow's identity
180
174
  gestures — a name and a voice — because a session IS a minted pairing: its turns and
181
- everything you say back ride its own conversation. The **notes assign picker** offers
182
- the same as "New <harness> session · <workspace>" rows, naming the session after the
183
- note and delivering the brief as its opening request.
175
+ everything you say back ride its own conversation. The Reassign picker's last row, **"Start a new session"**, launches one
176
+ to take over work that is moving.
184
177
 
185
178
  ## Hatch — pair one device, mint many agents
186
179
 
@@ -244,7 +237,7 @@ The window deliberately has NO run form — launching moved to the phone (docs/c
244
237
  It shows pairing, the party, the doctor, the workspace
245
238
  allow-list, a Stop button, and the log.
246
239
 
247
- Headless flags: `--harness claude|codex`, `--mode bypass|ask`, `--cwd DIR`,
240
+ Headless flags: `--harness claude|codex|agy`, `--mode bypass|ask`, `--cwd DIR`,
248
241
  `--grace SECONDS`, `--doctor`; subcommands `host [--grant DIR]…`,
249
242
  `hatch NAME` and `launch NAME [--under GOAL] BRIEF…`. In ask mode the CLI is TERMINAL-FIRST: a blocked action or open
250
243
  question prints in the terminal and waits `--grace` (default 90s); a person at the
@@ -284,13 +277,13 @@ LAST, after the hooks are gone.
284
277
  - **Auth probes are vendor commands** (`claude auth status`, `codex login status`) and
285
278
  can drift with CLI releases; a probe failure reads as "needs login", so drift shows
286
279
  up as a nagging hint, not a broken start.
287
- - **No session resume, no packaging.** Signing, notarization and auto-update are
288
- unstarted (they block on Apple credentials, not code).
280
+ - **No packaging.** Signing, notarization and auto-update are
281
+ unstarted (they block on Apple credentials, not code). Session resume has shipped: a wake resumes the session an identity belongs to, in the folder it ran in (`host.ts`, owner 2026-09-17).
289
282
  - **Concurrent sessions** (2026-08-03): every claimed spec runs under its OWN minted
290
283
  token — per-run identity is threaded through every network touch (`run.ts` binds
291
284
  submit/check/ack once per session), so parallel sessions never share a
292
- conversation. "Stop sessions" stops them all; per-session stop is UI away.
285
+ conversation. "Stop sessions" stops them all, and since #2933 (2026-10-02) the person ends one session from Paigy (`end_session`, which the host claims).
293
286
  - **The host service IS the daemon** (`paigy-harness service`, launchd, KeepAlive) —
294
- it claims phone launches and runs sessions. The WAKE channel for terminal-agent
295
- replies still belongs to `paigy-listen` + `PAIGY_ON_WAKE` (#486); spawn-on-wake
296
- needs the slot-lease design in docs/clients/desktop/companion.md before it auto-wires.
287
+ it claims phone launches and runs sessions. Since #2015 (2026-09-14) it also
288
+ subscribes to the wake channel for every slot on the machine and spawns or resumes the agent a wake is for;
289
+ `paigy-listen` + `PAIGY_ON_WAKE` (#486) remain for terminal agents the host does not run.