DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
P

dsh-pr-chip

Pr Chip

每个 DSH 会话行上的拉取请求状态标签。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:N-o-c-t-i-s/dsh-pr-chip#3bb21d2b67a1bb06f996e32c4ca6ab6580f8379b
README兼容性版本

兼容性与来源证明

Pr Chip 以 dsh-pr-chip 发布,当前版本为 0.1.6。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/21

版本

0.1.6stable
2026/10/21
0.1.2stable
2026/10/21
0.1.1stable
2026/10/21
查看其余 1 个版本收起版本
0.1.0stable
2026/10/20

相关插件

正在加载相关插件…

最新版
0.1.6
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/21
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 integrations-communication 分类下经过校验的插件。

Acp App@deepseek-ai/dsh-acp-appdsh ACP 配置文件包:基于 dsh-base 的仅限自动化的 JSON-RPC stdio 和进程生命周期管理Ds Botds-botDS Bot:DeepSeek Harness 的一组长期运行的 Bot,支持主 Bot、Bot 间消息和群聊Ab Wechat Scrapedsh-ab-wechat-scrape--- description: "树外 wechat_scrape 工具:获取微信公众号文章,过滤推广区块,并将每篇文章保存为 Markdown 文件,供此机器的 dsh 配置文件维护者使用。" kind: "package-reference" ---Pocketdsh-pocket把 DeepSeek Harness 装进你的口袋:一个包、一个设置页,手机扫码即同步访问电脑上的 DSH(局域网 + 公网,实时同屏)。

README

dsh-pr-chip

PR Chip

Pull request state on every DSH session row — a small icon that tells you whether the work behind a chat is still open, sitting as a draft, already merged, or closed.

A DeepSeek Harness (DSH) plugin: host half resolves the state, browser half draws the chip in the sidebar's session row. Glyph shapes follow the badge the Codex desktop app uses; colours are GitHub's.

中文文档见下方「中文」一节。

How it works

The session record never stores PR state. It stores an identity, and the state is always queried:

sessionId ──resolve cwd──> (ownerRepo, branch) ──gh pr list --head──> state

cwd is resolved in two steps: the workspace owning the session in storages/workspace.json, and — when that misses — the session's own on-disk directory name (--Users-me-proj--, with ~XXXX escapes and hyphens split by walking cut points that exist on disk). The second path is real: a session's cwd is not always its workspace path, and old sessions outlive their workspace row.

State is cached in memory only (30s for an answer, 60s for "no PR"), keyed by cwd, so sessions sharing a workspace share one lookup. Lookups are de-duplicated in flight and capped at four concurrent child processes.

Where the identity comes from, in order

  1. Live worktree — session cwd → git branch → gh pr list --head
  2. Remembered identity (links.json) — the checkout was archived or deleted
  3. Live events — a gh pr create seen on the session event bus, paired with the output of that same call id
  4. One-shot backfill — for sessions predating the install, the transcript is scanned once; the result is recorded and never rescanned

Both 3 and 4 accept only gh pr create's own output shape — one bare PR URL — so a command that merely prints a URL, or prose that quotes one, cannot match.

Install

# from a local checkout
dsh plugin --profile <profile> add link:/path/to/dsh-pr-chip

# from git
dsh plugin --profile <profile> add github:OWNER/dsh-pr-chip

Restart the host afterwards: the bundle list is composed at startup.

On the DSH desktop app the profile is managed by the application and dsh plugin refuses it; add the dependency and the dsh.profile.bundles entry by hand, plus the node_modules symlink.

Requirements

  • DSH ≥ 0.2.1 (the sidebar.session.row.leading seat passes { sessionId })
  • git and gh on PATH, with gh auth status healthy

When nothing is drawn

  • the directory is not a git worktree (a temporary path is fine — only a worktree matters)
  • the branch is a detached HEAD
  • the branch has no PR and no remembered identity
  • gh is missing or unauthenticated

The endpoint answers state: null with a reason (no-branch, no-pull-request, workspace-missing, gh-failed) and the row renders exactly as before.

Files it writes

Everything lives under $DSH_HOME/pr-chip/:

filecontents
links.jsonsession → (ownerRepo, branch, number) identity, atomically written, 500 entries max
scanned.jsonsessions whose transcript was already backfilled once
host-loaded.jsonlone line per host start (diagnostics)

Offline

The chip keeps the last state it observed. When gh cannot reach GitHub the endpoint answers with the stored state marked stale: true instead of null, so a dropped connection hides nothing — and a failed lookup never overwrites the good state that is already on disk. The first successful query after reconnect replaces it.

A session that never resolved a PR has nothing stored, so nothing is invented: it stays without a chip.

Where it shows

sidebar.session.row.leading — the 16px cell before the session title. DSH renders that cell only while the row is idle, and never for archived or blank rows.

DSH has no "always visible after the title" seat: sidebar.session.row.hover lives inside the hover card, and sidebar.workspaces.session.row.action appears only while hovering. The leading cell is the only permanent slot, so the chip lives there.

中文

会话行上的 PR 状态图标:open / draft / merged / closed 四态,颜色沿用 GitHub 配色(#1f883d / #6e7781 / #8250df / #cf222e)。

  • 状态从不落盘,只记身份;每次查询,带缓存。
  • 三条兜底:落盘的身份、会话事件里的 gh pr create、一次性日志回溯。
  • 只认真实输出:必须是 gh pr create 自己返回的裸 URL,正文里提到的 URL 不算。

安装后重启宿主生效。没有 PR 的会话行外观完全不变。

License

MIT — see LICENSE.