dsh-magpie-usage
Manifest validDeepSeek Harness (DSH) plugin: Embeds upstream quota and usage progress rings from your local Magpie gateway (127.0.0.1:3425) right beside the composer context meter, with session-aware active model t
dsh-magpie-usage
DeepSeek Harness (DSH) 插件:将 Magpie 本地网关(127.0.0.1:3425)的配额与用量进度圆环嵌入 DSH 输入框底部状态栏(与上下文比例并列)。

功能特性
-
底部状态栏极简圆环 (
conversation.composer.dock):- 与原生
ContextMeter上下文比例圆环(○ 43%)完全并列。 - 采用一致的 14×14 SVG 矢量圆环架构,带有平滑动态进度弧线。
- 会话感知:自动跟踪当前会话选中的模型 Provider(如在 Kiro 会话显示 Kiro,在 Codex 会话显示 Codex)。
- 悬停 1 秒快速预览:显示对应 Provider 的精确重置时间;若存在 5 小时限制,自动展开五小时用量与重置倒计时。
- 与原生
-
配额详情悬浮卡片 (向上平滑弹出):
- 展现各账号的核心配额(7 天周期、5 小时限制、积分总额等)。
- 置顶项自动置顶:点击任一 Provider 的
📌 置顶,该卡片立刻移至列表最顶端。 - 真实会话专属标识:
● 当前会话标签严格锚定当前会话实际使用的 Provider,绝不混淆。 - 智能识别限频:模型处于熔断冷却态时显示为
[冷却中]状态及倒计时。 - 自动过滤杂质:自动剔除网关的代理/管理页等非配额配置链接。
- 双视角全会话同步:支持「已用」与「剩余」双视角一键切换,跨所有会话全局实时同步。
- 隐私保护:支持一键切换账号邮箱脱敏(
h***4@proton.me)。
-
极致性能:
- 0ms 首屏秒开:通过本地快照直出,刷新与重启瞬间无白屏闪烁。
- Token 流期间 0 消耗:单例模型追踪器配合 150ms 防抖,文本流式生成期间完全静默无重绘。
- 页面可见性感知:窗口最小化或后台挂起时自动暂停轮询,切回前台静默对齐。
- 同源安全代理:内置 Node 端服务,提供 10s 请求去重与失败退避,彻底消除跨域限制。
安装方式
方式 1:通过 GitHub 一键安装(推荐)
# 桌面端 Desktop Profile
dsh plugin --profile desktop add github:hsthanb4/dsh-magpie-usage
# 普通 Web Profile
dsh plugin --profile web add github:hsthanb4/dsh-magpie-usage
方式 2:通过 DSH 桌面端插件市场安装
在 DSH 桌面端打开 设置 → 插件,搜索 dsh-magpie-usage 点击安装,刷新页面即可使用。
方式 3:本地开发 / 软链安装
cd ~/.dsh/profiles/desktop/node_modules
ln -s /path/to/dsh-magpie-usage dsh-magpie-usage
在 ~/.dsh/profiles/desktop/package.json 的 dependencies 与 dsh.profile.bundles 中添加 "dsh-magpie-usage"。
使用前提
确保本机已启动 Magpie 本地网关(默认监听 http://127.0.0.1:3425)。
作者信息
- Author: hsthanb4 1485209316@qq.com
- Repository: https://github.com/hsthanb4/dsh-magpie-usage
- License: MIT
Comments
Loading…
From the same category
by anywhere-labs
为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 34.4k
↓ 175/wk
MIT
TypeScript
Oct 31, 2026
dsh plugin --profile web add dsh-plugin-desktopby zhu1090093659
DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop
★ 9.9k
↓ 225/wk
Apache-2.0
TypeScript
Nov 2, 2026
dsh plugin --profile web add dsh-webA collection of independent Web UI plugins and skins, including task boards, Git graphs, mobile access, and live token stats.
★ 8.6k
↓ 225/wk
Apache-2.0
TypeScript
dsh plugin --profile web add dsh-webby PC2005-cloud
DSH 桌面宠物:一行命令装好即用的透明动画小桌宠,支持多开、大小位置随心配置;还内置 DIY 素材链,能用 AI 视频自造专属宠物
★ 5.2k
↓ 224.8k/wk
MIT
TypeScript
Nov 2, 2026
dsh plugin --profile web add dsh-petby omdsh-dev
开放的侧边栏底座,支持三方拓展注册新侧边栏页面。内置文件渲染编辑/终端/侧边对话/Git/子代理页面 | Open sidebar foundation, supports third-party extensions to register new sidebar pages. Built-in file rendering/editing, terminal, side chat, Git,
★ 4.8k
↓ 99.3k/wk
MIT
TypeScript
Oct 30, 2026
dsh plugin --profile web add dsh-better-sidebarby bowenliang123
The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,
★ 4k
↓ 139k/wk
Apache-2.0
TypeScript
Nov 2, 2026
dsh plugin --profile web add dsh-context