rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:jipika/dsh-preset-hotswap
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
拥有:
/dsh-preset-hotswap路由(GET 模式名单 / POST 切换)与会话头部的模式下拉。 冲突时:与官方模式徽标共用 slotconversation.session.header.actions,靠 order 排布;轮次进行中一律拒切。 回滚:删 profilecordis.patch.yml里 idpreset-hotswap的 insert + 从dependencies移除 + 完全重启应用。
会话头部「对话模式」热切换:已经开始的会话也能切 标准 / PTC / 创造。
官方只允许在会话开始前选模式。本插件在会话头部的官方模式徽标旁加一个下拉, 让进行中的会话也能换模式。切换后的三个可预期后果:
/dsh-preset-hotswap 暴露名单(GET)与切换(POST)。
切换链路是 ctx.agents.get(sessionId) 拿活体 agent →
ctx.agentPresets.resolve() / recompose(agent.ctx, id) →
session.append("agent-preset/selected") 推进投影;
recompose 自身带 retain + bind(rebind),旧 generation 按引用保留。sessionProjections.stateOf(agent.session, "turnBoundary").openTurnStartSeq !== null),
与官方 select() 的 agent-preset/locked 锁处在同一层语义上。conversation.session.header.actions(官方模式徽标也在那里,靠 order 排布)。desktop profile(Electron 独占 CLI,只能手改):
package.json 的 dependencies 加 "dsh-preset-hotswap": "link:../../local-plugins/dsh-preset-hotswap";cordis.patch.yml 写 insert: {id: preset-hotswap, name: dsh-preset-hotswap};pnpm install 后完全重启应用(client bundle 在 host 启动时读入内存,刷新页面无效)。回滚:删掉 insert 块与依赖行,重启。
如果 dsh-preset-hotswap 对你的研究与测试有所帮助,欢迎请作者喝杯咖啡 ☕
给项目点个 Star ⭐ 同样是对开发者最大的鼓励!
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。