oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1# Paseo probe for Equipo plan 0
2
3Tested on docs-t1 on 2026-11-01 against CLI and daemon 0.14.0. Read section 6.9 of the Equipo design first. Build the runner around the structured client API; the CLI alone does not supply a JSON event stream. Cancellation needs more than `stop`.
4
5Evidence below distinguishes live tests from documentation and source inspection. JSON excerpts omit unrelated fields. Two Haiku 4.5 agents ran five prompted turns altogether: file write, question, rejected sleep command, background/foreground cancellation, and an MCP call. No helper agents or reviewers ran. No daemon configuration, sign-ins, or host registrations were changed. No commits or pushes were made in equipo-design; the disposable repository received one empty seed commit so the worktree could start from a real hash.
6
7Commands use these abbreviations for the exact paths and IDs tested:
8
9```sh
10P=/home/paulca/.cache/tmp/equipo-paseo-probe-vnpbwsk1
11W=/home/paulca/.paseo/worktrees/3ts4lj9g/equipo-probe-vnpbwsk1
12WS=wks_ed152d6e0762a1fb
13A=920363b1-2c8a-471e-819f-5be735981e5b
14B=93d551b6-37a0-48c3-b503-b3987d3dc021
15CLI=/home/paulca/.local/lib/node_modules/@getpaseo/cli
16Z=/home/paulca/.paseo/plugins/zerosub/62e3ee9e-87c0-4453-9a09-3e59cd91b60a/node_modules/@kapybara/zerosub
17```
18
19```text
20$ paseo --version
210.14.0
22$ paseo daemon status --json
23{"home":"/home/paulca/.paseo","listen":"127.0.0.1:6767",
24 "serverId":"srv_ZwrHnYLkipmz","hostname":"DOCS-T1",
25 "daemonVersion":"0.14.0","desktopManaged":false,"connectedDaemon":"reachable"}
26$ paseo provider models claude --json
27... {"model":"Haiku 4.5","id":"claude-haiku-4-5","thinkingOptions":"none"} ...
28```
29
30## 1. Create and follow an agent
31
32**Verdict: yes.** A program can create a workspace from an exact commit, start an agent there, and retain its ID. Keep the workspace ID from creation: `run` and `inspect` omit it in their CLI output, although the client snapshot contains it. The CLI inherited this session's parent-agent identity; a standalone runner must choose its own parentage deliberately.
33
34```sh
35# In the disposable repository under $TMPDIR:
36git init -b main
37git -c user.name=Probe -c user.email=probe@localhost commit --allow-empty -m 'Probe base'
38git rev-parse HEAD
39# 3704b320b9ec292458d41ce9cdb2c56a40f49fb3
40paseo workspace create --isolation worktree --path "$P/repo" \
41 --mode branch-off --new-branch equipo-probe \
42 --base 3704b320b9ec292458d41ce9cdb2c56a40f49fb3 \
43 --worktree-slug equipo-probe-vnpbwsk1 --title 'Equipo disposable probe' --json
44```
45
46```json
47{"workspaceId":"wks_ed152d6e0762a1fb","project":"repo",
48 "name":"Equipo disposable probe","isolation":"worktree",
49 "cwd":"/home/paulca/.paseo/worktrees/3ts4lj9g/equipo-probe-vnpbwsk1","background":false}
50```
51
52```text
53$ git -C "$W" rev-parse HEAD
543704b320b9ec292458d41ce9cdb2c56a40f49fb3
55$ git -C "$W" branch --show-current
56equipo-probe
57$ paseo run --workspace "$WS" --provider claude/claude-haiku-4-5 \
58 --mode default --title 'Equipo probe approval' --no-wait --json \
59 'Create hello.txt containing hi using Write. Do not read any other files or use other tools.'
60Using workspace wks_ed152d6e0762a1fb
61{"agentId":"920363b1-2c8a-471e-819f-5be735981e5b","status":"running",
62 "provider":"claude","cwd":"/home/paulca/.paseo/worktrees/3ts4lj9g/equipo-probe-vnpbwsk1",
63 "title":"Equipo probe approval"}
64```
65
66Capture stdout and stderr separately; the tool transcript above merges them. Do not parse the combined transcript as JSON. After approving the write, `paseo wait "$A" --timeout 30s --json` returned `status: "idle"` and the agent reported creating `hello.txt` with `hi`. Without `--no-wait`, `run` waits by default; its help also supplies `--wait-timeout`.
67
68Paseo placed the managed worktree under its own home, while the source repository and probe scripts were under `$TMPDIR`. Both were removed at cleanup. For an already-existing branch, help exposes `workspace create --mode checkout-branch --branch NAME`; that path was not separately exercised.
69
70## 2. Timeline and usage
71
72**Verdict: partly.** `inspect` and `ls` return JSON, including provider/model, and `inspect` exposes last usage. `logs`, `logs --follow`, and `attach` accept `--json` but still print human-readable text. The installed client supplies structured live events, including completed-turn usage. That API is usable by a long-lived program.
73
74```text
75$ paseo inspect "$A" --json
76{"Id":"920363b1-2c8a-471e-819f-5be735981e5b","Provider":"claude",
77 "Model":"claude-haiku-4-5","Status":"idle","Mode":"default",
78 "LastUsage":{"InputTokens":18,"OutputTokens":404,"CachedTokens":29591,"CostUsd":0.0673131},
79 "PendingPermissions":[],"Worktree":null}
80$ paseo logs "$A" --json
81[Write] /home/paulca/.paseo/worktrees/3ts4lj9g/equipo-probe-vnpbwsk1/hello.txt
82Done. Created hello.txt with content "hi".
83$ timeout -s INT 2 paseo logs "$A" --follow --json
84... human-readable history ...
85--- Following logs (last 10 entries; Ctrl+C to stop) ---
86$ timeout -s INT 2 paseo attach "$A" --json
87Fetching history for agent 920363b...
88(Press Ctrl+C to detach)
89[Tool: Write] completed
90Done. Created hello.txt with content "hi".
91Attached to agent 920363b.
92```
93
94The two `timeout` commands exited 124 as intended. `paseo ls --global --json`, filtered to our two IDs, returned JSON rows with `id`, `provider: "claude/claude-haiku-4-5"`, `status`, and `cwd`, but no usage. Reading `$CLI/dist/commands/agent/logs.js` and `attach.js` confirmed that these commands format transcripts instead of selecting a JSON renderer.
95
96For the live test, `observe.mjs` contained the following code. It uses the CLI's installed connection helper to obtain the same authenticated local connection, without printing credentials. This internal import is a probe convenience, not a supported production dependency.
97
98```js
99import {connectToDaemon} from '/home/paulca/.local/lib/node_modules/@getpaseo/cli/dist/utils/client.js';
100const client = await connectToDaemon({target:{kind:'instance',home:'/home/paulca/.paseo'}});
101const id = process.argv[2];
102console.log(JSON.stringify({snapshot:(await client.fetchAgent({agentId:id})).agent}));
103const off = client.subscribeAgentTimeline(id, m => console.log(JSON.stringify(m)));
104await off.ready;
105console.log(JSON.stringify({ready:true}));
106await new Promise(r => setTimeout(r,50000));
107off();
108await client.close();
109```
110
111```text
112$ node "$P/observe.mjs" "$A" > "$P/events.jsonl"
113$ rg 'usage|turn_completed' "$P/events.jsonl"
114{"type":"agent_stream","payload":{"agentId":"920363b1-2c8a-471e-819f-5be735981e5b",
115 "event":{"type":"turn_completed","provider":"claude","turnId":"foreground-turn-1",
116 "usage":{"inputTokens":18,"cachedInputTokens":29591,"outputTokens":404,
117 "totalCostUsd":0.0673131,"contextWindowMaxTokens":200000,"contextWindowUsedTokens":31239}},
118 "timestamp":"2026-11-01T21:10:14.667Z"}}
119```
120
121Timeline item events also carried `seq`, `epoch`, and `subscriptionId`. Control events did not all carry sequence numbers. The next question turn reported `totalCostUsd: 0.07589280000000001`; do not assume every usage field is a per-turn increment. `LastUsage` was zero during a later turn and after cancellation. Capture completion events durably instead of treating a later snapshot as a lifetime ledger. Billing accuracy and provider-independent usage semantics were not established.
122
123The current SDK documents `agent.timeline.refetch()` with cursors and `agent.timeline.subscribe()`. Subscriptions are live-only; reconnect requires explicitly fetching missed history, and replacement invalidates the previous epoch. We observed live delivery, not reconnect/restart recovery. Source: [https://paseo.sh/docs/sdk/reference.md](https://paseo.sh/docs/sdk/reference.md).
124
125**Request to Paseo:** Make `logs --json --follow` emit newline-delimited structured events and make one-shot `logs --json` return structured history. Preserve IDs, cursor/epoch information, permission events, cancellation, and usage. Document which usage counters are cumulative, which are per-turn, and how to recover missed completion events after reconnection, so runners can account for work without parsing prose or double-counting cost.
126
127## 3. Questions and permissions
128
129**Verdict: yes for the tested Claude tools.** In `default` (Always Ask) mode, the write remained pending until a program approved its request ID. `AskUserQuestion` arrived as a structured `permission_requested` event with `kind: "question"`. Answer it through the permission response, not an ordinary chat message.
130
131```text
132$ paseo inspect "$A" --json
133... "Status":"running", "Mode":"default",
134"PendingPermissions":[{"id":"permission-023626f4-428c-4f24-b777-e8187cce0b94","tool":"Write"}]
135$ paseo permit ls --json
136... {"id":"permission-023626f4-428c-4f24-b777-e8187cce0b94",
137 "agentId":"920363b1-2c8a-471e-819f-5be735981e5b","name":"Write","description":"-"} ...
138$ paseo permit allow "$A" permission-023626f4-428c-4f24-b777-e8187cce0b94 --json
139[{"requestId":"permission-023626f4-428c-4f24-b777-e8187cce0b94", "result":"allowed", ...}]
140```
141
142The raw client snapshot included the proposed file path and content under `pendingPermissions[].input`; CLI `inspect` reduced this to an ID and tool name. A runner should fetch the full request before deciding. The observer received `permission_resolved` with `resolution.behavior: "allow"`, then tool completion and turn completion.
143
144```sh
145paseo send "$A" --no-wait --json \
146 'Use AskUserQuestion to ask which word to write next, with choices hi and bye. Do nothing else.'
147```
148
149```json
150{"agentId":"920363b1-2c8a-471e-819f-5be735981e5b","status":"queued",
151 "message":"Message queued for delivery after two quiet seconds"}
152```
153
154Trimmed observer event:
155
156```json
157{"type":"permission_requested","provider":"claude","request":{
158 "id":"permission-6d5670a3-5c2c-47d3-9b5c-629b1cf8b5eb","name":"AskUserQuestion",
159 "kind":"question","title":"Which word should we write next?","description":"hi / bye",
160 "input":{"questions":[{"question":"Which word should we write next?","header":"Next word",
161 "options":[{"label":"hi","description":"Write hi"},{"label":"bye","description":"Write bye"}],
162 "multiSelect":false,"allowOther":true}]}}}
163```
164
165```text
166$ paseo permit allow "$A" permission-6d5670a3-5c2c-47d3-9b5c-629b1cf8b5eb \
167 --input '{"answers":{"Which word should we write next?":"hi"}}' --json
168[{..., "name":"AskUserQuestion","result":"allowed"}]
169$ paseo wait "$A" --timeout 20s --json
170{"agentId":"920363b1-2c8a-471e-819f-5be735981e5b","status":"idle",
171 "message":"... User selected \"hi\"."}
172```
173
174`send` was tested for follow-up prompts. Its queued receipt was not proof of turn completion. Plain conversational questions can be answered by `send`, but their classification as questions was not tested. Codex permission/question formats were not tested.
175
176## 4. Stop and clean up
177
178**Verdict: partly.** Stop is observable and interrupts the active foreground command. It did not kill a previously launched background child. Archiving the agent did remove that child in this test. Do not equate a stop receipt with proof that all effects have ceased.
179
180The first command (`sleep 180 & echo $! > child.pid; wait`) was rejected by the provider harness, so it supplied no process-cleanup evidence. The successful retry used the supported background mode:
181
182```sh
183paseo agent mode "$A" bypassPermissions --json
184paseo send "$A" --no-wait --json 'Use Bash with run_in_background:true to execute: python3 -c '\''import os,time; open("child.pid","w").write(str(os.getpid())); time.sleep(180)'\''. Then immediately run another Bash command with timeout 200000: python3 -c '\''import time; time.sleep(180)'\''. Do nothing else.'
185node "$P/observe.mjs" "$A" > "$P/stop-events.jsonl"
186```
187
188The observer was running before cancellation. `child.pid` contained namespace PID `3`; host `ps` identified the processes by their exact commands. Do not send signals to a namespace PID on the host.
189
190```text
191$ ps -eo pid,ppid,args | rg 'python3 -c import (os,time|time; time.sleep)'
192777780 777779 python3 -c import os,time; open("child.pid","w").write(str(os.getpid())); time.sleep(180)
193777828 777827 python3 -c import time; time.sleep(180)
194$ paseo stop "$A" --json
195{"stoppedCount":1,"agentIds":["920363b1-2c8a-471e-819f-5be735981e5b"]}
196$ ps -eo pid,ppid,args | rg 'python3 -c import (os,time|time; time.sleep)'
197777780 777779 python3 -c import os,time; open("child.pid","w").write(str(os.getpid())); time.sleep(180)
198$ paseo inspect "$A" --json
199... "Status":"idle" ...
200$ tail -3 "$P/stop-events.jsonl"
201... {"type":"turn_canceled","provider":"claude","turnId":"foreground-turn-4","reason":"Interrupted"} ...
202```
203
204Cleanup was then executed in order:
205
206```text
207$ paseo archive "$A" --json
208{"agentId":"920363b1-2c8a-471e-819f-5be735981e5b","status":"archived",...}
209$ ps -p 777780 -o pid,ppid,args
210PID PPID COMMAND
211$ paseo delete "$A" --json
212{"deletedCount":1,"agentIds":["920363b1-2c8a-471e-819f-5be735981e5b"]}
213$ paseo delete "$B" --json
214{"deletedCount":1,"agentIds":["93d551b6-37a0-48c3-b503-b3987d3dc021"]}
215$ paseo workspace archive "$WS" --json
216{"workspaceId":"wks_ed152d6e0762a1fb","status":"archived",...}
217$ paseo project delete prj_f0721b61d3557b28 --json
218{"projectId":"prj_f0721b61d3557b28","removedWorkspaceIds":[]}
219$ test -e "$W" && echo worktree-present || echo worktree-removed
220worktree-removed
221$ ps -p 777780,777828 -o pid,ppid,args
222PID PPID COMMAND
223```
224
225The project ID belonged to the throwaway repository, automatically registered during workspace creation. Only that project, workspace, and the two probe agents were mutated. Observers exited after 50 seconds; bounded CLI followers detached. The custom MCP process also disappeared after agent deletion. The scratch directory was removed after preserving this evidence. Workspace archive was tested after agent deletion; its handling of an independently running terminal was not tested.
226
227**Request to Paseo:** Offer a cancellation operation with a documented process-tree guarantee across providers, including background tool jobs and workspace-owned processes. Return an acknowledgement only after termination is complete, or report remaining jobs explicitly. Preserve the cancellation event and cleanup result for reconnecting clients. `stop` currently leaves the runner unable to claim that all agent work has stopped.
228
229## 5. Tools per agent
230
231**Verdict: yes through the client API.** No direct MCP configuration flag appears in `paseo run --help`, but `createAgent` accepted a session-scoped `mcpServers` map. The agent called that server successfully without a configuration-file edit or plugin installation.
232
233The scratch `mcp.py` was a line-oriented JSON-RPC server. It answered `initialize` with protocol `2024-11-05` and tool capability, advertised one no-argument tool `probe_ping` via `tools/list`, and returned text `equipo-mcp-ok` from `tools/call`. It ignored notifications. Its full implementation was:
234
235```python
236import sys,json,os
237for line in sys.stdin:
238 m=json.loads(line); method=m.get('method'); result={}
239 if 'id' not in m: continue
240 if method=='initialize':
241 result={'protocolVersion':'2024-11-05','capabilities':{'tools':{}},
242 'serverInfo':{'name':'equipo-probe','version':'1'}}
243 elif method=='tools/list':
244 result={'tools':[{'name':'probe_ping','description':'Return probe marker',
245 'inputSchema':{'type':'object','properties':{}}}]}
246 elif method=='tools/call':
247 result={'content':[{'type':'text','text':'equipo-mcp-ok'}]}
248 print(json.dumps({'jsonrpc':'2.0','id':m['id'],'result':result}),flush=True)
249```
250
251The working `mcp-run.mjs` used the same `connectToDaemon` import as the observer:
252
253```js
254const c = await connectToDaemon({target:{kind:'instance',home:'/home/paulca/.paseo'}});
255try {
256 const a = await c.createAgent({
257 workspaceId:'wks_ed152d6e0762a1fb',
258 cwd:'/home/paulca/.paseo/worktrees/3ts4lj9g/equipo-probe-vnpbwsk1',
259 title:'Equipo MCP probe', provider:'claude', model:'claude-haiku-4-5',
260 modeId:'bypassPermissions',
261 mcpServers:{equipo_probe:{type:'stdio',command:'python3',
262 args:['/home/paulca/.cache/tmp/equipo-paseo-probe-vnpbwsk1/mcp.py']}},
263 initialPrompt:'Call equipo_probe probe_ping once and report its result. Do nothing else.'
264 });
265 console.log(JSON.stringify({agentId:a.id,workspaceId:a.workspaceId}));
266} finally { await c.close(); }
267```
268
269```text
270$ node "$P/mcp-run.mjs"
271{"agentId":"93d551b6-37a0-48c3-b503-b3987d3dc021","workspaceId":"wks_ed152d6e0762a1fb"}
272$ paseo logs "$B" --tail 4
273[User] Call equipo_probe probe_ping once and report its result. Do nothing else.
274[Toolsearch]
275[mcp__equipo_probe__probe_ping] {}
276Result: `equipo-mcp-ok`
277```
278
279Two setup attempts failed before creating any agent: the low-level connection object has no `workspaces.ref`, and its `createAgent` requires `cwd` even with `workspaceId`. The corrected call above is the one tested. The public SDK has a different, higher-level interface; pin and test the chosen client version.
280
281The current public SDK documents `config.mcpServers`, `config.toolPolicy`, provider-native `options`, and runtime settings. Local plugin instructions and the installed ZeroSub plugin use `before("agent.session_open")` for launch-time tools/environment/MCP configuration and `agent.create` for saved configuration. Current online documentation instead names `server.addHook("agent.open.before", ...)` and `agent.create.before`. This is a concrete documentation/runtime compatibility concern, not evidence that the installed hook failed. Sources: [https://paseo.sh/docs/sdk/reference.md](https://paseo.sh/docs/sdk/reference.md) and [https://paseo.sh/docs/plugins/hooks.md](https://paseo.sh/docs/plugins/hooks.md).
282
283## 6. Accounts
284
285**Verdict: yes by configuration and installed-plugin inspection; no new login or two-account execution test.** Multiple Claude credential homes already exist on this machine. ZeroSub selects a home per agent at session open. Separate daemon homes are therefore not required for this setup. `--home` selects a daemon; it does not, by itself, prove that Claude credentials are isolated.
286
287```text
288$ rg -n 'CLAUDE_CONFIG_DIR|session_open|homes' "$Z/README.md" "$Z/index.server.ts"
289README.md:91:Each added account gets its own credential home under `$PASEO_HOME/zerosub/homes/`:
290README.md:93:- Claude uses it as `CLAUDE_CONFIG_DIR`; Codex uses it as `CODEX_HOME`.
291index.server.ts:35: server.before("agent.session_open", async ({ request }, context) => {
292```
293
294Only non-secret counts were extracted from the registry:
295
296```sh
297python3 - <<'PY'
298import json,os
299s=json.load(open(os.path.expanduser('~/.paseo/zerosub/state.json')))
300a=[x for x in s['accounts'] if x['family']=='claude']
301print(json.dumps({'claudeAccounts':len(a),
302 'signedIn':sum(x.get('signedIn',True) for x in a),
303 'separateManagedHomes':len({x['home'] for x in a if x.get('home')})}))
304PY
305```
306
307```json
308{"claudeAccounts":6,"signedIn":6,"separateManagedHomes":5}
309```
310
311These are saved registry flags, not a fresh authentication or quota check. Inspection of `server/state.ts` found per-agent `bindings` and live `sessions` keyed to `accountId`; `server/claude.ts` sets `CLAUDE_CONFIG_DIR` and `CLAUDE_SECURESTORAGE_CONFIG_DIR` for a managed home. The README says Linux credentials stay in each home's `.credentials.json`, while non-account settings and project history are shared by symlinks.
312
313For Equipo, select an existing account through the supported account-routing interface and record which account actually opened the session. Verify whether automatic failover may move it before treating a connection as person-bound. A new account would require a separate official CLI sign-in in its own credential home; no credentials should be copied between accounts. None was added here.
314
315Core provider profiles also support different credentials via `agents.providers` entries extending `claude`; the online example uses distinct API keys. That example alone does not establish two subscription logins. The installed Claude provider source resolves `env.CLAUDE_CONFIG_DIR ?? join(homedir(), ".claude")`, so separate Paseo homes need explicit provider-home routing to guarantee account separation. Sources: installed ZeroSub README and [https://paseo.sh/docs/custom-providers.md](https://paseo.sh/docs/custom-providers.md), fetched with `curl -fsSL`.
316
317## 7. Remote and hosts
318
319**Verdict: partly.** Cross-host routing is documented, but no destination is registered on this daemon and execution on tito-studio was not established. No remote agents were started.
320
321```text
322$ paseo host ls --json
323[]
324$ paseo host add --help
325Usage: paseo host add [options] <connection>
326Options: --label <name>, --meta <key=value>, --json, --host <host>, --home <path>
327$ timeout 12 ssh -o BatchMode=yes -o ConnectTimeout=8 100.64.0.1 \
328 'command -v paseo; paseo daemon status --json'
329Host key verification failed.
330```
331
332The SSH command exited 255. Host verification was not disabled and `known_hosts` was not changed. This proves only that this particular Tailscale-IP SSH route was not ready for unattended use, not that tito-studio lacks Paseo or that another existing connection cannot work.
333
334The local Paseo skill supports `serverId` on remote workspace creation, agent creation, sending, status/activity, and listing. The public SDK documents `client.hosts.client(serverId)` for one-hop routing through the selected daemon. Both ends need connected-host support, a running destination daemon, authenticated transport, and access to the repository and providers on the destination. Paths and workspace IDs belong to that host. A runner must retain `{serverId, agentId}`, not an agent ID alone. Source: [https://paseo.sh/docs/sdk/reference.md](https://paseo.sh/docs/sdk/reference.md), fetched with `curl -fsSL` and inspected at its connected-host section.
335
336For this machine's rules, use Tailscale directly or SSH over Tailscale with verified host keys. Registration would use `paseo host add CONNECTION --label tito-studio`; this is a future setup instruction, not a command run during the probe. A runner on each host avoids needing this route for ordinary local execution.
337
338**Request to Paseo:** Provide a read-only runner preflight that reports remote transport authentication, expected server identity, supported routing operations, and provider availability together. Include an example that creates a workspace, streams events, answers permissions, cancels, and archives through a remote scope. We could verify discovery here but could not establish the tito-studio route without separate host setup.
339
340## 8. Runner as a Paseo plugin
341
342**Verdict: yes by documentation and installed-plugin evidence; a runner plugin was not installed or executed.** Server plugins run trusted Node code in a daemon subprocess. They can make outbound HTTP requests, maintain timers and subscriptions, register RPC handlers, and call Paseo APIs. Lifecycle hooks can alter creation and session-open requests. That is enough machinery for a runner, provided it persists work and resumes after plugin or daemon restarts.
343
344Commands used to retrieve and inspect current documentation:
345
346```sh
347curl -fsSL https://paseo.sh/llms.txt
348curl -fsSL https://paseo.sh/docs/plugins/reference.md -o "$P/plugin.md"
349curl -fsSL https://paseo.sh/docs/plugins/hooks.md -o "$P/hooks.md"
350sed -n '608,638p' "$P/plugin.md"
351rg -n 'agent.create|agent.open|permission' "$P/hooks.md"
352```
353
354Trimmed evidence:
355
356```text
357reference: Cleanup can be async. Release timers, watchers, sockets, and other resources created by the plugin.
358reference: Backend code can use Node APIs and dependencies installed in the plugin directory.
359hooks: agent.create.before | yes | ... | Saved config except cwd; env
360hooks: agent.open.before | yes | ... | Launch-only env, tools, mcpServers
361hooks: agent.permission.before | no | { agent, request }
362hooks: agent.permission.after | no | { agent, requestId, resolution }
363```
364
365The local skill documents `server.handle(contract, handler)` for validated RPCs and a handler context containing `paseo`. Installed ZeroSub demonstrates session-open hooks in this daemon. The public reference says reload, disable, and removal dispose the installation and stop the server subprocess. Outbound HTTP is an inference from the documented unrestricted Node/network access; no external HTTP request was made from a newly installed plugin. Sources: [https://paseo.sh/docs/plugins/reference.md](https://paseo.sh/docs/plugins/reference.md) and [https://paseo.sh/docs/plugins/hooks.md](https://paseo.sh/docs/plugins/hooks.md).
366
367Recommend a **separate runner process**, preserving section 6.9's service ownership and outbound connection. It can keep leases, credentials, accounting, and recovery state across a Paseo plugin reload or daemon outage. MCP injection already works through agent creation, so it does not force a plugin. A small Node adapter using the supported TypeScript client is a practical option for a Go runner; a native Go wire client needs an explicit versioned protocol contract. Do not build production code around the probe's absolute CLI-internal imports. A plugin can later add account selection or UI integration if needed. The hook-name difference between installed instructions and current docs is another reason to pin and integration-test that boundary.
368
369## What the runner should rely on
370
371- Explicit workspace creation from a commit hash; retain host, workspace, agent, and provider-session identities separately.
372- A version-pinned structured client connection for timeline events, full permissions, and usage; CLI JSON for bounded commands only after checking their actual output.
373- Subscription readiness before dispatch, durable event storage, cursor-based recovery, and explicit handling of timeline replacement. Validate recovery and usage semantics before claiming reliable billing.
374- Permission-ID responses for structured questions and approvals; `send` for conversational follow-ups. A queued receipt is not completion.
375- Per-agent MCP configuration at creation. Give each coordinator its own scoped Equipo tool capability.
376- Explicit account routing through the existing credential-home mechanism, with observed account identity and failover rules.
377- Stop, archive, and workspace cleanup as separate steps. Verify remaining processes before acknowledging cancellation; `stop` alone is insufficient.
378- A local runner on each enrolled machine. Treat remote routing and plugin hooks as optional, version-tested integrations.
379