deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:qwe225380/dsh-omni-router
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Omni Router 是一个 DeepSeek Harness Agent 预设,它不是一个“单一功能插件”,而是一层智能编排层:把复杂度路由、思维模式路由、任务类型识别、Plan Mode、项目上下文、TDD、交付门、Git 工作流等能力组合成一个统一的、自动运行的工程闭环。
单独使用 dsh-routing-suite、dsh-trio、dsh-doublecheck、superpowers-dsh 时,你需要:
使用 Omni Router 后,这些判断和编排会自动发生:
任务进来
│
├─ 复杂度路由:plan / direct
├─ 思维模式路由:spec / react / balanced
├─ 任务类型识别:bugfix / feature / refactor / test / review
│
├─ 复杂任务
│ ├─ 自动进入 Plan Mode
│ ├─ 自动收集项目上下文
│ ├─ 生成代码化方案
│ ├─ 注入 TDD / 交付门 / Git 工作流 / 验收清单提示
│ ├─ 等你确认
│ └─ 执行 + 验证
│
└─ 简单任务
└─ 直接执行 + 轻量验证
direct / balanced / plan 三态路由,简单任务直接做,复杂/模糊任务先方案。spec(方案优先)/ react(直接执行)/ balanced(自动)。bugfix / feature / refactor / test / review / other。omni_reroute / /omni reroute 在 direct ↔ plan 间动态切换。test-driven-development / red-green-tdd,不重复实现 TDD。verification-before-completion / delivery-proof,不重复实现质量门。using-git-worktrees / git-discipline。executing-plans / writing-plans。verification-loop / verification-before-completion。buildPolicyDecision 统一输出完整决策对象(taskType/complexity/risk/executionMode/approval/verification/gitPolicy)。buildIntent 提取 desired outcome / constraints / acceptance criteria。buildContextBudget 按复杂度/风险分配上下文预算。decideNextAction 作为 Agent Runtime 核心 API,根据状态返回下一步行动。buildRepositorySnapshot 识别包管理器、测试框架、框架、入口点。workflowPolicy 状态机代替大量重复 prompt。selectAgentForTask 推荐 frontend/backend/db/browser/security/review agent。omni_delegate 可运行 builder → qa-verifier → (repair → qa-verifier)* → code-reviewer,独立验证 + 冷读对抗审查 + 证据交接。skill 工具),避免重复实现已有能力。methodologyDirectives: false 可关闭)。benchmark/run.mjs(399 个任务),可评估 accuracy / false-direct rate。benchmark/analyze.mjs 输出混淆矩阵和最高频误判词。benchmark/llm-eval.mjs 可对比 Heuristic vs LLM 路由效果。/omni 命令 + omni_* 工具。| 插件 | 提供能力 | Omni Router 如何用 |
|---|---|---|
| dsh-trio | 浏览器自动化、MCP、GitHub/GitLab | 需要浏览器/PR/远程操作时自动可用 |
| dsh-doublecheck | 交付质量门、验证、返工检测 | 复杂编码任务完成前提示走质量门 |
| superpowers-dsh | TDD、调试、规划、协作技能 | 编码任务自动提示加载对应技能 |
这些不是强制依赖。装了 → 完整能力;没装 → Omni Router 核心功能依然可用。
dsh plugin --profile web add dsh-omni-router
This installs the bundle and automatically copies the Omni Router preset into ~/.dsh/.agent-presets/omni-router on first load. Restart DSH, then select Omni Router.
npm i dsh-omni-router
cd node_modules/dsh-omni-router
node scripts/install-preset.mjs
# Linux / macOS
./install.sh
# Windows PowerShell
./install.ps1
# Cross-platform
node scripts/install-preset.mjs
Then restart DSH and select Omni Router in a new session.
/omni status — show current routing state./omni plan — enter plan-first mode./omni direct — enter direct mode./omni mode spec|react|balanced — set thinking mode./omni reroute plan|direct — adaptively reroute current task.omni_status, omni_plan, omni_direct, omni_mode, omni_reroute.- id: omni-router
name: ./src/omni-router.mjs
config:
requireConfirmation: true
useLLMClassification: false
# planFirstKeywords: [自定义, 关键词]
# directKeywords: [直接跑, 马上改]
See docs/CONFIGURATION.md for details.
omni-router/
├── agent.cordis.yml
├── preset.yml
├── src/omni-router.mjs
├── test/omni-router.test.mjs
├── benchmark/run.mjs
├── scripts/install-preset.mjs
├── docs/ (INSTALL/CONFIGURATION/ARCHITECTURE/COMPATIBILITY/EXAMPLES/ROADMAP)
├── .github/workflows/ci.yml
├── README.md
├── README.zh-CN.md
└── LICENSE
npm test
npm run benchmark
Reports router accuracy and the critical false-direct / false-plan rates on benchmark/tasks.json.
Current baseline (399 tasks):
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。