rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zxzc114514/dsh-startup-model
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
每次启动 DeepSeek Harness (DSH) 时,自动使用上次退出前选择的模型。
Starts every DSH run on the model you were using when you last quit, eliminating the need to manually re-select your preferred model on every restart.
在 DeepSeek Harness 中,新会话默认使用 profile 模板配置中定义的默认模型。用户在具体会话中切换模型后,退出重新打开或新建会话时往往需要重新点选。
dsh-startup-model 通过监听持久化会话事件,将最后一次用户主动选用的模型安全记录到本地状态文件中,并在下一次启动时平滑注入为默认模型:
origin: subagent 或 delegationDepth > 0),子代理在执行专项任务时临时切换的轻量模型不会误污染全局默认配置。reasoningEffort(如 high / medium / low)。在 DeepSeek Harness 插件管理器中搜索并安装 dsh-startup-model。
在 DSH profile 的 package.json 的 dependencies 与 dsh.profile.bundles 中引入本插件:
{
"dependencies": {
"dsh-startup-model": "https://github.com/zxzc114514/dsh-startup-model/releases/latest/download/dsh-startup-model.tgz"
},
"dsh": {
"profile": {
"bundles": [
"dsh-startup-model"
]
}
}
}
插件自带的 bundle patch 将自动挂载生效。
可在 profile 的 cordis.patch.yml 中为插件提供自定义配置(通常无需任何配置,开箱即用):
- id: startup-model
name: 'dsh-startup-model'
config:
enabled: true
trackSubagents: false
# stateFile: 'C:/custom/path/model-memory.state.json'
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
enabled |
boolean |
true |
是否启用启动模型记忆功能 |
trackSubagents |
boolean |
false |
是否跟踪子代理派生会话中的模型变更(默认关闭以保护主模型) |
stateFile |
string |
~/.dsh/model-memory.state.json |
状态持久化文件存放路径 |
model/selection 或 request/header 事件时,插件提取并规范化模型三元组(provider, model, reasoningEffort),经过 500ms 防抖后原子写入状态文件。ctx.inject(['agentDefaultModel']) 挂载,校验本地状态有效性与 Provider 可达性后,调用 agentDefaultModel.saveSelection() 恢复启动默认值。MIT License © 2026 ImportCoffee
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。