@prplkane/agentlink 0.0.0-stage → 0.3.0-beta.2
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/LICENSE +201 -0
- package/NOTICE +15 -0
- package/README.md +296 -2
- package/docs/acp-qualification.md +165 -0
- package/docs/architecture.md +151 -0
- package/docs/laptop-testing.md +184 -0
- package/docs/licenses/roundtable-MIT.txt +21 -0
- package/examples/acp-check.mjs +33 -0
- package/examples/connect.mjs +40 -0
- package/package.json +41 -4
- package/src/artifacts.mjs +173 -0
- package/src/bridges.mjs +258 -0
- package/src/child-process.mjs +33 -0
- package/src/cli.mjs +38 -0
- package/src/client.mjs +309 -0
- package/src/discovery.mjs +168 -0
- package/src/doctor.mjs +63 -0
- package/src/gateway.mjs +106 -0
- package/src/index.mjs +232 -0
- package/src/management-cli.mjs +167 -0
- package/src/probe.mjs +57 -0
- package/src/process.mjs +112 -0
- package/src/profiles.mjs +107 -0
- package/src/providers.mjs +58 -0
- package/src/replace-file.mjs +14 -0
- package/src/runtime.mjs +87 -0
- package/src/storage.mjs +63 -0
- package/src/terminal-auth.mjs +62 -0
- package/src/version.mjs +1 -0
- package/src/wire.mjs +50 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# ACP and Roundtable qualification — 2026-11-09
|
|
2
|
+
|
|
3
|
+
The three real providers completed text prompts and two discussion rounds through
|
|
4
|
+
AgentLink and Roundtable. The deterministic small-agent mimic did too. The live
|
|
5
|
+
Codex chairman initially reached the test's 60-second deadline. The user-requested
|
|
6
|
+
rerun with a separate low-effort chairman profile completed successfully in
|
|
7
|
+
12.2 seconds, with a ready live verdict. The offline full-review tests also reached
|
|
8
|
+
ready chairman verdicts. No additional AgentLink runtime changes were needed.
|
|
9
|
+
|
|
10
|
+
## Environment and scope
|
|
11
|
+
|
|
12
|
+
- Windows, Node 24.19.0. AgentLink base `c087f82`, with the AL-003 changes.
|
|
13
|
+
- Roundtable's previous ACP integration `b4141d4` was found in its existing Git
|
|
14
|
+
worktree and replayed onto current main `b032625` (0.6.5), producing `7b6d233`
|
|
15
|
+
before the regression patch. The original checkout and running installed 0.6.3
|
|
16
|
+
board were not changed. Both work branches are `codex/acp-regression-qualification`.
|
|
17
|
+
- All AgentLink profiles, bridge installs, projects and Roundtable review records
|
|
18
|
+
used separate temporary directories. Live vendor CLIs used their existing login
|
|
19
|
+
handling. No credentials were copied; inherited API keys were filtered by Roundtable.
|
|
20
|
+
- Routine tests used only fake agents and local artifacts. Live calls were explicit,
|
|
21
|
+
bounded synthetic text tests, with the user's agy terms/isolation acknowledgment.
|
|
22
|
+
- No new runtime dependencies, daemon, transcript store or orchestration in AgentLink.
|
|
23
|
+
|
|
24
|
+
## Provider results
|
|
25
|
+
|
|
26
|
+
| Provider | Tested bridge / model | Setup and text | Live Roundtable discussion | Chairman |
|
|
27
|
+
|---|---|---|---|---|
|
|
28
|
+
| Codex | `@agentclientprotocol/codex-acp` 2.6.0; `gpt-6-luna` | Managed install/check passes v2; Roundtable v1 text, model selection and usage pass | Initial run: 2/2 replies; about 29.9 s and 54.7 s | Initial timeout at 60 s; low-effort follow-up ready in 12.2 s |
|
|
29
|
+
| Claude | `@agentclientprotocol/claude-agent-acp` 0.101.0; `haiku` | Managed install/check passes v2; Roundtable v1 text, model selection, cache/token counts and reported USD cost pass | 2/2 replies; about 11.0 s and 15.8 s | Not separately tested live |
|
|
30
|
+
| agy | Native ACP server 1.5.3; `gemini-3.8-flash` | Negotiates v1; text, model selection and token counts pass | 2/2 replies; about 22.2 s and 17.2 s | Not separately tested live |
|
|
31
|
+
| Small-agent mimic | Roundtable's deterministic local `fake-acp.mjs` | Standard ACP text and synthetic usage pass | 2/2 replies; about 0.2 s each | Ready in separate offline reviews |
|
|
32
|
+
|
|
33
|
+
The discussion timings above describe the initial run; the follow-up is recorded
|
|
34
|
+
below. These are individual observations, not performance benchmarks or an assessment of
|
|
35
|
+
reasoning quality. The mimic is a scripted protocol peer, not a trained model.
|
|
36
|
+
Its tokens and cost are synthetic and must not be included in actual spending.
|
|
37
|
+
|
|
38
|
+
The live review used four distinct lenses (risk, cost, evidence, reversibility),
|
|
39
|
+
stateless memory, one critique round, a 250,000-token ACP budget, a 240-second
|
|
40
|
+
review deadline and 60-second call deadlines. All eight discussion replies were
|
|
41
|
+
usable; no tool activity was reported. The nine planned attempts comprised those
|
|
42
|
+
eight replies and one Codex chairman attempt. Three separate short smoke calls
|
|
43
|
+
also returned the expected marker. There were no automatic verdict retries.
|
|
44
|
+
|
|
45
|
+
Review receipt: `2026-11-09-synthetic-integration-review-should-a-fi-058ae631133c419799a65ae996a00820`.
|
|
46
|
+
Final state: `done`, verdict `failed` / `timeout`; two completed discussion rounds,
|
|
47
|
+
including one completed critique round. The temporary board at
|
|
48
|
+
`http://127.0.0.1:60289/` was stopped after recording the result. No recommendation
|
|
49
|
+
or chairman dissent is claimed. The saved review offers the explicit `verdict`
|
|
50
|
+
recovery action; unknown spending can also prevent another call under its budget.
|
|
51
|
+
|
|
52
|
+
## Low-effort chairman rerun
|
|
53
|
+
|
|
54
|
+
On the user's request, a separate temporary `codex-chair-low` profile retained
|
|
55
|
+
the existing Codex launch environment and added `model_reasoning_effort: "low"`
|
|
56
|
+
inside the bridge-supported `CODEX_CONFIG` JSON. Initialization/session inspection
|
|
57
|
+
confirmed advertised effort `low` both before and after selecting `gpt-6-luna`.
|
|
58
|
+
Those configuration checks made no model call. This used AgentLink's existing
|
|
59
|
+
environment forwarding; no new setting, budget logic or fallback was added to it.
|
|
60
|
+
|
|
61
|
+
The full four-seat review was rerun with only the chairman profile changed.
|
|
62
|
+
The models, seat profiles, one critique round, 250,000-token budget, 240-second
|
|
63
|
+
review deadline and 60-second call deadlines remained the same. All eight seat
|
|
64
|
+
replies were usable, and the ninth attempt completed chairman synthesis:
|
|
65
|
+
|
|
66
|
+
- Final state: `done`, verdict `ready`; two completed discussion rounds including
|
|
67
|
+
one completed critique round, with zero failed replies.
|
|
68
|
+
- Codex chairman: 12,169 ms; reported 5,676 uncached input, 9,600 cached input and
|
|
69
|
+
292 output tokens. No protocol/tool-policy error or unknown chairman usage.
|
|
70
|
+
- One synthetic scenario question was presented to the user. The server's answer
|
|
71
|
+
window expired without a response; the missing trial-cost fact remained unknown.
|
|
72
|
+
- The fictional verdict declined to choose either cache option without baseline,
|
|
73
|
+
monitoring and recovery evidence. The strongest dissent favored waiting, while
|
|
74
|
+
whether waiting would produce useful measurements remained unknown.
|
|
75
|
+
- No alternate vendor or extra verdict attempt was needed. A successful repeat
|
|
76
|
+
does not prove whether the earlier timeout came from effort, service latency or
|
|
77
|
+
other variation; cache and provider conditions may differ between runs.
|
|
78
|
+
|
|
79
|
+
Follow-up receipt:
|
|
80
|
+
`2026-11-09-synthetic-integration-review-should-a-fi-da6e82d549504d9caf78e1cf6ed71eb4`.
|
|
81
|
+
The temporary board was `http://127.0.0.1:53750/` and was stopped after recording
|
|
82
|
+
the ready verdict. The installed Roundtable board and user AgentLink profiles were
|
|
83
|
+
unchanged. Only documentation/work records were updated for this rerun.
|
|
84
|
+
|
|
85
|
+
## Reproduced defects and fixes
|
|
86
|
+
|
|
87
|
+
1. **Malformed v2 initialization.** The probe offered v2 with v1 `clientInfo` and
|
|
88
|
+
`clientCapabilities`. Both current bridges rejected it with `-32602`, naming
|
|
89
|
+
missing `info`. The probe and independent example now send v2 fields and read
|
|
90
|
+
version-appropriate response metadata. Fixtures now represent actual v2 shapes,
|
|
91
|
+
with a strict request regression. The real managed installs then passed.
|
|
92
|
+
2. **Windows cleanup masked probe results.** A transient `EBUSY` while removing a
|
|
93
|
+
probe cwd could turn initialization into an install failure. A controlled child
|
|
94
|
+
holding the cwd reproduced it. Bounded filesystem retries preserve successful
|
|
95
|
+
results and original probe errors; persistent cleanup errors remain visible.
|
|
96
|
+
3. **Refresh discarded exact arguments.** Refresh failed for the standalone Claude
|
|
97
|
+
script and could replace agy's explicit flags with a discovered default. Manual
|
|
98
|
+
and managed arguments now survive refresh. Failed exact refreshes retain the
|
|
99
|
+
original profile; help-derived profiles can still rediscover stale commands.
|
|
100
|
+
4. **Roundtable session-binding race.** A foreign-session update coalesced with the
|
|
101
|
+
`session/new` response was ignored before the awaiting caller assigned the ID.
|
|
102
|
+
Roundtable now binds at the receive boundary and rejects it before prompting.
|
|
103
|
+
|
|
104
|
+
The Antigravity recipe also now reflects the installed and documented native ACP
|
|
105
|
+
command. Native support is a technical fact, not a general approval of wrapper use.
|
|
106
|
+
|
|
107
|
+
## Verification
|
|
108
|
+
|
|
109
|
+
| Check | Actual result |
|
|
110
|
+
|---|---|
|
|
111
|
+
| AgentLink baseline `npm test` | 92 passed, no failures or skips |
|
|
112
|
+
| AgentLink final `npm test` | 96 passed, no failures or skips; Python fixture included |
|
|
113
|
+
| Roundtable rebased baseline `npm test` | 414 passed, one POSIX-only skip on Windows |
|
|
114
|
+
| Roundtable final `npm test` | 415 passed, one POSIX-only skip; no failures |
|
|
115
|
+
| Roundtable focused `node --test test/acp.test.js` | 21 passed |
|
|
116
|
+
| `node scripts/test-roundtable.mjs <updated-roundtable-checkout>` | 5 passed: full reviews, central update, cancellation, lease cleanup and unknown-usage caps |
|
|
117
|
+
|
|
118
|
+
Each behavioral fix has a reproduction that failed before the fix. The refresh
|
|
119
|
+
test was intentionally narrowed to stale *help-derived* arguments; separate tests
|
|
120
|
+
protect exact manual and managed arguments. JS and Python fixture expectations
|
|
121
|
+
changed because their former v2 messages incorrectly used the v1 response schema.
|
|
122
|
+
|
|
123
|
+
Linux/macOS execution, hosted CI, real permission challenges, large live outputs,
|
|
124
|
+
live bridge updates and vendor cancellation recovery were not qualified. The
|
|
125
|
+
offline suite covers these protocol/lifecycle cases where stated. A timeout was
|
|
126
|
+
observed live, but it does not establish every vendor's cancellation behavior.
|
|
127
|
+
No matching test-launch processes remained after the run; this is not a guarantee
|
|
128
|
+
against already-orphaned Windows descendants.
|
|
129
|
+
|
|
130
|
+
## Improvements outside the AgentLink runtime
|
|
131
|
+
|
|
132
|
+
Effort controls, budget grouping and review diagnostics belong to Roundtable or
|
|
133
|
+
another ACP client. AgentLink stays a launcher and protocol gateway. A profile
|
|
134
|
+
can already pass a bridge-supported default through arguments/environment; no
|
|
135
|
+
universal effort setting, budget manager or vendor fallback is needed in AgentLink.
|
|
136
|
+
|
|
137
|
+
1. Let Roundtable select advertised `thought_level` configuration options, or show
|
|
138
|
+
the inherited effort before starting. Codex advertised `max` at setup; the ACP
|
|
139
|
+
adapter currently refuses an explicit effort override. The existing bridge
|
|
140
|
+
environment option was sufficient for a successful low-effort rerun; a UI control
|
|
141
|
+
would be a Roundtable convenience, not a required AgentLink feature.
|
|
142
|
+
2. Have Roundtable show effective permissions/customization beside each ACP profile. These runs
|
|
143
|
+
reported no tools, but Claude advertised `auto` mode and profiles can load
|
|
144
|
+
vendor customizations. A fresh cwd and denied client tools are not a sandbox.
|
|
145
|
+
3. Keep protocol contract fixtures separate for v1, v2, native agy and SDK bridges.
|
|
146
|
+
Run the cross-repository test against the matching integration in CI; published
|
|
147
|
+
Roundtable 0.6.3 did not yet include the ACP provider.
|
|
148
|
+
4. Add profile-level usage/budget labels in Roundtable. All these different providers
|
|
149
|
+
currently share vendor key `acp`; missing usage in one profile can block another
|
|
150
|
+
under a shared token cap. Preserve the existing fail-closed accounting.
|
|
151
|
+
5. Add safe Roundtable timeout diagnostics (stage, elapsed time, last event type). The ACP
|
|
152
|
+
chairman timeout recorded empty progress, so it cannot distinguish provider
|
|
153
|
+
silence from ongoing reasoning. Do not record transcripts or infer missing usage.
|
|
154
|
+
|
|
155
|
+
## Sources
|
|
156
|
+
|
|
157
|
+
- [ACP v1 initialization](https://agentclientprotocol.com/protocol/v1/initialization)
|
|
158
|
+
and [v2 initialization](https://agentclientprotocol.com/protocol/v2/initialization)
|
|
159
|
+
define the different request and response fields and downgrade handling.
|
|
160
|
+
- [Codex ACP](https://github.com/agentclientprotocol/codex-acp) and
|
|
161
|
+
[Claude ACP](https://github.com/agentclientprotocol/claude-agent-acp) are the tested
|
|
162
|
+
upstream bridges. Versions above were pinned from npm, not inferred from main.
|
|
163
|
+
- [Antigravity ACP guide](https://antigravity.google/docs/cli/acp/) documents `agy acp`.
|
|
164
|
+
Its [FAQ](https://antigravity.google/docs/faq) separately describes third-party
|
|
165
|
+
wrapper restrictions. Review those terms for the intended use.
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# AgentLink implementation
|
|
2
|
+
|
|
3
|
+
AgentLink is one per-user installation that exposes configured agents through
|
|
4
|
+
standard ACP. The first release uses on-demand local subprocesses, not a daemon.
|
|
5
|
+
An application selects a profile in its launch arguments. It supplies its own
|
|
6
|
+
ACP client, so no AgentLink SDK or custom RPC contract is required.
|
|
7
|
+
|
|
8
|
+
## Runtime path
|
|
9
|
+
|
|
10
|
+
`ACP client -> agentlink acp PROFILE -> resolved bridge/native ACP executable`
|
|
11
|
+
|
|
12
|
+
The launcher reads the profile and, for managed profiles, the active shared
|
|
13
|
+
bridge record. It creates a lease before starting the bridge. Launch arguments
|
|
14
|
+
are arrays; there is no shell interpretation. The caller's working directory
|
|
15
|
+
and standard ACP session parameters are preserved.
|
|
16
|
+
The ACP command does not import management, installer, archive, discovery or
|
|
17
|
+
legacy client modules. External launches outside the managed store need no
|
|
18
|
+
lease lock or filesystem writes. External profiles that explicitly point into
|
|
19
|
+
the managed store still acquire leases so pruning cannot remove running files.
|
|
20
|
+
On Windows, installation-key casing is normalized for both saved references and
|
|
21
|
+
leases. Reference tracking recognizes explicit absolute executable/argument paths;
|
|
22
|
+
use a managed bridge reference for ownership through aliases or embedded arguments.
|
|
23
|
+
|
|
24
|
+
The wire layer validates newline-delimited UTF-8 JSON-RPC and bounds individual
|
|
25
|
+
frames. It preserves messages rather than maintaining a list of supported ACP
|
|
26
|
+
methods. Backpressure follows Node streams. It does not initialize or create a
|
|
27
|
+
session on the application's behalf, approve tools, retry a prompt, or record
|
|
28
|
+
conversation content.
|
|
29
|
+
|
|
30
|
+
The exception to byte-preserving forwarding is an initialize response containing
|
|
31
|
+
terminal authentication methods. Their argv receives an AgentLink marker so a
|
|
32
|
+
client's subsequent standard interactive relaunch is recognized even if the
|
|
33
|
+
upstream method only supplies environment variables. The launcher strips that
|
|
34
|
+
marker and appends the original arguments to the original bridge invocation.
|
|
35
|
+
Only the affected argument spans are rewritten. Large numeric IDs, numeric
|
|
36
|
+
extensions, unrelated fields and whitespace retain their original JSON bytes.
|
|
37
|
+
|
|
38
|
+
The connection owns one bridge process. On client EOF it allows a short exit
|
|
39
|
+
grace, then stops the process tree where the host supports it. Existing ACP
|
|
40
|
+
sessions stay with that process when profiles or installations change.
|
|
41
|
+
Normal shutdown drains queued responses even for slow readers. Explicit
|
|
42
|
+
termination cancels both pumps and interrupts a blocked output drain, allowing
|
|
43
|
+
the connection to release its installation lease.
|
|
44
|
+
|
|
45
|
+
## Management path
|
|
46
|
+
|
|
47
|
+
Profiles live in `profiles/NAME.json`. They contain a launch definition and
|
|
48
|
+
discovery metadata. A managed profile additionally references a bridge ID; the
|
|
49
|
+
saved executable snapshot is not used as its active version pointer.
|
|
50
|
+
|
|
51
|
+
Bridge records live in `bridges/ID.json`. Each contains a selected version, an
|
|
52
|
+
installation key and launch metadata. AgentLink does not modify installations
|
|
53
|
+
after publication; their owning OS user still can. They are keyed by distribution, exact version, source and platform
|
|
54
|
+
(plus Node module ABI for npm packages).
|
|
55
|
+
|
|
56
|
+
Two bridge IDs using the same installation identity reuse the same files.
|
|
57
|
+
Different profiles referencing one bridge ID receive its next central update.
|
|
58
|
+
Separate bridge IDs can deliberately pin different versions.
|
|
59
|
+
|
|
60
|
+
Installations are not activated until the installer finishes, the actual package
|
|
61
|
+
identity is checked where available, ACP initialization succeeds, and existing
|
|
62
|
+
dependent profile configurations pass initialization. The active record is
|
|
63
|
+
replaced atomically. A failed candidate never replaces that pointer.
|
|
64
|
+
Combined profile/bridge changes validate discovery options up front and
|
|
65
|
+
prepare the installation before publication. Under the lease lock, the profile
|
|
66
|
+
is saved and the bridge record is published; a publication error restores the
|
|
67
|
+
previous profile (or removes a newly added one). If rollback itself fails, the
|
|
68
|
+
command reports `ROLLBACK_FAILED` for manual recovery. This is recovery from
|
|
69
|
+
ordinary operation failures, not a power-loss-safe multi-file transaction.
|
|
70
|
+
An abrupt process death can leave the publication lock for explicit recovery.
|
|
71
|
+
|
|
72
|
+
Management mutations are serialized separately from short lease operations.
|
|
73
|
+
Installing a bridge therefore does not block established connections or the
|
|
74
|
+
startup of already configured agents. Pruning runs under both locks, retains
|
|
75
|
+
active installations, externally referenced paths and live leases, and deletes
|
|
76
|
+
only checked descendants of the managed installation directory.
|
|
77
|
+
Profile and bridge metadata are flushed before publication. A live-process
|
|
78
|
+
lease is atomically written without a durability flush: it does not need to
|
|
79
|
+
survive a machine restart when its owning process cannot survive either.
|
|
80
|
+
On Windows, atomic replacement retries file-sharing conflicts up to five times
|
|
81
|
+
with at most 750 ms of retry delay. A persistent failure leaves the old file in
|
|
82
|
+
place and reports the error; replacement never deletes the destination first.
|
|
83
|
+
|
|
84
|
+
No automatic deletion of previous versions occurs during an update. Users can
|
|
85
|
+
prune after sessions finish and optionally clear the download cache. External
|
|
86
|
+
installations remain user-owned.
|
|
87
|
+
|
|
88
|
+
## Discovery
|
|
89
|
+
|
|
90
|
+
Known recipes are shortcuts, not a supported-vendor boundary. An unknown agent
|
|
91
|
+
can be configured through bounded help parsing or explicit launch metadata and
|
|
92
|
+
saved locally without changing source code.
|
|
93
|
+
|
|
94
|
+
Default help probes are `--help` and `-h`. Alternative help commands and nested
|
|
95
|
+
ACP commands are followed when advertised in command/option rows. An explicit
|
|
96
|
+
help argument array handles other conventions. Help is treated as data, never
|
|
97
|
+
as executable shell instructions or installation authority.
|
|
98
|
+
|
|
99
|
+
The probe performs initialization only and recognizes negotiated ACP v1 or the
|
|
100
|
+
v2 draft. It offers v2 using `info` and `capabilities`, then reads the response
|
|
101
|
+
fields for the negotiated version (`agentInfo`/`agentCapabilities` in v1,
|
|
102
|
+
`info`/`capabilities` in v2). The gateway still forwards the caller's own handshake.
|
|
103
|
+
It saves advertised capabilities and authentication metadata. This does not
|
|
104
|
+
verify model access, permissions enforcement, or complete task behavior.
|
|
105
|
+
Temporary probe directory cleanup retries transient Windows filesystem contention
|
|
106
|
+
for a bounded period; a persistent cleanup failure is still reported.
|
|
107
|
+
|
|
108
|
+
Refresh retains explicit manual arguments and resolved managed bridge arguments.
|
|
109
|
+
It rediscovers help/known external launches only. A failed exact refresh preserves
|
|
110
|
+
the profile instead of dropping its options and activating a different launch.
|
|
111
|
+
|
|
112
|
+
## Modules
|
|
113
|
+
|
|
114
|
+
| File | Responsibility |
|
|
115
|
+
|---|---|
|
|
116
|
+
| `cli.mjs`, `runtime.mjs` | Small ACP launch entry, saved records and live-process leases |
|
|
117
|
+
| `management-cli.mjs`, `doctor.mjs` | Management commands and read-only local diagnostics |
|
|
118
|
+
| `gateway.mjs`, `wire.mjs`, `terminal-auth.mjs` | ACP forwarding, framing, backpressure and lossless auth argument edits |
|
|
119
|
+
| `profiles.mjs`, `storage.mjs` | User profiles, atomic records and operation locks |
|
|
120
|
+
| `bridges.mjs`, `artifacts.mjs` | Selected distributions, shared installations, integrity and bounded extraction |
|
|
121
|
+
| `discovery.mjs`, `probe.mjs` | Help/metadata matching and initialization-only checks |
|
|
122
|
+
| `process.mjs`, `child-process.mjs` | Executable resolution, bounded probes/installers and shared process cleanup |
|
|
123
|
+
| `providers.mjs` | Small documented launch/install recipes |
|
|
124
|
+
| `index.mjs` | Management coordination and compatibility library exports |
|
|
125
|
+
| `client.mjs` | Original optional ACP v1 text client; not the gateway protocol engine |
|
|
126
|
+
|
|
127
|
+
## Validation boundaries
|
|
128
|
+
|
|
129
|
+
Tests run independent ACP callers against fake agents, install locally created
|
|
130
|
+
artifacts, and exercise updates and failures without vendor accounts.
|
|
131
|
+
Windows is the execution host for this implementation pass. Python fixture
|
|
132
|
+
installation is optional on hosts without Python. Linux/macOS remain unqualified;
|
|
133
|
+
the [live qualification report](acp-qualification.md) records the tested vendor
|
|
134
|
+
behavior and its limits separately from the offline suite.
|
|
135
|
+
|
|
136
|
+
Windows process-tree cleanup uses taskkill while the owned bridge is alive.
|
|
137
|
+
Native Job Object containment is not implemented, so descendants orphaned by a
|
|
138
|
+
previously exited parent are a known limitation. Process ownership is not a
|
|
139
|
+
sandbox. Abrupt process death may leave a lock or lease; stale locks produce a
|
|
140
|
+
diagnostic, and pruning removes leases whose process no longer exists.
|
|
141
|
+
Very deep Python virtual environments can exceed Windows launcher limits.
|
|
142
|
+
Installation detects an interpreter path of 260 or more characters before
|
|
143
|
+
running venv/pip and requests a shorter store. No path virtualization layer,
|
|
144
|
+
extra service or native dependency is added.
|
|
145
|
+
|
|
146
|
+
Relevant specifications:
|
|
147
|
+
|
|
148
|
+
- [ACP stdio transport](https://agentclientprotocol.com/protocol/v1/transports)
|
|
149
|
+
- [Initialization and capabilities](https://agentclientprotocol.com/protocol/v1/initialization)
|
|
150
|
+
- [Terminal authentication](https://agentclientprotocol.com/protocol/v1/authentication)
|
|
151
|
+
- [Registry distribution format](https://github.com/agentclientprotocol/registry/blob/main/FORMAT.md)
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# Testing the AgentLink public beta on another laptop
|
|
2
|
+
|
|
3
|
+
Use `@prplkane/agentlink@0.3.0-beta.2`. 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.
|
|
7
|
+
|
|
8
|
+
## Install once
|
|
9
|
+
|
|
10
|
+
~~~sh
|
|
11
|
+
npm install -g @prplkane/agentlink@0.3.0-beta.2
|
|
12
|
+
agentlink --version
|
|
13
|
+
agentlink --help
|
|
14
|
+
agentlink where
|
|
15
|
+
agentlink doctor
|
|
16
|
+
~~~
|
|
17
|
+
|
|
18
|
+
The version should be `0.3.0-beta.2`. Installation of AgentLink alone downloads no
|
|
19
|
+
vendor bridge.
|
|
20
|
+
|
|
21
|
+
## Configure the agents you have
|
|
22
|
+
|
|
23
|
+
For an installed native ACP agent:
|
|
24
|
+
|
|
25
|
+
~~~sh
|
|
26
|
+
agentlink add kimi --command kimi
|
|
27
|
+
~~~
|
|
28
|
+
|
|
29
|
+
For centrally managed Codex and Claude bridges:
|
|
30
|
+
|
|
31
|
+
~~~sh
|
|
32
|
+
agentlink add codex --provider codex
|
|
33
|
+
agentlink add claude --provider claude
|
|
34
|
+
~~~
|
|
35
|
+
|
|
36
|
+
These commands download only the selected upstream bridges and their
|
|
37
|
+
dependencies, then check initialization. Complete vendor sign-in separately,
|
|
38
|
+
or through a compatible client's standard ACP authentication flow.
|
|
39
|
+
|
|
40
|
+
To retain control of an already installed bridge:
|
|
41
|
+
|
|
42
|
+
~~~sh
|
|
43
|
+
agentlink add codex-external --provider codex --external
|
|
44
|
+
~~~
|
|
45
|
+
|
|
46
|
+
For another executable:
|
|
47
|
+
|
|
48
|
+
~~~sh
|
|
49
|
+
agentlink inspect --command your-agent
|
|
50
|
+
agentlink add personal --command your-agent
|
|
51
|
+
~~~
|
|
52
|
+
|
|
53
|
+
If help discovery is inconclusive, supply the documented help invocation with
|
|
54
|
+
`--help-args` or exact ACP launch arguments with `--acp-args`. Supply argument
|
|
55
|
+
arrays as quoted JSON. A bridge that has no ACP launch mode cannot be created
|
|
56
|
+
merely by changing its flags.
|
|
57
|
+
|
|
58
|
+
For a known existing distribution outside the built-in recipes, use
|
|
59
|
+
`agentlink add NAME --manifest PATH-OR-URL` with an individual ACP registry entry.
|
|
60
|
+
Only use a distribution you intend to install and execute.
|
|
61
|
+
|
|
62
|
+
## Check the standard ACP connection
|
|
63
|
+
|
|
64
|
+
~~~sh
|
|
65
|
+
agentlink check kimi --json
|
|
66
|
+
agentlink check codex --json
|
|
67
|
+
agentlink check claude --json
|
|
68
|
+
agentlink config codex
|
|
69
|
+
~~~
|
|
70
|
+
|
|
71
|
+
Save diagnostics for failed checks. `initialize-passed` is an initialization
|
|
72
|
+
result, not proof that a logged-in agent can complete a task.
|
|
73
|
+
|
|
74
|
+
Copy the ordinary executable and argument fields from `agentlink config NAME`
|
|
75
|
+
into your ACP client's launch configuration. On Windows this selects Node
|
|
76
|
+
directly and avoids requiring the client to execute a `.cmd` shell shim.
|
|
77
|
+
|
|
78
|
+
With the source checkout, this independent ACP example performs initialization
|
|
79
|
+
through the actual gateway:
|
|
80
|
+
|
|
81
|
+
~~~sh
|
|
82
|
+
node examples/acp-check.mjs codex
|
|
83
|
+
~~~
|
|
84
|
+
|
|
85
|
+
It sends no coding task and does not authenticate automatically. Vendor startup
|
|
86
|
+
itself may access the network.
|
|
87
|
+
|
|
88
|
+
## Verify your actual workflow
|
|
89
|
+
|
|
90
|
+
In your chosen ACP application, test one small task with each agent, then:
|
|
91
|
+
|
|
92
|
+
1. Open two projects and use the same saved agent name in each.
|
|
93
|
+
2. Confirm streamed responses, the intended working directory and permission
|
|
94
|
+
requests reach the requesting project.
|
|
95
|
+
3. Cancel a task; confirm the cancellation and subsequent connection work.
|
|
96
|
+
4. Use different configured agents simultaneously.
|
|
97
|
+
5. Run an explicit bridge update or select a known version. Confirm new
|
|
98
|
+
connections use it while an existing session can finish on the old version.
|
|
99
|
+
6. End those sessions, then run `agentlink bridge prune` to remove unused versions.
|
|
100
|
+
|
|
101
|
+
## Roundtable integration
|
|
102
|
+
|
|
103
|
+
The [2026-11-09 qualification](acp-qualification.md) includes live results for
|
|
104
|
+
Codex, Claude and agy, plus a deterministic small-agent mimic. The installed
|
|
105
|
+
Roundtable must contain the ACP integration; a direct-CLI-only release will not
|
|
106
|
+
offer AgentLink seats. Use the updated integration checkout for the test below.
|
|
107
|
+
|
|
108
|
+
Use a Roundtable checkout containing `src/adapters/acp.js`. Its new **AgentLink
|
|
109
|
+
(ACP)** choice connects seats and the chairman to saved profiles. Existing direct
|
|
110
|
+
CLI choices remain available. No AgentLink SDK is imported into Roundtable.
|
|
111
|
+
|
|
112
|
+
Before testing vendors, this command from the AgentLink checkout runs a full
|
|
113
|
+
offline review through the actual Roundtable server and AgentLink gateway:
|
|
114
|
+
|
|
115
|
+
~~~sh
|
|
116
|
+
node scripts/test-roundtable.mjs /absolute/path/to/roundtable
|
|
117
|
+
~~~
|
|
118
|
+
|
|
119
|
+
It creates temporary profiles and managed fake bridges, verifies two discussion
|
|
120
|
+
rounds and a ready chairman verdict, updates a bridge centrally, then checks
|
|
121
|
+
cancellation and missing-usage behavior. No real user store or vendor CLI is used.
|
|
122
|
+
The integration script is developer tooling and is not included in the npm package.
|
|
123
|
+
|
|
124
|
+
For real agents on the other laptop:
|
|
125
|
+
|
|
126
|
+
1. Configure/check profiles with the commands above and complete vendor sign-in.
|
|
127
|
+
2. Start the updated Roundtable. If AgentLink is not globally installed, set
|
|
128
|
+
`ROUNDTABLE_AGENTLINK_CLI` to its absolute `src/cli.mjs` path in the shell that
|
|
129
|
+
starts Roundtable. Set `AGENTLINK_HOME` there only when using a custom shared store.
|
|
130
|
+
3. Choose **AgentLink (ACP)** for two seats and the chairman. Enter the saved
|
|
131
|
+
profile names, leave Model/effort at default and use stateless memory.
|
|
132
|
+
4. Use trusted profiles configured to disable their own tools. Roundtable denies
|
|
133
|
+
client tools and stops reported activity, but ACP cannot sandbox an agent's
|
|
134
|
+
built-in tools or suppress all customization. The profile controls its billing.
|
|
135
|
+
5. Run a small review and wait for the chairman verdict. Verify cancellation,
|
|
136
|
+
then explicitly update a bridge and run another review with the same profile names.
|
|
137
|
+
|
|
138
|
+
This client currently supports ACP v1 text reviews, fresh sessions and optional
|
|
139
|
+
advertised model selection. It does not offer session resume, web research or
|
|
140
|
+
automatic login through ACP. Optional end-turn token usage is not guaranteed;
|
|
141
|
+
when a bridge omits it, Roundtable's seat cap stops further calls for that seat.
|
|
142
|
+
That may prevent critique rounds even though initialization succeeds. The chairman
|
|
143
|
+
can still summarize usable replies. Report this as a vendor qualification gap,
|
|
144
|
+
not a successful full review. AgentLink forwards the bridge's capabilities unchanged.
|
|
145
|
+
|
|
146
|
+
Use a recent `agy acp` for Antigravity (`--provider antigravity`), not a prompt/CLI
|
|
147
|
+
output shim. [Google documents native ACP](https://antigravity.google/docs/cli/acp/),
|
|
148
|
+
while its [FAQ](https://antigravity.google/docs/faq) separately restricts third-party
|
|
149
|
+
wrappers under consumer plans. Protocol compatibility does not settle that policy.
|
|
150
|
+
The live qualification obtained the user's explicit terms/isolation acknowledgment.
|
|
151
|
+
|
|
152
|
+
Reasoning effort is inherited from the profile/vendor configuration. A small model
|
|
153
|
+
can still inherit a high effort setting: the qualification observed Codex `max`
|
|
154
|
+
during session setup and its chairman timed out at the test's 60-second limit.
|
|
155
|
+
The requested rerun used a separate temporary profile with
|
|
156
|
+
`model_reasoning_effort: "low"` in the Codex bridge's existing `CODEX_CONFIG` JSON;
|
|
157
|
+
the same model then completed chairman synthesis in 12.2 seconds. No AgentLink
|
|
158
|
+
runtime change was needed. Bridge defaults are provider-specific; merge the
|
|
159
|
+
setting with the profile's existing configuration rather than discarding it.
|
|
160
|
+
Choose a suitable profile default and a realistic per-call deadline before a live
|
|
161
|
+
review; do not automatically retry a timed-out verdict. Unknown usage remains unknown.
|
|
162
|
+
|
|
163
|
+
## Useful diagnostics
|
|
164
|
+
|
|
165
|
+
~~~sh
|
|
166
|
+
agentlink show codex
|
|
167
|
+
agentlink bridge show codex
|
|
168
|
+
agentlink list --json
|
|
169
|
+
agentlink check codex --timeout 15000 --json
|
|
170
|
+
agentlink doctor --json
|
|
171
|
+
~~~
|
|
172
|
+
|
|
173
|
+
Report the OS, Node version, bridge package/version, initialization result, exact
|
|
174
|
+
operation that failed and its stderr. Remove credentials, prompts and private
|
|
175
|
+
paths before sharing diagnostics.
|
|
176
|
+
|
|
177
|
+
`doctor` only reads local configuration and files; it does not launch an agent,
|
|
178
|
+
repair locks or test credentials. For `PYTHON_PATH_TOO_LONG` on Windows, choose
|
|
179
|
+
a shorter absolute `AGENTLINK_HOME` or `--home` before configuring a managed
|
|
180
|
+
Python bridge. Profiles and installations belong to that selected home.
|
|
181
|
+
|
|
182
|
+
No live vendor results are claimed by the offline suite. This laptop pass is
|
|
183
|
+
where account access, vendor-specific features and actual task behavior are
|
|
184
|
+
verified.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 prplkane
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// An independent ACP caller. No AgentLink library import.
|
|
2
|
+
// Usage from a project directory: node /path/to/examples/acp-check.mjs PROFILE
|
|
3
|
+
import { spawn } from 'node:child_process';
|
|
4
|
+
import { createInterface } from 'node:readline';
|
|
5
|
+
import { fileURLToPath } from 'node:url';
|
|
6
|
+
|
|
7
|
+
const name = process.argv[2];
|
|
8
|
+
if (!name) throw new Error('Usage: node examples/acp-check.mjs PROFILE');
|
|
9
|
+
const child = spawn(process.execPath, [fileURLToPath(new URL('../src/cli.mjs', import.meta.url)), 'acp', name], {
|
|
10
|
+
cwd: process.cwd(), env: process.env, windowsHide: true, stdio: ['pipe', 'pipe', 'inherit']
|
|
11
|
+
});
|
|
12
|
+
const reader = createInterface({ input: child.stdout });
|
|
13
|
+
let answered = false;
|
|
14
|
+
const timer = setTimeout(() => { console.error('Initialization timed out.'); process.exitCode = 1; child.stdin.end(); }, 15000);
|
|
15
|
+
child.stdin.on('error', () => {});
|
|
16
|
+
child.once('error', cause => { console.error(cause.message); process.exitCode = 1; clearTimeout(timer); });
|
|
17
|
+
child.once('exit', code => {
|
|
18
|
+
clearTimeout(timer);
|
|
19
|
+
if (!answered || code) process.exitCode = 1;
|
|
20
|
+
});
|
|
21
|
+
reader.on('line', line => {
|
|
22
|
+
try {
|
|
23
|
+
const message = JSON.parse(line);
|
|
24
|
+
if (message.id !== 1 || message.method) return;
|
|
25
|
+
answered = true; clearTimeout(timer);
|
|
26
|
+
console.log(JSON.stringify(message.error || message.result, null, 2));
|
|
27
|
+
if (message.error) process.exitCode = 1;
|
|
28
|
+
child.stdin.end();
|
|
29
|
+
} catch (cause) { console.error(cause.message); process.exitCode = 1; child.stdin.end(); }
|
|
30
|
+
});
|
|
31
|
+
child.stdin.write(JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'initialize', params: {
|
|
32
|
+
protocolVersion: 2, capabilities: {}, info: { name: 'independent-acp-check', version: '1' }
|
|
33
|
+
} }) + '\n');
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { stripVTControlCharacters } from 'node:util';
|
|
2
|
+
import { createInterface } from 'node:readline/promises';
|
|
3
|
+
import { agentlink } from '@prplkane/agentlink';
|
|
4
|
+
|
|
5
|
+
const display = value => stripVTControlCharacters(String(value ?? '')).replace(/[\x00-\x08\x0b-\x1f\x7f-\x9f]/g, '');
|
|
6
|
+
const label = value => display(value).replace(/[\r\n\t]/g, ' ');
|
|
7
|
+
|
|
8
|
+
const [profile, ...words] = process.argv.slice(2);
|
|
9
|
+
if (!profile || !words.length) {
|
|
10
|
+
console.error('Usage: node /path/to/agentlink/examples/connect.mjs <profile> "Your task"');
|
|
11
|
+
process.exitCode = 2;
|
|
12
|
+
} else {
|
|
13
|
+
const terminal = createInterface({ input: process.stdin, output: process.stdout });
|
|
14
|
+
let agent;
|
|
15
|
+
try {
|
|
16
|
+
agent = await agentlink.connect(profile, {
|
|
17
|
+
cwd: process.cwd(),
|
|
18
|
+
onUpdate(update) {
|
|
19
|
+
if (update.sessionUpdate === 'agent_message_chunk' && update.content?.type === 'text') process.stdout.write(display(update.content.text));
|
|
20
|
+
},
|
|
21
|
+
async onPermission(request, { signal }) {
|
|
22
|
+
console.log(`\n${label(request.toolCall?.title || 'Agent permission request')}`);
|
|
23
|
+
request.options.forEach((option, index) => console.log(`${index + 1}. ${label(option.name)} (${label(option.kind)})`));
|
|
24
|
+
try {
|
|
25
|
+
const answer = await terminal.question('Choose a number, or Enter to cancel: ', { signal });
|
|
26
|
+
const index = Number(answer) - 1;
|
|
27
|
+
return Number.isInteger(index) && index >= 0 ? request.options[index]?.optionId ?? null : null;
|
|
28
|
+
} catch { return null; }
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
await agent.prompt(words.join(' '), { timeoutMs: 120000 });
|
|
32
|
+
process.stdout.write('\n');
|
|
33
|
+
} catch (cause) {
|
|
34
|
+
console.error(`${cause.code || 'ERROR'}: ${label(cause.message)}`);
|
|
35
|
+
process.exitCode = 1;
|
|
36
|
+
} finally {
|
|
37
|
+
terminal.close();
|
|
38
|
+
await agent?.close();
|
|
39
|
+
}
|
|
40
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prplkane/agentlink",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "0.3.0-beta.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Lightweight standard ACP gateway with centrally managed bridges and local discovery",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./src/index.mjs",
|
|
8
|
+
"./client": "./src/client.mjs"
|
|
9
|
+
},
|
|
10
|
+
"bin": {
|
|
11
|
+
"agentlink": "./src/cli.mjs"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"src/",
|
|
15
|
+
"README.md",
|
|
16
|
+
"examples/",
|
|
17
|
+
"docs/laptop-testing.md",
|
|
18
|
+
"docs/architecture.md",
|
|
19
|
+
"docs/acp-qualification.md",
|
|
20
|
+
"NOTICE",
|
|
21
|
+
"docs/licenses/roundtable-MIT.txt"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"test": "node --test test/*.test.mjs",
|
|
25
|
+
"check:repo": "node scripts/check-repository.mjs"
|
|
26
|
+
},
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=22"
|
|
29
|
+
},
|
|
30
|
+
"license": "Apache-2.0",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/prplkane/agentlink.git"
|
|
34
|
+
},
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/prplkane/agentlink/issues"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://github.com/prplkane/agentlink#readme",
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public",
|
|
41
|
+
"tag": "beta"
|
|
42
|
+
}
|
|
43
|
+
}
|