rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ZoeHao2026/dsh-temporary-project
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
为 DeepSeek Harness(DSH)Web GUI 的「新建会话」增加 「临时对话」 选项。点击后自动创建独立临时项目目录、注册 Workspace,并直接进入空白 Agent 会话,可立即开始对话或代码开发任务。
DSH 默认的新建会话流程要求用户先选择项目目录;试写代码、一次性脚本、隔离实验等临时任务往往不想污染已有项目,也不值得手工建目录。「临时对话」把这一步变成一次点击。
ui-workspace 服务)。git clone https://github.com/ZoeHao2026/dsh-temporary-project.git
然后把仓库目录作为本地 bundle 安装到 DSH profile:
plugin_manager 的 install_bundle,target 指向本仓库目录;或纯 JavaScript,无需构建步骤。安装后如果按钮没有立即出现,刷新页面一次即可。
临时项目 · <本地时间> Workspace,并打开其中的空白会话;发送第一条消息即可开始任务。临时项目保存在用户 harness home 下,而不是系统临时目录,避免系统清理导致长会话丢失工作目录:
$DSH_HOME/temporary-projects/project-XXXXXX # DSH_HOME 未设置时默认为 ~/.dsh
在侧栏删除该 Workspace 只会移除注册(DSH workspace registry 的既有语义:删除项目不会删除文件)。目录需要在文件管理器中手动清理。插件不会自动删除历史临时项目。
route.js):在 Connection 共享的 /api handler 上注册精确 Fetch 路由 /api/temporary-project,使用 Connection RPC 信封通信。路由经 Host/Origin 校验与浏览器 Cookie 认证,且仅 owner Peer 可调用;随后 mkdir + mkdtemp 创建目录,并通过 ctx.workspaceRegistry.create() 注册 Workspace。取消时回滚已创建的目录与注册。client.js):向 conversation.hero.options 槽位注册按钮,向 shell.overlay 注册错误提示;通过 ctx.connection.rpc.call('/api', 'temporary-project', { title }) 调用 Host,等待 Workspace 投影出现后调用 ctx.uiWorkspace.openWorkspace() 创建并打开会话。cordis.patch.yml):插入 Host 行;客户端半由 package.json 的 dsh.client 声明并通过 client module table 加载。mkdtemp 随机生成。无需 npm install:
npm run check # 语法检查 + 清单校验 + Host 路由单元测试
npm run validate # 只校验 bundle 清单/图标/语言资源
npm test # 只跑 Host 路由单元测试
CI 见 .github/workflows/verify.yml,同时检查 npm pack 是否包含全部运行时文件。
测试覆盖 Connection RPC 信封往返、失败分支仍返回 HTTP 200、错误详情可序列化、标题规范化与上限、目录/Workspace 创建失败清理、取消时回滚等。
application: applied,无 warning),Host 行处于 active。conversation.hero.options 与 shell.overlay 中的客户端注册均为 active。完整点击流程与最终视觉效果需在目标 DSH 桌面上人工确认(本仓库不做浏览器自动化)。
MIT © 2026 ZoeHao2026
Adds a Temporary conversation option to the New Session row of the DeepSeek Harness (DSH) Web GUI. One click creates a dedicated temporary project directory, registers it as a Workspace, and opens a blank Agent session, so a task can start without choosing a project folder.
DSH's default New Session flow asks for a project directory first. For throwaway scripts, isolated experiments, or quick code trials, that is friction and can pollute an existing project. Temporary conversation turns it into a single click.
ui-workspace services.git clone https://github.com/ZoeHao2026/dsh-temporary-project.git
Install the repository directory as a local bundle in your DSH profile:
plugin_manager with install_bundle and this repository as target; orThe plugin is plain JavaScript and needs no build step. Reload the page once if the chip does not appear immediately.
Temporary project · <local time> Workspace and opens a blank session in it. Send the first message to start.Temporary projects live under the user's harness home, not the OS temp directory, so a long-running session does not lose its working directory to system cleanup:
$DSH_HOME/temporary-projects/project-XXXXXX # defaults to ~/.dsh when DSH_HOME is unset
Deleting the Workspace from the sidebar removes the registration only, matching the DSH workspace registry's rule that deleting a project never deletes files. Remove the directory with your file manager when its contents are no longer needed. The plugin does not automatically delete old temporary projects.
route.js): registers the exact Fetch route /api/temporary-project on Connection's shared /api handler and speaks the Connection RPC envelope. The handler enforces the Host/Origin fence and browser authentication, dispatches only owner Peers, creates a directory with mkdir + mkdtemp, and registers it through ctx.workspaceRegistry.create(). Cancellation rolls back the directory and registration.client.js): registers the chip in conversation.hero.options and the error notice in shell.overlay; calls the Host through ctx.connection.rpc.call('/api', 'temporary-project', { title }), waits for the Workspace projection, then calls ctx.uiWorkspace.openWorkspace().cordis.patch.yml): inserts the Host row; package.json's dsh.client section declares the browser half, served through the client module table.mkdtemp generates the project name.No npm install required:
npm run check # syntax + manifest + Host route unit tests
npm run validate # bundle manifest/icon/locale only
npm test # Host route unit tests only
CI is in .github/workflows/verify.yml; it also checks that npm pack contains every runtime file.
application: applied and no warnings; the Host row is active.conversation.hero.options and shell.overlay are active.The full click-through and final visual appearance still need a manual check in the target DSH desktop; this repository does not automate browser clicks.
MIT © 2026 ZoeHao2026
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。