Skip to content

Publish kernel/acp/acp-testkit so DEFT.visage can adopt subspace #42

Open

Description

@abraderAI

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/acp returns 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 inside node_modules.

Please choose one:

  • Public npm under @deft-subspace (preferred). Visage's Docker and CI builds need no new credentials, because .npmrc routes only @deftai to 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, Turn and TurnEvent while the package is 0.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):

  1. Add the dependency.
  2. Switch the stdio transport.
  3. Move the session manager onto subspace.
  4. Add the testkit conformance tests.
  5. Make subspace the default.
  6. Remove the direct SDK dependency.

Protocol starts pinned to v1.

Checked against subspace main @ d95783a.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions