Skills Plugins MCP Prompt Model 导航 博客 资讯 我的中心
界面增强 #deepseek-harness#dsh#dsh-plugin

dsh-web-default-session

点「新会话」默认打开绑定宿主启动目录的「默认目录」工作区(无需选文件夹),工作区选择菜单中也可选该项。

wjy9902 @wjy9902 ⬇ 1 ★ 3 main

安装

dsh plugin --profile web add github:wjy9902/dsh-web-default-session
下载安装清单

需要可复现安装时,可在仓库后追加 #commit 固定提交。

点「新会话」默认打开绑定宿主启动目录的「默认目录」工作区(无需选文件夹),工作区选择菜单中也可选该项。

该插件未提供要点说明,请参考仓库 README。

deepseek-harnessdshdsh-plugin
  1. 安装并启动 DeepSeek Harness:npx @deepseek-ai/dsh web
  2. 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
  3. 用 dsh plugins list 确认已安装,必要时重启 Harness 生效

插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。

代码仓库github.com/wjy9902/dsh-web-default-session
许可证未标注(见仓库)
主要语言main
下载量1
GitHub 星标3
最近推送2026-08-14
收录日期2026-09-19
分类界面增强

事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。

以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。

# dsh-web-default-session

[English](#english) | 简体中文

面向 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) Web 界面的客户端插件:把「必须选一个文件夹才能开始对话」的限制去掉。

- **点「新会话」默认无文件夹**:侧栏的「新会话」按钮会打开一个绑定在宿主默认目录(`dsh web` 的启动目录,即 `host.describe` 返回的 `cwd`)上的会话,不再落到「当前/最近工作区」,也无需选文件夹;
- **选文件夹时也有「无文件夹」选项**:插件会在默认目录上维护一个名为 **「默认目录」** 的工作区,它出现在顶部文件夹 chip 的菜单和侧栏工作区列表里,点它就是“无文件夹”;
- **零工作区启动**:没有任何工作区时,插件自动创建「默认目录」并打开,输入框直接可用;
- **升级安全**:只改用户 profile(`~/.dsh`),不动 dsh 安装本体,dsh 升级不会覆盖;
- 工作区上右键等**显式指定工作区**的入口保持原行为。

## 安装

```bash
dsh plugin --profile web add dsh-web-default-session
```

包声明了 `dsh.bundle`,`dsh plugin add` 会自动把它激活为 profile layer,无需手工改 patch。然后重启 `dsh web`(或依赖 HMR),刷新页面即可。

其它等价装法:

```bash
# 从 GitHub 装(发布后可用)
dsh plugin --profile web add github:<你的用户名>/dsh-web-default-session

# 或手动:先 pnpm add,再在 ~/.dsh/profiles/web/cordis.patch.yml 注册宿主行
dsh plugin --profile web add dsh-web-default-session
```

手动注册方式(一般不需要,bundle 会自动生效):

```yaml
- insert:
    - id: web-default-session
      name: 'dsh-web-default-session'
```

## 行为细节

- 默认目录 = `dsh web` 进程的启动目录(在 `/Users/user` 启动就是 `/Users/user`);
- 「默认目录」工作区首次加载页面时自动创建,标题从目录名重命名为「默认目录」(只在标题还是目录名时改名,不覆盖你的手动重命名);
- 会话期间手动删除「默认目录」不会被立刻复活;刷新页面后会重新出现;
- 已在「默认目录」的空白会话里再点「新会话」时,会新建一个全新空白会话,保证点击有可见反馈。

## 定制

- 想改菜单里显示的名字:编辑 `lib/client.js` 顶部的 `DEFAULT_TITLE`;
- 想改默认目录:把 `resolveCwd()` 换成你自己的逻辑(例如固定 `"/path/to/dir"`)。

## 卸载

```bash
dsh plugin --profile web remove dsh-web-default-session
```

并删除 `cordis.patch.yml` 里的 `web-default-session` 行。

---

## English

A client plugin for the DeepSeek Harness Web UI that lifts the "pick a folder before chatting" gate.

- **New Session defaults to no folder**: the generic New Session button opens a session rooted at the Host's default working directory (the directory `dsh web` was launched from, i.e. the `cwd` from `host.describe`) instead of the current/recent workspace — no folder picking required;
- **A "no folder" choice in the workspace picker**: the plugin maintains a workspace named **默认目录** ("Default directory") at the default directory; it appears in the hero workspace-picker menu and the sidebar, and picking it is the no-folder choice;
- **Zero-workspace boot**: with no Workspace at all, the plugin creates the default workspace and opens it, so the composer is usable immediately;
- **Upgrade-safe**: only the user profile (`~/.dsh`) is touched — dsh upgrades do not overwrite it;
- Workspace-scoped actions (e.g. "new session in this workspace") keep their built-in behaviour.

### Install

```bash
dsh plugin --profile web add dsh-web-default-session
```

The package declares `dsh.bundle`, so `dsh plugin add` activates it as a profile layer automatically — no manual patch edits. Restart `dsh web` (or rely on HMR) and refresh the page.

Equivalent options:

```bash
# From GitHub (once published)
dsh plugin --profile web add github:/dsh-web-default-session
```

Manual registration (normally unnecessary — the bundle takes effect on its own):

```yaml
- insert:
    - id: web-default-session
      name: 'dsh-web-default-session'
```

### Customisation

- Menu title: edit `DEFAULT_TITLE` at the top of `lib/client.js`.
- Default directory: replace `resolveCwd()` with your own logic.

### Uninstall

```bash
dsh plugin --profile web remove dsh-web-default-session
```

and remove the `web-default-session` row from `cordis.patch.yml`.

## License

MIT

数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。