deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
以工具形式实现 LLM-DCP(arXiv:2504.11004): 把 prompt/上下文压缩建模为 MDP,用 LLM 充当 DCP-Agent 多步迭代压缩,保留关键信息。
历史说明:早期版本曾包含 DCP (SOSP'25, arXiv:2510.10620) 的 dcp_plan / dcp_benchmark 工具, 现已移除;本插件当前只提供 dcp_compress(相关研究资料见 _research\dcp-official\)。
# 0) 先在插件目录安装依赖(必须):profile 通过 link: 引用插件,Node ESM 会
# realpath 到本目录解析 @deepseek-ai/* 导入;没有本地 node_modules 会报
# ERR_MODULE_NOT_FOUND: Cannot find package '@deepseek-ai/dsh-tools'
npm install
# 1) 安装到 web profile(profile 是 pnpm workspace 根,需 -w 标志)
dsh plugin --profile web add -w <path/to/dcp-plugin>
# 2) 在 ~\.dsh\profiles\web\cordis.patch.yml 追加:
# - insert:
# - id: dsh-dcp
# name: 'dsh-dcp'
新装依赖后需重启 web 服务;改 patch 会热重载。
node --test test\compress-tests.mjs # LLM-DCP 压缩核心(mock LLM)
论文把 prompt 压缩建模为 MDP(状态=压缩中 prompt;动作=逐 token 保留/删除;奖励=压缩率+关键信息保留−输出分布差异−越界惩罚), DCP-Agent 是逐 token 二分类策略网络(xlm-roberta-large + PPO + HPC 课程训练)。 本插件在 dsh 中的等价实现(LLM-as-DCP-Agent):
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。