Skip to content

huahai0202/dsh-better-archive

52Last commit Aug 15, 2026

dsh-better-archive DSH plugin

DSH Better Archive adds an 'Archived' entry in the DSH sidebar settings area. You can browse, search, filter by project, restore archived sessions, or permanently delete them individually or in bulk. The page respects DSH's language setting and switches between Chinese and English without refresh.

How to install the dsh-better-archive DSH plugin

dsh plugin --profile web add github:huahai0202/dsh-better-archive

Copying does not run this command. Review the repository and version before installing the dsh-better-archive DSH plugin.

dsh-better-archive DSH plugin data source

dsh-better-archive DSH plugin snapshot date: Aug 16, 2026

discovered

What the dsh-better-archive DSH plugin can do

  • View archived sessions grouped by project, with keyword search, project filter, and sorting by updated time or name.
  • One-click unarchive: restored sessions immediately appear in the normal session list.
  • Delete individual sessions, all archived sessions of a project, or clear all archived sessions with confirmation.
  • Page text follows DSH's language setting (Chinese/English) without page refresh.

Where the dsh-better-archive DSH plugin fits

  • Recovering a session that was accidentally archived.
  • Cleaning up old archived sessions to free up storage space.
  • Organizing archived sessions by project for easier management.

Who the dsh-better-archive DSH plugin is for

  • DSH Web GUI users who frequently archive and manage sessions.
  • Users who need to bulk-delete archived sessions from specific projects.

dsh-better-archive DSH plugin limitations

  • Requires Node.js 22.19+ and pnpm for installation.
  • Targets DSH 0.1.0-rc.6's default JSONL session storage; content-addressed attachments are not deleted with session records.

dsh-better-archive DSH plugin: from the repository README

Quoted from the huahai0202/dsh-better-archive README, the upstream source of the dsh-better-archive DSH plugin. Copyright remains with the original authors.

> 为 [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/deepseek-harness) Web GUI 提供完整、可管理的已归档会话视图。 `dsh-better-archive` 会在 DSH 侧边栏的设置区域新增「已归档」入口。你可以查找和筛选归档会话、恢复会话,或按需永久删除不再需要的归档记录。 ## 界面 | 深色模式 | 浅色模式 | | :---: | :---: | | <img src="./assets/screenshot-dark.png" alt="深色模式下的已归档会话页面" width="420" /> | <img src="./assets/screenshot-light.png" alt="浅色模式下的已归档会话页面" width="420" /> | ## 功能 - 在 DSH 设置区提供独立的「已归档」页面。 - 按项目查看归档会话;支持关键词搜索、项目筛选,以及按更新时间或名称排序。 - 一键取消归档。恢复后会话会立即回到 DSH 的正常会话列表。 - 支持删除单个会话、某个项目下的全部归档会话,或清空全部归档会话。 - 页面文案跟随 DSH 的语言设置,中英文切换无需刷新页面。 ## 安装 需要 Node.js 22.19+ 和 pnpm。 ```sh dsh plugin --profile web add github:huahai0202/dsh-better-archive ``` 安装完成后重启 `dsh web`。插件会自动加入该 profile 的 `dsh.profile.bundles`;若未自动加入,请在该数组中添加 `"dsh-better-archive"`,然后重启 DSH Web。 ## 本地开发 ```sh dsh plugin --profile web add <path-to-this-checkout> ``` 本地修改后重启 `dsh web`,以加载最新的插件代码。 提交前可运行以下检查: ```sh node --check lib/index.js node --check lib/client.js npm pack --dry-run ``` ## 删除行为 永久删除只作用于已归档会话,操作前会要求确认。针对 DSH `0.1.0-rc.6` 的默认 JSONL 会话存储,插件会删除会话专属目录,并同步移除对应的工作区与归档记账。 DSH 的内容寻址附件由 DSH 独立管理,因此不会随会话记录一起删除。 ## 开发接口 | 路由 | 方法 | 用途 | | --- | --- | --- | | `/archived/unarchive` | `POST` |

Read the full READMERepository license: MIT

dsh-better-archive DSH plugin questions

How do I install DSH Better Archive?

Run `dsh plugin --profile web add github:huahai0202/dsh-better-archive` in your terminal. Make sure you have Node.js 22.19+ and pnpm installed. After installation, restart `dsh web` to load the plugin. If the plugin is not automatically added to your profile's bundles, manually add `"dsh-better-archive"` to the `dsh.profile.bundles` array in your profile configuration.

How do I restore an archived session?

Go to the 'Archived' page in the DSH sidebar settings area. Find the session you want to restore, then click the unarchive button (or use the action). The session will immediately appear back in your normal session list. This operation is reversible but not explicitly undoable, so be sure before archiving.

Can I delete archived sessions permanently?

Yes, you can delete individual sessions, all sessions of a project, or clear all archived sessions. The delete action requires confirmation. It only affects the archived sessions; the content-addressed attachments managed by DSH are not deleted. This is safe for cleaning up storage without losing attachments.

Does the plugin support Chinese language?

Yes, the plugin's page text follows DSH's language setting. It supports Chinese and English out of the box. When you switch the language in DSH, the archived page will update without needing a page refresh. This is handled automatically by the plugin.

What DSH version is required?

The plugin is designed for DSH 0.1.0-rc.6 and uses the default JSONL session storage. It may not work with other storage backends or future DSH versions without updates. Check the plugin's repository for compatibility notes before upgrading DSH.