shyuan-hub/dsh-compact-button
shyuan-hub★ 2TypeScriptLast synced: 2026-08-28
one-click Compact context button for the DSH Web context meter panel.
README excerpt
dsh-compact-button 上下文快满了?点一下,把早期对话压缩成摘要 在 DSH Web 的 上下文计量面板 里放两个按钮:「压缩上下文」点击即向当前会话提交 /compact , 把较早的对话历史压缩成摘要;「新建会话」点击即在 同一 workspace 中开启一个新会话。 English: a one-click Compact context button and a New session button for the DSH Web context meter panel. 输入框(composer)旁的上下文圆环展开后就是「上下文计量面板」,按钮就在里面 动态演示:点击「压缩上下文」提交 /compact,点击「新建会话」在同一 workspace 开启新会话 📑 目录 - ✨ 功能一览 - 🚀 安装 - 🖱️ 按钮怎么用 - 🔧 工作原理 - 🛠️ 开发与构建 - ⚠️ 已知限制 ✨ 功能一览 - 🔘 一键压缩 :长对话不断吃掉上下文窗口,以前得手动敲 /compact ——现在按钮就放在你随时能看到的上下文面板上,一眼看到快满了,点一下即可 - 🔁 同一条命令通道 :和手敲 /compact 走的是 完全相同的通道 ( session.command('/compact') ),压缩结果照常以命令行形式出现在对话流里,无特殊行为 - 📊 状态实时反馈 :按钮文案随提交状态流转(待命 → 提交中 → 已提交 / 未匹配 / 失败),4 秒后自动回到待命,面板保持清爽 - 🌏 多语言 :跟随 DSH 的语言设置,中文 / 英文实时切换 - 🆕 新建会话 :在压缩按钮右侧再放一个「新建会话」按钮——点击即在 同一 workspace 中开启一个新会话并跳转过去;agent 预设与权限设置沿用部署默认(与当前会话一致的前提见「已知限制」) - 🪶 零侵入 :纯 client 半边插件(host 半为空 apply);槽位不存在时按钮安静地不渲染,不影响平台其余部分 🚀 安装 前置 :已装好 DSH( dsh web 能正常运行),Node.js ≥ 20、pnpm ≥ 10。 方式一:从 npm 安装(推荐) 方式二:从源码安装(调试本地改动时使用) 装完 重启 dsh web ,再硬刷新浏览器(Cmd/Ctrl+Shift+R)即可生效。 ✅ 无需手动编辑 profile 的 package.json :本包声明了 dsh.bundle.patch , dsh plugin add 安装后会自动把它追加进 dsh.profile.bundles 。 🔧 调试本地改动时,可改用 link 通道: dsh plugin --profile web add "link: " ,之后每次 pnpm build + 重启…
View full README on GitHub →Category
🎨 Best DeepSeek Harness Design Plugin. The open-source Claude Design alternative. 🖥️ Local-first desktop app. 🖼️ Your coding agent becomes the design engine: prototypes, landing pages, dashboards, slides, images & video — real files, HTML/PDF/PPTX/MP4 export. 🤖 Claude Code / Codex / Cursor / DeepSeek Harness / OpenCode & 20+ CLIs via BYOK.
★ 92,369
esengine/DeepSeek-ReasonixDeepSeek-native AI coding agent for your terminal. Engineered around prefix-cache stability — leave it running.
★ 35,237
crafter-station/petdexA public gallery of animated pets for Codex, Claude Code, DeepSeek Harness, Hermes, OpenCode, Gemini CLI, and more.
★ 3,989