Skip to content
This repository was archived by the owner on Nov 18, 2026. It is now read-only.

feat: unified ACP subagent delegation for GLM, ZCode and DSH - #117

Merged
BakerSean168 merged 1 commit into
mainfrom
feat/external-acp-agent-delegation-20261013
Oct 13, 2026
Merged

BakerSean168 merged 1 commit into
mainfrom
feat/external-acp-agent-delegation-20261013

Conversation

@BakerSean168

Copy link
Copy Markdown
Owner

Summary

  • Register GLM Agent, ZCode and DSH as native pi-subagents external-cli delegates without duplicating missions, worktrees, provider routing or transcript state.
  • Split GLM / ZCode into ACP read-only analysis and explicitly writable roles. DSH is writer-only because its current ACP server advertises no enforceable read-only mode.
  • Add a bounded stdio ACP bridge (initialize → new session → mode selection → prompt → final text), fail-closed empty-response handling, safe permission responses, timeouts and process cleanup.
  • Keep each external agent's own model, credentials and provider. No T3 ProviderInstance routing, implicit failover or LiteLLM dependency is added.

Validation

  • npm run check: 52/52 passing.
  • npm pack --dry-run: ACP bridge and instructions included.
  • Real isolated GLM read + file writer smoke: pass.
  • Real isolated ZCode read + file writer smoke: pass.
  • DSH ACP initialize / session/new: pass; real inference fails with ACP -32603 (the existing deepseek-official model lacks a usable key; tested account fallback also not healthy). See docs for the runtime blocker.
  • Pi RPC isolated profile with the installed pi-subagents 0.77.0 and this extension: startup and subagent commands available.

Rollout and limitations

  • Update the GCP manual and subagents Pi package references after merge.
  • Use only within explicitly owned isolated worktrees; no concurrent writers in a shared checkout.
  • External CLI child calls must run async. ACP reader permission mode is not an OS sandbox.

@BakerSean168
BakerSean168 merged commit d0fc635 into main Oct 13, 2026
1 check passed
@BakerSean168
BakerSean168 deleted the feat/external-acp-agent-delegation-20261013 branch October 13, 2026 12:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant