leon-zym / dsh-fold-turns

已收录

Fold completed DeepSeek Harness chat turns without replacing native renderers.

main其他 查看源代码

安装

npx -y @deepseek-ai/dsh plugin --profile web add github:leon-zym/dsh-fold-turns

此安装命令根据 GitHub 仓库地址生成,是未经验证的安装起点。

README

维护者编写的文档快照。

在 GitHub 查看 ↗
提交版本 716f4e8同步于 2026年8月18日

dsh-fold-turns

English | 简体中文

dsh-fold-turns is a Web plugin for DeepSeek Harness that adds automatic fold/collapse behavior to completed Chat turns. It keeps the user message and final answer visible, while reasoning, context injection, and tool activity are reduced to a compact Worked for … row. Click the row to expand the original process whenever you need it.

  • Completed turns collapse automatically.
  • Running turns stay expanded and show live elapsed time.
  • The plugin leaves DSH's native content and local UI state intact when you expand or collapse a turn.
  • Incomplete or incompatible turns stay visible.

This is a Web-only plugin. It does not change the agent's output or conversation data.

Demo

Folded

The intermediate process is replaced by a compact duration row while the final answer remains visible.

A completed DeepSeek Harness turn folded into a compact duration row

Expanded

Click either duration row to restore the original context, reasoning, and tool activity.

Upper processLower process and final answer
The upper part of an expanded DeepSeek Harness turnThe lower part of an expanded DeepSeek Harness turn

Install

Install the published npm package into the DSH Web profile:

dsh plugin --profile web add dsh-fold-turns

Restart the Web process after installing or updating the plugin. DSH composes its client module list at startup.

To install a downloaded release tarball instead:

dsh plugin --profile web add ./dsh-fold-turns-0.1.4.tgz

Remove the plugin with:

dsh plugin --profile web remove dsh-fold-turns

Using the plugin

No configuration is required. Running turns stay expanded. Once an eligible turn completes, its intermediate process folds automatically and the row shows the exact duration.

Click either duration row to expand or collapse the turn. A turn without foldable process content gets no control.

The plugin is designed to fail open. Incomplete history, unknown Chat node kinds, abnormal completion, or an incompatible DOM should leave DSH's native content visible.

Compatibility

Experimental: the plugin relies on DeepSeek Harness browser and Chat DOM contracts that are not yet stable public APIs. Keep a rollback path and recheck real conversations after every DSH upgrade.

DSH hostStatus
0.1.0-rc.6Experimental, verified baseline
Other releasesUnsupported until revalidated

Development

Build from source

Node 22.19+ (or 24+) and pnpm are required:

corepack enable
pnpm install --frozen-lockfile
pnpm test
pnpm run test:browser
pnpm pack

The resulting dsh-fold-turns-<version>.tgz is directly installable with the tarball command above. pnpm pack runs the build through prepack, so a clean clone does not need checked-in lib/ output.

项目文件与信号

以下项目是目录快照中检测到的公开仓库信号。

测试已检测
文档已检测

仓库信息

开发语言
TypeScript
许可证
MIT
最新发布
v0.1.4
最后更新
2026年8月18日 07:25

谨慎安装

请检查源代码、权限、生命周期脚本、依赖与网络访问;不受信任的插件应先在隔离环境中测试。