dshbase

插件目录 / Developer / dsh-codex-reasoning-router

dsh-codex-reasoning-router

未验证 chenmzh

✓ 持续维护 基于 8 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
语言
2026-08-23最近推送
跨平台平台

功能简介

DeepSeek Harness preset: Luna executes, tool-less Sol advises

我们的评价
未验证 — 尚未实测

DeepSeek Harness preset: Luna executes, tool-less Sol advises 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

dsh-codex-reasoning-router

简体中文 | English | AI / LLM context

A composable multi-model Agent Team plugin for DeepSeek Harness (DSH). Version 0.2 no longer requires a dedicated preset: it layers onto Standard, Code, or a user-defined preset.

Default roles:

  • brain: tool-less deep reasoning, using openai-codex/gpt-5.6-sol at max.
  • coordinator: tool-less decomposition and integration advice, using Sol at high.
  • worker: a real tool-capable DSH subagent, using gpt-5.6-luna at max, with absolute maxDepth: 2.
  • agent_team_catalog: reads the current user's registered providers, models, and model-specific reasoning efforts.
  • agent_team_run: runs any configured advisory or subagent role.

The legacy luna-sol-reasoning-router preset and durable sol_consult state machine remain available, but route locking is disabled by default.

Install

Install and authenticate the model provider first, then add this plugin:

pnpm dsh plugin --profile web add dsh-codex
pnpm dsh plugin --profile web add link:/absolute/path/to/dsh-codex-reasoning-router

Or install from GitHub:

pnpm dsh plugin --profile web add github:chenmzh/dsh-codex-reasoning-router

Restart DSH and create a new session. Since 0.2, no preset copy or preset switch is needed. Copy preset/luna-sol-reasoning-router only when enabling the legacy route-guard workflow.

Configuration

See cordis.patch.yml for the complete default:

teamEnabled: true
presetIds: []                 # empty = all presets
roles:
  - id: brain
    kind: advisory            # tool-less one-shot reasoning
    description: Deep reasoning
    provider: openai-codex
    model: gpt-5.6-sol
    reasoningEffort: max
    maxTokens: 3000

  - id: coordinator
    kind: advisory
    description: Coordinate work
    provider: openai-codex
    model: gpt-5.6-sol
    reasoningEffort: high

  - id: worker
    kind: subagent            # real DSH child inheriting the current preset
    description: Implement and verify
    provider: openai-codex
    model: gpt-5.6-luna
    reasoningEffort: max
    subagentProvider: spawn
    maxDepth: 2               # absolute: root=0, descendants=1,2,...
    toolDeny: [web_search]     # optional; toolAllow is also supported

Roles may be added, removed, or renamed. Role ids must begin with a lowercase letter and contain lowercase letters, digits, _, or -.

Field Meaning
kind advisory is tool-less; subagent starts a real delegated agent
provider / model Omit both to inherit the caller; explicit values must exist in the live user catalog
reasoningEffort Omit for model/provider default; explicit values must be offered by that exact model
systemPrompt Optional role persona
subagentProvider spawn, fork, or another provider registered by the host
maxDepth Absolute delegation-tree cap, not a relative remaining-depth count
toolAllow / toolDeny Native DSH child tool visibility filters for subagent roles

The plugin does not guess model capabilities. It reads ctx.llm.listProviders(), listModels(), and resolveModelInfo() at runtime. Invalid model/effort combinations fail before provider dispatch. agent_team_catalog exposes the same live directory to the agent.

Preset composition

With the default presetIds: [], select whichever preset you already want:

Standard preset + agent team
Code preset     + agent team
custom preset   + agent team

In-process children inherit their parent's preset composition, workspace, delegated policy, and tools. The role then applies its own route, effort, persona, optional tool filter, and depth cap.

To limit the plugin to selected presets:

presetIds: [standard, code, my-review-preset]

Legacy Luna + Sol router

Restore the 0.1 behavior with:

requiredPresetId: luna-sol-reasoning-router
lunaProvider: openai-codex
lunaModel: gpt-5.6-luna
solProvider: openai-codex
solModel: gpt-5.6-sol
initialSolReasoning: medium
escalatedSolReasoning: high
initialConsultEnabled: true
failOpen: true

Copy and select the shipped preset. The old mode still provides a tool-less Sol advisor, validates the Luna root route, limits one blocker to two successful consultations, and restores escalation from durable session events. The 0.2 default requiredPresetId: '' disables only the legacy guard, not Agent Team.

Safety and runtime boundaries

  • Advisory requests have no tools. A returned tool call is rejected and never dispatched.
  • Workers use the native DSH subagent runtime; the provider enforces maxDepth on every start.
  • Tool filters are composition visibility, not a new security sandbox. DSH sandbox and approval policy remain authoritative.
  • Explicit model and effort selections are validated exactly; there is no silent fallback or model rewrite.
  • Child reasoning effort is installed with agent-scoped installModelSelection before the child request.

Development

pnpm install --offline
pnpm run check
pnpm pack --dry-run

The test suite covers both the legacy router invariants and the new live catalog, effort validation, tool-less advisory, worker route/effort, tool filter, and absolute-depth behavior.

License

Apache-2.0. See LICENSE.

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-codex-reasoning-router」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:chenmzh/dsh-codex-reasoning-router

Headless(CLI)profile:

dsh plugin --profile headless add github:chenmzh/dsh-codex-reasoning-router

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-26
备注:验证: runtime-fail 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7789 个插件 →