Auto-fold context/system messages in DSH conversation — collapse think blocks, tool calls, and tool results into grouped expandable bars.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:cayan0x/dsh-fold-context
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
Auto-fold context/system messages in DSH conversation — collapse think blocks, tool calls, and tool results into grouped expandable bars.
自动折叠 DSH 对话中的系统 / 上下文消息——把思考块(think)、工具调用和工具结果合并成可展开的分组折叠条,让长对话回归清爽。
Features / 功能特性
- Auto-detect & fold / 自动识别并折叠:Think blocks, tool calls, tool results, and context injection messages are automatically collapsed. / 自动折叠思考块、工具调用、工具结果和上下文注入消息。
- Multi-level grouping / 多级分组:Adjacent foldable blocks (think + tool-call + tool-result) merge into a single group bar with sub-bars. / 相邻的可折叠块(思考 + 工具调用 + 工具结果)合并为一条分组条,内含子折叠条。
- Streaming-safe / 流式输出安全:Debounced DOM scanning catches elements as they arrive during streaming. / 带防抖的 DOM 扫描,能在流式输出过程中捕捉新出现的元素。
- Transparent styling / 无侵入样式:Minimal, neutral UI that blends with the conversation. / 极简中性的界面,融入对话不突兀。
- Click to expand / 点击展开:Each fold bar is clickable to reveal the hidden content. / 每条折叠条都可点击展开,查看被隐藏的内容。
Screenshots / 效果截图
折叠状态 / Folded:

展开状态 / Expanded:

Install / 安装
# 安装最新版本 / Install latest
dsh plugin add github:cayan0x/dsh-fold-context
# 安装指定版本 / Install specific version
dsh plugin add github:cayan0x/dsh-fold-context#v0.1.3
Or manually: copy the plugin into your DSH profile's packages/ directory. / 或手动:将插件复制到 DSH 配置的 packages/ 目录。
Versions / 版本管理
All releases are tagged on GitHub. To install a specific version, use #v<version> after the repo URL. See GitHub Releases for the full version history. / 所有版本在 GitHub 上以 tag 标记。安装特定版本时在仓库地址后加 #v<version>。完整版本历史见 GitHub Releases。
License / 许可
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 8670
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 8670
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 4631
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
ccch1mneyyy/dsh-TUI★ 4484
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
omdsh-dev/DSH-better-sidebar★ 4133
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
Devin-AXIS/deepseek-design#deepseek-idesign★ 1453
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.