Wuxie233/dsh-plugin-session-rehome0

@wuxie/dsh-session-rehome

move_agent_to_root: rehome the current conversation to an existing project directory, with an ask/auto setting

包名
@wuxie/dsh-session-rehome
版本
0.2.0
许可证
MIT
最近更新
2026年8月22日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

dsh-plugin-session-rehome

Cursor 对等的对话改挂:模型工具 move_agent_to_root({ rootPath }) 把当前对话迁到已存在的项目目录。侧边栏分组和本回合后续 bash/fs/AGENTS.md 跟随新根。不 mkdir,不能改挂回 No Repo。

通用设置 → 移动工作区 可选询问或自动(默认询问)。

行为

模式当前家目标动作
询问No Repo唯一已注册匹配直接改挂
询问No Repo多个已注册匹配userQuestions 选择
询问No Repo已存在未注册目录直接改挂(Host 创建工作区)
询问真项目另一个目录先确认 Move / Stay
自动任意(非 No Repo 目标)模型给出的绝对路径直接改挂;多匹配不弹窗
任意任意$DSH_HOME/no-repo拒绝

需要 Host session.rehome(deepseek-harness 7e166f8 起)。

安装 / 更新

./install.sh
# 然后重启 dsh web(host 半插件需要重启生效)
# 浏览器半:刷新页面即可看到设置行

挂载行(写入 ~/.dsh/profiles/web/cordis.patch.yml):

- insert:
    - id: session-rehome
      name: '@wuxie/dsh-session-rehome'