deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
AgentShell 嵌入 DSH 的桥插件(Path B:请求接管)。git 分发,官方 dsh plugin 安装,预设挂载用裸包名。
在 agsh 预设下,DSH 负责调度与 API 调用,AgentShell 持续终端是凭证/节点/history 的唯一权威:
shell — 指向持续终端(tmux PTY + agent.zsh headless);执行走注入协议,工具结果由终端 precmd 尾调写入节点 history,插件轮询 history 取结果(History 即同步通道)。agsh context build --cred <id> 上下文 + 一次全新 one-shot 调用;回合模型:回合结束无需 drop,凭证跨轮保留,执行 drop 则本节点段立即结束。非 agsh 会话零侵入(全部钩子带预设/目录门禁)。
@deepseek-ai/cordis ^4.0.1、@deepseek-ai/dsh-llm ^0.1.0-rc.6。第 2 步 bun install 把它们装进 checkout 的 node_modules;dsh plugin add <目录> 是 link: 语义(profile 里的 dsh-agsh-context 是指向 checkout 的符号链接),ESM 加载器按链接真实路径解析,所以裸名 import 时依赖从 checkout 的 node_modules 命中$DSH_HOME/profiles/node_modules,是 --preserve-symlinks 路径下的第二解析锚点agent.zsh + src/ + dist/cli.js)通过 AGSH_ROOT 定位(或工作目录下的 agent-shell/dist/cli.js)——从未装过先按 INSTALL.md 第 0-2 节从零安装(写 ~/.zshrc 与重启 DSH 两步需用户确认);AgentShell 框架独立发布,不随本包分发机器上还没有 AgentShell 运行件或 bun/jq/tmux?先按 INSTALL.md 第 0-2 节准备(关键步骤需用户确认),再从下表「取代码」开始。
| 步骤 | 命令 | 落地 |
|---|---|---|
| 取代码 | git clone https://github.com/Eric-GoodBoy-Tech/dsh-agsh-context /path/to/dsh-agsh-context(稳定路径,装后保留) |
源码 + preset/ + dist/ |
| 装依赖并构建 | cd /path/to/dsh-agsh-context && bun install && bun run build |
dist/index.js(node 目标) |
| 官方安装进 profile | dsh plugin --profile web add /path/to/dsh-agsh-context |
profile 目录内裸名 dsh-agsh-context 可解析 |
| 注册预设 | mkdir -p ~/.dsh/.agent-presets/agsh && cp preset/preset.yml preset/agent.cordis.yml ~/.dsh/.agent-presets/agsh/ |
挂载行已是裸包名 |
| 验证 | 在 profile 目录:node --input-type=module -e "import('dsh-agsh-context').then(m=>console.log(m.name,typeof m.isAgentShellSession,typeof m.inject,typeof m.apply))" |
agsh-context function object function |
| 回退 | 预设挂载行改回绝对路径,dsh plugin --profile web remove dsh-agsh-context |
恢复开发态挂载 |
不想手动装?把 INSTALL.md 里的「给安装/排障 Agent 的提示词模板」整段复制给你的 DSH Agent,让它替你完成上表全部步骤。
链接安装注意:
dsh plugin add <目录>安装为符号链接(link:),profile 的node_modules/dsh-agsh-context指向 checkout 目录本身——安装后不要移动或删除 checkout,否则插件立即失效(恢复目录或重新bun install后重跑dsh plugin --profile <name> add <目录>即可修复)。
开发态(本地源码路径):
- id: agsh-context
name: '/path/to/dsh-agsh-context/src/index.ts'
发布后(裸包名,dsh plugin add 安装):
- id: agsh-context
name: 'dsh-agsh-context'
bun install # 装依赖
bun run build # node 目标构建 dist/index.js(external @deepseek-ai/*)
发布入口 main/exports 指向 dist/index.js。git 分发,无 npm 发布步骤。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。