@prplkane/agentlink 0.3.0-beta.4 → 0.3.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,333 +1,89 @@
1
1
  # AgentLink
2
2
 
3
- Connect ACP clients to agent CLIs through named profiles and centrally managed bridges.
3
+ [![npm beta](https://img.shields.io/npm/v/@prplkane/agentlink/beta?label=npm%20beta)](https://www.npmjs.com/package/@prplkane/agentlink)
4
+ [![Node.js](https://img.shields.io/node/v/@prplkane/agentlink)](package.json)
5
+ [![License](https://img.shields.io/npm/l/@prplkane/agentlink)](LICENSE)
4
6
 
5
- AgentLink saves the launch command for each profile. Any client that speaks the
6
- Agent Client Protocol (ACP) can use that name to open a session with the selected
7
- agent. The client owns the conversation, and the agent supplies its capabilities.
7
+ Configure a coding agent once and reuse it across local apps that support the
8
+ **Agent Client Protocol (ACP)**.
8
9
 
9
- Requires Node.js 22 or newer. The public beta, `0.3.0-beta.4`, has no npm runtime
10
- dependencies. See the [qualification results](docs/acp-qualification.md) for tested
11
- providers, platforms and known limits.
10
+ ACP defines how an app talks to an agent. AgentLink saves how to start that agent and
11
+ which model and reasoning level to use in a named **profile**. Apps share the profile
12
+ while keeping their connections and conversations separate.
12
13
 
13
- ## Install and configure
14
+ ## Quick start
14
15
 
15
- Install the packaged release once:
16
+ Install the public beta with Node.js 22 or newer. This example sets up Claude. Sign in
17
+ through your provider before starting a live session.
16
18
 
17
- ~~~sh
19
+ ```sh
18
20
  npm install -g @prplkane/agentlink@beta
19
- ~~~
20
-
21
- From a source checkout, substitute `node /absolute/path/to/src/cli.mjs` for
22
- `agentlink`.
23
-
24
- ~~~sh
25
- # Native ACP in an already installed agent:
26
- agentlink add kimi --command kimi
27
-
28
- # Install and centrally manage the selected existing ACP bridges:
29
- agentlink add codex --provider codex
30
21
  agentlink add claude --provider claude
31
-
32
- # Native ACP in a recent Antigravity CLI (review vendor terms for your use):
33
- agentlink add agy --provider antigravity
34
-
35
- # Or use a bridge that you install and update yourself:
36
- agentlink add personal-claude --provider claude --external
37
-
38
- agentlink list
39
- agentlink check kimi
40
- ~~~
41
-
42
- Codex and Claude recipes install their upstream npm bridges on demand.
43
- Other recipes, including Antigravity's `agy acp`, locate installed native ACP
44
- commands. AgentLink never downloads
45
- all providers. A bridge's dependencies and vendor runtime are separate from
46
- AgentLink's own footprint.
47
-
48
- Adding/checking an agent sends only `initialize`, not a session, prompt, login,
49
- or coding task. The selected executable still runs; its startup behavior is
50
- owned by its vendor. Complete any required vendor sign-in using its supported
51
- login flow. Discovery reports advertised authentication methods.
52
-
53
- ## Connect applications through standard ACP
54
-
55
- Configure an ACP client to launch:
56
-
57
- ~~~sh
58
- agentlink acp kimi
59
- ~~~
60
-
61
- For an exact executable/argument configuration, including a Windows-safe native
62
- Node launcher:
63
-
64
- ~~~sh
65
- agentlink config kimi
66
- ~~~
67
-
68
- The output has ordinary `command` and `args` fields. It invokes the centrally
69
- installed AgentLink, rather than a project-local SDK or vendor bridge path.
70
- The ACP client still needs its normal launch entry and a selected profile name;
71
- this does not add an automatic agent catalogue method to ACP.
72
-
73
- Roundtable or another application can open several connections concurrently,
74
- including different agents. Connections have separate child processes and
75
- sessions. Profiles, installed bridge versions and configuration are shared.
76
- Clients retain ownership of session setup, working directories, permission
77
- decisions, task deadlines and their own conversation history.
78
-
79
- For example, Codex can coordinate a Roundtable review while each seat and the
80
- chairman use a saved AgentLink profile. See the [illustrated Roundtable workflow](https://github.com/prplkane/roundtable#review-in-codex-with-agentlink-seats)
81
- or the [cross-project testing guide](docs/laptop-testing.md#roundtable-integration).
82
-
83
- The gateway forwards JSON-RPC in both directions: initialization/version
84
- negotiation, capabilities, authentication, prompts, streaming, cancellation,
85
- client filesystem/terminal requests, and vendor extensions. Unsupported methods
86
- remain the connected agent's own errors. It does not simulate missing features.
87
-
88
- Terminal-auth descriptors receive one launcher marker so a standard ACP client
89
- can relaunch AgentLink interactively, even for environment-only login methods.
90
- That marker is removed before the underlying bridge runs. No custom ACP method
91
- or application SDK is introduced.
92
-
93
- Runtime connections resolve saved configuration, acquire any required installation
94
- leases, and start the selected bridge.
95
- They never install, update, discover, or send a test prompt.
96
- The ACP entry point loads only the runtime modules. Installation, discovery and
97
- the compatibility client load only for management commands. External profiles
98
- do not need the installation lease lock; managed profiles briefly acquire it.
99
-
100
- ## Choose a model and effort once for a profile
101
-
102
- Use the provider profile your projects already launch. Inspect the bridge's
103
- live choices, then replace the example IDs below with values from the output.
104
-
105
- ~~~sh
106
- agentlink models agy
107
- agentlink models agy --model MODEL_ID
108
- agentlink defaults agy --model MODEL_ID --effort EFFORT_ID
109
- agentlink defaults agy
110
- agentlink defaults agy --clear-model --clear-effort
111
- ~~~
112
-
113
- `models` opens a temporary session with the profile's launch settings and an
114
- empty working directory. It sends no prompt. The JSON shows the saved defaults,
115
- the bridge's current model and effort, and each advertised choice's ID and
116
- name. Use `--model` to preview the effort levels for a particular model.
117
- An unavailable selector appears as `null`. Inspection ignores saved pins so it
118
- can show replacements after a vendor retires a model.
119
-
120
- `defaults` with no flags shows the saved choices. Setting a model or effort
121
- validates the resulting pair in a temporary session before saving it. An
122
- omitted flag keeps its previous setting. Use `--clear-effort` alongside a
123
- model change to follow that model's own reasoning default. Clearing both
124
- returns to vendor defaults and works offline.
125
-
126
- All ACP clients launching that profile inherit the choices on their next
127
- `session/new`, including on an open connection. Running and resumed sessions
128
- keep their settings. A client may explicitly override a choice for its session.
129
- If a saved ID disappears, session creation reports the unavailable choice so
130
- you can replace it once for every project. AgentLink can only detect a retired
131
- model once the bridge stops advertising that ID. While a bridge still lists
132
- it, the saved choice is accepted and any failure comes from the vendor. If
133
- the profile file cannot be read when a session is created, only that request
134
- fails; the connection and its other sessions stay open. Bridge updates still
135
- check ACP initialization. Actual model and effort support is checked in the session.
136
-
137
- ## Discover an unfamiliar agent
138
-
139
- ~~~sh
140
- # Inspect without saving:
141
- agentlink inspect --command new-agent
142
-
143
- # Discover, initialize and save locally:
144
- agentlink add my-agent --command new-agent
145
-
146
- # A custom help convention:
147
- agentlink add unusual --command unusual-cli --help-args '["help"]'
148
-
149
- # An exact launch recipe, including a standalone ACP server:
150
- agentlink add custom --command custom-cli --acp-args '["serve","--protocol","acp"]'
151
- agentlink add standalone --command /absolute/path/to/acp-server --acp-args '[]'
152
- ~~~
153
-
154
- Discovery checks known recipes, then bounded `--help` / `-h` output, advertised
155
- help aliases and relevant subcommands. Explicit `--help-args` replaces the
156
- default help invocations. Recognizable help from a nonzero exit can still be
157
- used. It never executes shell snippets or downloads URLs found in help text.
158
-
159
- The saved profile includes launch arguments, a help hash when available,
160
- capabilities and initialization status. It is personal configuration; adding
161
- an unfamiliar compatible agent does not require a repository change.
162
-
163
- `refresh` rediscovers help-derived external launches. Explicit `--acp-args`
164
- (including an empty array) and managed bridge arguments are rechecked as saved;
165
- refresh does not discard their options. To change an exact recipe, use `update`
166
- with new `--acp-args`, or supply `--command` to request discovery again.
167
-
168
- Inconclusive discovery does not prove an agent lacks ACP. Supply an exact launch
169
- command or an existing bridge when needed. If there is no usable ACP
170
- implementation, a separate bridge must supply that translation.
171
-
172
- `--skip-check` can save a direct configuration as pending. Managed installations
173
- always pass initialization before being activated. Initialization establishes a
174
- protocol connection, not full task compatibility.
175
-
176
- ## Manage bridges and versions centrally
177
-
178
- ~~~sh
179
- agentlink bridge list
180
- agentlink bridge show codex
181
- agentlink bridge update codex
182
-
183
- # Multiple profiles can reference one managed bridge:
184
- agentlink add work-codex --bridge codex
185
-
186
- # Install another existing bridge using a package or registry entry:
187
- agentlink bridge install custom --package some-acp-bridge --version 1.2.3
188
- agentlink add custom --bridge custom
189
- agentlink add another --manifest /absolute/path/to/agent.json
190
- ~~~
191
-
192
- The package name/version above is illustrative. Use `--version` to pin a real
193
- release or npm tag. npm tags are resolved once to an exact installed version.
194
- There are no background updates. `bridge update` is an explicit update request.
195
-
196
- Manifest input is an individual entry in the
197
- [ACP registry format](https://github.com/agentclientprotocol/registry/blob/main/FORMAT.md).
198
- Supported distributions:
199
-
200
- | Distribution | Installation |
201
- |---|---|
202
- | `npx` | Pinned npm package in AgentLink's shared store; requires npm |
203
- | `binary` | Raw file, ZIP or tar.gz for this platform; checks supplied SHA-256 |
204
- | `uvx` | Pinned Python package in a shared virtual environment; requires Python with venv/pip |
205
-
206
- Python entries use pip installation rather than running uvx on every connection.
207
- Multiple command packages can select an entry with `--bin`.
208
- Archives containing links, unsupported formats, or unsafe paths are rejected.
209
- Those bridges can still be installed externally and connected with `--command`.
210
-
211
- `--source` accepts an explicit package artifact, including a local tarball or
212
- wheel. `--offline` requires local artifacts or package-manager cache and disables
213
- registry downloads by AgentLink. It is not a network sandbox for third-party
214
- install hooks or executable startup.
215
-
216
- An update verifies the new launch, including profiles with custom arguments,
217
- before atomically switching the shared bridge record. Failure preserves the
218
- active record. Existing sessions retain leases on their old installed version.
219
- New connections resolve the current shared version.
220
- When adding or updating a profile also changes a bridge, both are prepared
221
- before publication. If bridge publication fails, the profile is restored before
222
- managed connections can resume.
223
-
224
- ~~~sh
225
- agentlink update kimi --command /new/location/kimi
226
- agentlink refresh kimi
227
- agentlink show kimi
228
- agentlink doctor
229
- agentlink remove work-codex
230
-
231
- # A referenced bridge cannot be removed:
232
- agentlink bridge remove custom
233
-
234
- # Explicitly remove unused versions after sessions finish:
235
- agentlink bridge prune
236
- agentlink bridge prune --cache
237
- ~~~
238
-
239
- Pruning retains active installations and live leases. `--cache` also clears
240
- AgentLink's package cache, reducing disk usage at the expense of offline reuse.
241
- Externally installed bridges are never uninstalled.
242
-
243
- ## Local storage and limits
244
-
245
- Default storage is `~/.agentlink/`; `AGENTLINK_HOME` or `--home` selects a different
246
- absolute directory. Use `agentlink where --json` to inspect it. The default is
247
- outside project repositories; keep any custom home outside them too. AgentLink
248
- accepts an absolute custom path without checking whether it is inside a repository.
249
-
250
- For ACP launches, place `--home` before `acp`:
251
-
252
- ~~~sh
253
- agentlink --home /absolute/user-store acp kimi
254
- ~~~
255
-
256
- Arguments after the profile are reserved for the agent's terminal-auth
257
- invocation and are forwarded, not parsed as management options.
258
-
259
- AgentLink stores profiles, bridge metadata, installation files, package cache,
260
- short-lived leases and operation locks. It does not store prompts, responses,
261
- or conversation history. Agents may maintain their own history and credentials.
262
- Explicit `--env` settings and command arguments are saved as plain configuration;
263
- use existing vendor login/environment handling for secrets.
264
-
265
- Current boundaries:
266
-
267
- - Local stdio connections. The gateway preserves ACP v1/v2 negotiations; it
268
- does not translate between incompatible protocol versions.
269
- - Default per-message bound: 16 MiB. No lifetime response-size or task timeout
270
- is imposed by the gateway.
271
- - Native artifact bounds: 256 MiB download, 512 MiB extracted contents,
272
- 10,000 entries. ZIP64, tar.bz2 and platform installers are unsupported.
273
- - Installation hooks and agent processes run as the user, not in a sandbox.
274
- - HTTPS artifact redirects are checked at every hop; redirects to HTTP fail
275
- before contacting that destination.
276
- - Managed Python on Windows requires an executable path shorter than 260
277
- characters. A deeper store fails early with `PYTHON_PATH_TOO_LONG`; select a
278
- shorter absolute `--home` or use an externally installed bridge.
279
- - On Windows, normal disconnect/termination stops a still-running bridge tree.
280
- Descendants already orphaned by an abrupt parent exit are not guaranteed to
281
- be contained; this version does not use native Windows Job Objects.
282
- - An abruptly killed management process can leave a lock. The diagnostic names
283
- its owner and path; remove a stale lock only after that process has stopped.
284
-
285
- `agentlink doctor [--json]` checks local profiles, launch files, managed
286
- installation metadata, connection leases and locks without starting agents or changing anything.
287
- An abandoned lease appears as a note. Run `agentlink bridge prune` to remove it.
288
- It exits with status 1 for detected errors. It does not test sign-in or ACP
289
- compatibility; use `check PROFILE` for initialization.
290
-
291
- ## Verification and development
292
-
293
- ~~~sh
294
- npm test
295
- npm run test:maturity
296
- npm pack
297
- ~~~
298
-
299
- Tests use local fixture agents and locally produced npm packages, wheels and
300
- binary archives. They cover independent ACP clients, shared updates, rollback,
301
- leases/pruning, discovery, authentication forwarding and process cleanup.
302
- The separate maturity check starts 50 batches of eight managed clients with
303
- synthetic profiles, checks model and effort inheritance on every prompt, and
304
- verifies lease cleanup after each batch.
305
- Python installation coverage runs when Python is available. No vendor account
306
- or paid model call is needed.
307
- A GitHub Actions workflow runs the offline suite on Windows, Linux and macOS
308
- with Node 22 and 24 and Python 3.13. Results are on the repository's
309
- [Actions page](https://github.com/prplkane/agentlink/actions).
310
-
311
- See [laptop testing](docs/laptop-testing.md) for real-agent checks and
312
- [architecture](docs/architecture.md) for the maintenance boundaries.
313
-
314
- The original library exports and `examples/connect.mjs` remain
315
- for compatibility. That helper is text-only ACP v1. New integrations should use
316
- the standard gateway; the helper's limitations do not define the gateway.
317
-
318
- ## Working on this repository
319
-
320
- Read [CONTRIBUTING.md](https://github.com/prplkane/agentlink/blob/main/CONTRIBUTING.md) and the shared
321
- [AGENTS.md](https://github.com/prplkane/agentlink/blob/main/AGENTS.md). Work records for
322
- non-trivial changes are kept locally and are not part of the repository; see the
323
- [working agreement](https://github.com/prplkane/agentlink/blob/main/docs/work/README.md).
324
-
325
- The [source-document review](https://github.com/prplkane/agentlink/blob/main/docs/process/source-document-review.md) describes
326
- the guidance adapted from Roundtable and Career Hub, grouped by project, with
327
- explicit reasons for each inclusion and exclusion. See
328
- [repository setup](https://github.com/prplkane/agentlink/blob/main/docs/process/repository-setup.md) for actual hosted settings.
329
-
330
- ## License
331
-
332
- [Apache License 2.0](LICENSE), copyright 2026 prplkane.
333
- [NOTICE](NOTICE) retains attribution for adapted process documentation.
22
+ agentlink config claude
23
+ ```
24
+
25
+ The second command installs and checks the **bridge**, the adapter that lets the agent
26
+ speak ACP. The last command prints the executable and arguments to enter in your app's
27
+ ACP settings. If the app accepts a launch command, use `agentlink acp claude`.
28
+
29
+ ## Share a model across apps
30
+
31
+ Suppose an editor and a code-review tool both use the `claude` profile. By default they
32
+ follow the agent's own settings. To choose a model and reasoning level for both, list the
33
+ available models, check the effort levels for the one you want, then save the pair.
34
+
35
+ ```sh
36
+ agentlink models claude
37
+ agentlink models claude --model MODEL_ID
38
+ agentlink defaults claude --model MODEL_ID --effort EFFORT_ID
39
+ ```
40
+
41
+ Use the IDs advertised by the agent. Each new session picks up the change, and an app
42
+ can override it for that session. If the bridge stops offering a saved ID, AgentLink
43
+ reports it when an app opens a session. Choose a replacement once for the profile, or
44
+ return to the provider's choices with `agentlink defaults claude --clear-model --clear-effort`.
45
+
46
+ ## Keep temporary work out of provider history
47
+
48
+ An ACP v1 app can request a temporary provider chat for an individual task. The
49
+ bridge reports whether it can disable local conversation persistence, archive the
50
+ chat when the app closes it, or leave history to the provider. Apps that require
51
+ native non-saving sessions can reject providers that lack them. The client can
52
+ leave out the preference for conversations the user wants to keep. [Session history negotiation](docs/architecture.md#session-history)
53
+
54
+ Run `agentlink check codex` to see what the installed profile supports. For
55
+ example, Codex can offer `exec --ephemeral` on the command line while its ACP
56
+ bridge can only archive a chat after it closes. Apps can read both results with
57
+ `agentlink check codex --json`.
58
+
59
+ ## Manage connections
60
+
61
+ | Task | Command |
62
+ | --- | --- |
63
+ | List built-in provider configurations | `agentlink providers` |
64
+ | List configured profiles for an app's picker | `agentlink list --json` |
65
+ | Add Codex with a managed bridge | `agentlink add codex --provider codex` |
66
+ | Connect an installed command-line agent with ACP support | `agentlink add my-agent --command my-cli` |
67
+ | Update the shared Claude bridge | `agentlink bridge update claude` |
68
+ | Verify that a profile can start and negotiate ACP | `agentlink check claude` |
69
+ | Diagnose local profiles, installations, locks, and leases | `agentlink doctor` |
70
+
71
+ A managed update switches new connections to the verified bridge. Running connections
72
+ keep their version. For agents with native ACP support, such as Antigravity's `agy`,
73
+ update the command-line tool through its provider. [Setup and troubleshooting](docs/laptop-testing.md) ·
74
+ [Version pins and offline installs](docs/laptop-testing.md#custom-bridges-and-offline-installs)
75
+
76
+ ## Compatibility and local data
77
+
78
+ AgentLink runs on demand and uses standard ACP over local stdin and stdout. The client
79
+ and bridge need a protocol version in common. Each bridge advertises the models, effort
80
+ levels, and commands it supports.
81
+
82
+ Profiles and managed installations live in `~/.agentlink/` by default. Run `agentlink where`
83
+ to find the active directory. Launch arguments and explicit environment settings are saved
84
+ as plain configuration, so keep credentials in the provider's sign-in mechanism.
85
+ Conversation history stays with the app and agent.
86
+
87
+ [Example ACP client](examples/acp-check.mjs) · [Architecture](docs/architecture.md) ·
88
+ [Release notes and test results](https://github.com/prplkane/agentlink/releases) ·
89
+ [Contributing](https://github.com/prplkane/agentlink/blob/main/CONTRIBUTING.md) · [Apache-2.0 license](LICENSE)
@@ -67,6 +67,75 @@ Normal shutdown drains queued responses even for slow readers. Explicit
67
67
  termination cancels both pumps and interrupts a blocked output drain, allowing
68
68
  the connection to release its installation lease.
69
69
 
70
+ ## Session history
71
+
72
+ An ACP v1 client opts in by sending `{"version":1}` under
73
+ `initialize.params.clientCapabilities._meta["agentlink.dev/session-history"]`.
74
+ The same key on `result.agentCapabilities._meta` returns the version and a
75
+ `strategy` of `ephemeral`, `archive-on-close` or `provider-managed`.
76
+
77
+ On an individual `session/new`, put `{"mode":"prefer-ephemeral"}` or
78
+ `{"mode":"require-ephemeral"}` under `params._meta["agentlink.dev/session-history"]`.
79
+ Omitting the key selects the provider's usual behavior. Each managed creation
80
+ returns `{"status":"..."}` under that key on `result._meta`. Check this actual
81
+ status before sending a prompt. Strict requests to a provider without native
82
+ non-saving support fail before session creation with
83
+ `error.data.code="SESSION_HISTORY_UNSUPPORTED"`. A Codex adapter that advertises
84
+ native support must also acknowledge it for the new thread. Missing or negative
85
+ acknowledgement fails creation with `SESSION_HISTORY_UNCONFIRMED`.
86
+
87
+ ### Inspecting an installed transport
88
+
89
+ `add`, `inspect`, `check` and `refresh` expose `verification.sessionHistory` in
90
+ their JSON output. A stock Codex profile can produce the following result.
91
+
92
+ ~~~json
93
+ { "acpV1Strategy": "archive-on-close", "codexExecEphemeral": "advertised" }
94
+ ~~~
95
+
96
+ `acpV1Strategy` describes the gateway's history policy for an ACP v1 client
97
+ using the opt-in above. It can also be `unknown` when the v1 handshake could
98
+ not be verified. A client still negotiates on its own connection and checks
99
+ the result of each requested creation.
100
+
101
+ For a bridge identifying itself as Codex ACP, `codexExecEphemeral` reports
102
+ whether its Codex executable lists `--ephemeral` in `exec --help`. AgentLink
103
+ checks the executable selected by `CODEX_PATH`, or the adapter's bundled CLI
104
+ via `codex-acp cli exec --help`. Values are `advertised`, `not-advertised`
105
+ and `unknown`. A failed command or unrecognized help format yields `unknown`.
106
+ Other agents omit this field. Direct CLI help never enables an ACP policy.
107
+
108
+ `inspect` and `check` return live observations. `add` and `refresh` save
109
+ them for offline reads with `show` or `list --json`. Older profiles and
110
+ profiles saved with `--skip-check` may lack this snapshot.
111
+
112
+ ### Provider behavior
113
+
114
+ | Provider behavior | Creation status | Behavior at close |
115
+ | --- | --- | --- |
116
+ | Published Claude ACP releases from 0.109.0 through 0.112.0 | `ephemeral` | The gateway sets `_meta.claudeCode.options.persistSession=false` at creation. |
117
+ | Codex ACP with the versioned native extension | `ephemeral` | The adapter confirms the app-server started a non-saving thread. |
118
+ | Published Codex ACP releases from 2.7.0 through 2.12.0 | `archive-on-close` | The thread is persistent until archived. A successful archive removes it from active history and retains it in the provider's archive. |
119
+ | Antigravity and other bridges without qualified support | `provider-managed` | The provider controls storage and sidebar visibility. |
120
+
121
+ Use standard `session/close` when finished with an owned session. A successful
122
+ close reports `ephemeral`, `archived`, `provider-managed` or `unconfirmed` in
123
+ the result metadata. Upstream close errors reach the client. An archive error
124
+ or timeout produces `unconfirmed`. When the connection ends, the gateway makes
125
+ one bounded retry for a failed explicit archive. Sessions remain usable across prompts.
126
+ The legacy Codex path sets a fixed title before the first prompt when supported,
127
+ so an accepted title suppresses the adapter's automatic title generation.
128
+ When AIR session indexing is active, only its explicit archive operation is
129
+ eligible. The gateway takes cleanup IDs from managed creations on its own
130
+ connection. On disconnect it gives pending client close or removal requests
131
+ time to finish. A confirmed client removal completes cleanup. A refused
132
+ close can still be followed by an owned archive. Disconnect cleanup is bounded. Process death
133
+ or a failed bridge can leave a persistent thread in active history.
134
+
135
+ The gateway keeps ownership in memory. It records no transcript or list of
136
+ provider chats. Non-saving describes local provider conversation history.
137
+ Provider-side billing, data retention and the client's own records are separate.
138
+
70
139
  ## Management path
71
140
 
72
141
  Profiles live in `profiles/NAME.json`. They contain a launch definition and
@@ -124,12 +193,18 @@ ACP commands are followed when advertised in command/option rows. An explicit
124
193
  help argument array handles other conventions. Help is treated as data, never
125
194
  as executable shell instructions or installation authority.
126
195
 
127
- The probe performs initialization only and recognizes negotiated ACP v1 or the
128
- v2 draft. It offers v2 using `info` and `capabilities`, then reads the response
196
+ Discovery and connection checks open no sessions. AgentLink offers the v2
197
+ draft using `info` and `capabilities`, then reads the response
129
198
  fields for the negotiated version (`agentInfo`/`agentCapabilities` in v1,
130
- `info`/`capabilities` in v2). The gateway still forwards the caller's own handshake.
131
- It saves advertised capabilities and authentication metadata. This does not
132
- verify model access, permissions enforcement, or complete task behavior.
199
+ `info`/`capabilities` in v2). A v2 reply, or a Codex reply to that initial
200
+ offer, gets a separate v1 initialization with the history opt-in. The primary
201
+ verification retains its negotiated protocol, capabilities and authentication
202
+ metadata even if this optional v1 check fails. A gateway connection uses the
203
+ caller's handshake and performs no help scans. Setup verification does not
204
+ verify model access, permissions enforcement, or complete task behavior. Model
205
+ listing uses read-only `session/options` when offered. Inspection that needs
206
+ live setters, or operates on a peer without that method, opens a fresh session
207
+ with the available non-saving or owned archive strategy and never sends a prompt.
133
208
  Temporary probe directory cleanup retries transient Windows filesystem contention
134
209
  for a bounded period; a persistent cleanup failure is still reported.
135
210
 
@@ -145,6 +220,7 @@ the profile instead of dropping its options and activating a different launch.
145
220
  | `management-cli.mjs`, `doctor.mjs` | Management commands and read-only local diagnostics |
146
221
  | `gateway.mjs`, `wire.mjs`, `terminal-auth.mjs`, `json-spans.mjs` | ACP forwarding, framing, backpressure and lossless JSON edits |
147
222
  | `session-defaults.mjs`, `session-options.mjs` | Per-session defaults and bridge-advertised model and effort choices |
223
+ | `session-history.mjs` | Per-creation native history settings and connection-owned archive cleanup |
148
224
  | `profiles.mjs`, `storage.mjs` | User profiles, atomic records and operation locks |
149
225
  | `bridges.mjs`, `artifacts.mjs` | Selected distributions, shared installations, integrity and bounded extraction |
150
226
  | `discovery.mjs`, `probe.mjs` | Help/metadata matching, initialization checks and explicit option inspection |
@@ -1,22 +1,21 @@
1
- # Testing the AgentLink public beta on another laptop
1
+ # AgentLink setup and troubleshooting
2
2
 
3
- Use `@prplkane/agentlink@0.3.0-beta.3`. Node.js 22 or newer with npm is required.
4
- AgentLink has no npm runtime dependencies; the agents and selected bridges have
5
- their own dependencies. Do not copy profiles blindly between machines because
6
- external executable paths are machine-specific.
3
+ Install the public beta with Node.js 22 or newer and npm. AgentLink ships with zero
4
+ npm runtime dependencies. Agents and bridges have their own prerequisites. When moving
5
+ to a new machine, configure local executable paths for any externally installed agents.
7
6
 
8
7
  ## Install once
9
8
 
10
9
  ~~~sh
11
- npm install -g @prplkane/agentlink@0.3.0-beta.3
10
+ npm install -g @prplkane/agentlink@beta
12
11
  agentlink --version
13
12
  agentlink --help
14
13
  agentlink where
15
14
  agentlink doctor
16
15
  ~~~
17
16
 
18
- The version should be `0.3.0-beta.3`. Installation of AgentLink alone downloads no
19
- vendor bridge.
17
+ Compare `agentlink --version` with `npm view @prplkane/agentlink@beta version`.
18
+ Managed bridges install when you add the corresponding provider.
20
19
 
21
20
  ## Configure the agents you have
22
21
 
@@ -59,6 +58,33 @@ For a known existing distribution outside the built-in recipes, use
59
58
  `agentlink add NAME --manifest PATH-OR-URL` with an individual ACP registry entry.
60
59
  Only use a distribution you intend to install and execute.
61
60
 
61
+ ## Custom bridges and offline installs
62
+
63
+ To share a specific bridge version, install it under a bridge ID, then point one or
64
+ more profiles at that ID. Replace `PACKAGE_NAME` and `VERSION` with a published npm
65
+ package and version.
66
+
67
+ ```sh
68
+ agentlink bridge install review-bridge --package PACKAGE_NAME --version VERSION
69
+ agentlink add review --bridge review-bridge
70
+ agentlink bridge show review-bridge
71
+ ```
72
+
73
+ An ACP registry entry can supply an npm package (`npx`), a native artifact (`binary`),
74
+ or a Python package (`uvx`). Python installs use a shared virtual environment and
75
+ require Python with venv and pip. Use `--bin` to select an executable from a package.
76
+ For an offline install, supply a local tarball or wheel with `--source`, or use the
77
+ package manager's cache. Set `--offline` to disable registry downloads by AgentLink.
78
+ Third-party install hooks and agent processes run with the current user's permissions.
79
+
80
+ Native artifacts can be raw executables, ZIP files, or tar.gz archives. The default
81
+ limits are 256 MiB per download, 512 MiB of extracted data, and 10,000 entries.
82
+ For other installer formats, use an externally installed executable.
83
+
84
+ Use `agentlink bridge update review-bridge --version VERSION` to switch versions.
85
+ Once sessions finish, `agentlink bridge prune` removes unused installations.
86
+ Add `--cache` to clear the package cache as well.
87
+
62
88
  ## Check the standard ACP connection
63
89
 
64
90
  ~~~sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prplkane/agentlink",
3
- "version": "0.3.0-beta.4",
3
+ "version": "0.3.0-beta.5",
4
4
  "type": "module",
5
5
  "description": "Connect ACP clients to agent CLIs through named profiles and centrally managed bridges.",
6
6
  "exports": {
package/src/bridges.mjs CHANGED
@@ -100,7 +100,7 @@ function validateSpec(input) {
100
100
  }
101
101
 
102
102
  export class BridgeStore extends BridgeRegistry {
103
- async install(id, input, { env = process.env, timeoutMs = 3000, installTimeoutMs = 180000,
103
+ async install(id, input, { env = process.env, timeoutMs = 3000, maxHelpBytes = 65536, installTimeoutMs = 180000,
104
104
  offline = false, signal, validate, publish = record => this.publish(record) } = {}) {
105
105
  profileName(id);
106
106
  let spec = validateSpec(input);
@@ -201,7 +201,7 @@ export class BridgeStore extends BridgeRegistry {
201
201
  if (!Object.hasOwn(metadata.bins, bin)) throw error('EXECUTABLE_MISSING', 'Select an executable with --bin. Available: ' + names.join(', '));
202
202
  const launch = { ...metadata.bins[bin], acpArgs: spec.args, env: spec.env };
203
203
  if (process.platform === 'win32' && /\.(cmd|bat|ps1)$/i.test(launch.command)) throw error('UNSUPPORTED_LAUNCHER', 'Use a native or Node entry point for this managed bridge.');
204
- const verification = await inProbeDirectory(cwd => verifyAgent(launch, { cwd, env, timeoutMs, signal }));
204
+ const verification = await inProbeDirectory(cwd => verifyAgent(launch, { cwd, env, timeoutMs, maxHelpBytes, signal }));
205
205
  await validate?.(launch);
206
206
  signal?.throwIfAborted();
207
207
  const record = { schemaVersion: 1, id, installKey, spec, launch, verification, updatedAt: new Date().toISOString() };