vibeinging/dsh-desktop--packages-dsh-model-inheritance585

@vibeinging/dsh-model-inheritance

Portable parent-to-sub-Agent model inheritance for DSH Profiles

AI 分析

核心用途是简化子代理的模型配置流程。适合频繁使用多代理(Sub-Agent)协作、希望子任务自动延续主会话模型参数的用户。

パッケージ
@vibeinging/dsh-model-inheritance
バージョン
0.0.1
ライセンス
MIT
最終更新
2026/09/12

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:vibeinging/dsh-desktop#ba68de0b694688bac59c2fe360ddfe5a55cc3ee0&path:packages/dsh-model-inheritance

ドキュメント

README 全文を読む ↗

DSH Model Inheritance

This portable Profile Bundle keeps a DSH sub-Agent on the provider, model, token limit, and reasoning effort resolved for its parent Agent. It uses only the official Agent lifecycle and request waterfalls, so it can run in both the official Web Profile and DSH Desktop without Electron, ProductHost, preload, or app-owned state.

The Bundle records the parent target after normal DSH settings and request resolution. When DSH creates a Session with origin: subagent and parentSession, it resolves the parent through the official Agent registry, adds the inherited provider and model to system-prompt variables, and pins the same target onto the child request. A missing parent or a parent that has not completed request resolution leaves the child unchanged.

Every listener is Agent-scoped and is removed on agent/disposed or Bundle disposal. The Bundle does not copy credentials, change the parent request, create a second model catalog, or bypass provider validation. Its compatibility test installs the package through the official Profile command and boots it inside an unmodified official Web Profile.