Dsh Subagent Code Agents banner
gyyxs88 gyyxs88

Dsh Subagent Code Agents

Development community

Description

Multi-channel coding-agent subagents for DeepSeek Harness: Codex, Claude Code, Grok Build and configurable ACP agents, with strict roles and durable runs.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

dsh-subagent-code-agents

DeepSeek Harness(DSH)`0.1.0-rc.6` 至 `0.1.1-rc.2` 的多渠道编码代理子代理插件:内置 OpenAI Codex、Anthropic Claude Code、Grok Build,并可配置任意数量的 Agent Client Protocol(ACP)实例。它同时提供严格角色、插件自有后台运行登记、持久终态自动回报和诚实的重启后续跑语义;旧 `dsh-subagent-codex` 可原样共存。

远程项目与运行时部署

本插件是渠道适配器,不负责把 Codex、Claude Code、Grok Build 安装或认证到远端主机;远程安装由 `dsh-remote-control` 的受信 Runtime Manager 按项目 Desired State 完成。每个 channel package 的 `package.json` 暴露稳定的 `dsh.remote.channelRuntime` 渠道需求声明;管理员受信 catalog 再解析为固定供应商版本、来源、大小、SHA-256、packageName 和 executablePath,形成独立的 RuntimeRequirement。启动时从正式注入的 Runtime Manager(生产使用 `runtimeManagerSocket` + 0600 Host capability token 文件)获取已校验的绝对 executable,缺失、未认证、漂移、receipt 未绑定或不兼容均结构化拒绝,不回退到 PATH。第三方登录态只留远端,不读取或复制 `~/.codex`、`~/.claude`、`~/.grok`、Cookie、OAuth token 或 API key。完整组件边界、权限继承、安装流程和验收标准见 [`dsh-session-control` 的远程项目架构文档](https://github.com/gyyxs88/dsh-session-control/blob/main/docs/remote-project-architecture.md)。

`dsh.remote.channelRuntime` 只声明稳定 runtime id、driver、placement、协议、能力和 DSH/API 兼容范围,不冒充供应商版本。管理员 catalog 的 `dsh.runtime` 才是可安装包身份;Desired State builder 从已选 channelRuntime 自动推导 exact RuntimeRequirement,不要求调用方重复拼写。Remote Host 的 runtime socket 通过 Host-scoped capability token 文件认证,token 文件必须是 owner-only 的普通文件;channel 请求另带真实 target Session,daemon 用已完成安装 receipt 和项目归属核验后返回同一个绝对 executable。socket 断开、daemon 重启、receipt 漂移或认证 lease 过期均 fail closed。

packages/
  core/                    渠道适配器接口 + 注册表 + 统一结果 + Runtime 注入(无 DSH 依赖)
  channel-codex/           Codex 渠道(exec/resume + app-server,会按 policy 映射权限)
  channel-claude-code/     Claude Agent SDK 渠道(会话读取/托管/取消,按 policy 映射 SDK 权限)
  channel-grok-build/      Grok Build 渠道(headless + ACP 托管,会按 capability 映射权限)
  channel-acp/             通用 ACP v1 客户端(可配置多个 acp/ 实例)
  plugin/                  公开包 dsh-subagent-code-agents:cordis.patch.yml + 宿主组合 + 工具

架构

  • core 定义 CodingAgentChannel 小接口(run / resume / listSessions / readSession / startManagedSession / steerActive / cancel / dispose)与能力