Repository navigation
Description
DEFT.visage wants to replace its direct @agentclientprotocol/sdk client with subspace (deftai/deftvisage#2469). We have a plan, but Visage cannot install subspace today. This issue lists what we need from subspace to start.
1. A published package (blocker)
Visage needs @deft-subspace/kernel, @deft-subspace/acp (the ./node entry) and @deft-subspace/acp-testkit (dev only). None of them are published:
npm view @deft-subspace/acpreturns 404, and there are no GitHub releases or publish workflow.- A git dependency does not work. npm cannot install a monorepo subdirectory from git,
workspace:*does not resolve outside pnpm,dist/is gitignored, and Node does not strip types insidenode_modules.
Please choose one:
- Public npm under
@deft-subspace(preferred). Visage's Docker and CI builds need no new credentials, because.npmrcroutes only@deftaito GitHub Packages. - GitHub Packages. The scope has to match the owner, so this means renaming the packages to
@deftai/*.
Either way, a tagged version (even a 0.x prerelease) lets us pin it and upgrade on purpose. The repo has had about 300 commits since 2026-10-01, so we expect the API to change.
2. A replace-env option for spawnProcess (requested)
packages/kernel/src/node.ts builds the child environment as { ...process.env, ...options.env }. Visage runs agents inside a server that holds secrets, so the child gets an allowlisted environment only. With the current merge, connectAgent / start() would leak the server's environment to the agent.
We would like an option that uses options.env as the whole child environment, for example envMode: 'replace' or inheritEnv: false. Until then, Visage keeps its own spawn and wraps its pipes in a kernel ndjson channel. That works, but it drops subspace's process-group kill.
3. Nice to have
- A Gemini CLI trace in the corpus, or a note on whether it has been run. Visage's main agent is Gemini, and we found no evidence that subspace has been tested against it.
- A short note on API stability for
AcpClient,Session,TurnandTurnEventwhile the package is0.0.0-experiment.
What Visage will do once 1 is done
Six PRs behind a setting ACP_CLIENT_IMPL=sdk|subspace (the default stays sdk until live Gemini and Grok checks pass on dev):
- Add the dependency.
- Switch the stdio transport.
- Move the session manager onto subspace.
- Add the testkit conformance tests.
- Make subspace the default.
- Remove the direct SDK dependency.
Protocol starts pinned to v1.
Checked against subspace main @ d95783a.
Activity