DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-ci-doctor

j

dsh-ci-doctor

Manifest valid3

CI failure, diagnosed before you open the logs — DeepSeek Harness plugin that watches GitHub Actions for new failures and turns raw logs into structured diagnosis cards · CI 失败,打开日志前就完成诊断 —— DSH 插件:监视

hasBundlePatch

dsh-ci-doctor

中文 · npm · DeepSeek Harness

CI failure, diagnosed before you even open the logs. dsh-ci-doctor watches GitHub Actions for new failures, turns raw job logs into structured findings — normalized error signatures, failure categories, suspect files, trimmed log excerpts — and remembers every signature it has ever seen, so repeat failures are called out on sight. All through two agent tools and the gh CLI you already have authenticated.

Usage

Just ask your agent in plain language — it picks the right tool:

  • "Watch CI on this repo and tell me when something fails" → starts a ci_watch background job.
  • "Why did the nightly build fail?" → runs ci_diagnose on the latest failed run and hands you the diagnosis card.
  • "Diagnose run 31782742089 on cli/cli" → targeted diagnosis of one specific run.

You get a markdown diagnosis card straight in the chat:

## CI diagnosis: cli/cli run #31782742089

**Conclusion:** failure · [run](https://github.com/cli/cli/actions/runs/31782742089)

### Job: Issue Triage (skills-driven)

**Failed steps:** triage
**Signatures:**

- `81a0edf32878` (timeout, first time seen) — server:http_server Session timeout configured…
  **Suspect files:** `script/triage.ts`

<details><summary>Log excerpt</summary>
…
</details>

What it does

1. Watch — the ci_watch tool. Starts a background job that polls for new failed runs (the first poll sets a baseline, so historical red runs never fire the alarm):

{ "repo": "owner/name", "branch": "main", "intervalSeconds": 30, "timeoutMinutes": 60 }
  • Streams status lines you can read any time; cancel any time.
  • Backs off exponentially on transient errors, gives up after 5 consecutive failures, fails immediately on auth errors.
  • On detection it settles with a ready-made next step: call ci_diagnose with repo="…" runId=….
  • Watch a repo explicitly, or omit repo to watch the current working directory's repository.

2. Diagnose — the ci_diagnose tool. Point it at a run (or the latest failed run) and it returns the card shown above:

{ "repo": "owner/name", "runId": 31782742089 }
  • Error signatures are normalized (timestamps, hex ids, and numbers masked) so the same failure gets the same id across runs.
  • Each signature is classified: test / build / lint / typecheck / dependency / network / permission / timeout / infra.
  • Suspect files are mined from the log, vendor paths dropped.
  • Log excerpts are trimmed to a budget with honest … (skipped N lines) … markers — content is never invented.

3. The failure-signature ledger. Every diagnosed signature is remembered — how many times seen, first/last sighting, last repo and run URL. Repeat failures surface as seen 3× in the report instead of pretending to be new. The ledger persists as a ci_doctor storage unit in the DSH storage directory when the profile provides a storage domain; it is in-memory otherwise.

Read-only by contract

Both tools only ever read GitHub state (via gh api). They never push, merge, cancel, rerun, or write anything to your repositories. Every result carries a repositoryWrites: false marker, and the package ships an optional invariant companion (dsh-ci-doctor/invariant) that fails loudly if a result ever loses that marker on hosts with an invariants service.

Install

dsh plugin --profile web add dsh-ci-doctor

Prerequisites: the GitHub CLI authenticated (gh auth login) — the plugin reuses that session, there is nothing else to configure.

Configuration

OptionDefaultMeaning
pollIntervalSeconds30Seconds between watch polls (min 5).
watchTimeoutMinutes60Wall-clock lifetime of one watch (min 1).
maxLogLines200Per-job log excerpt budget (min 20).
ghBinghGitHub CLI executable.
ledgerEnabledtrueRecord signatures into the ledger.

How it works

The plugin speaks to the host only through documented Cordis seams and imports no @deepseek-ai/* package:

  • tools — registers ci_watch / ci_diagnose on the real tool runtime.
  • jobsci_watch runs as a first-class streaming background job, owned by the calling agent.
  • shell — every gh call goes through the host's guarded, sandboxed execution pipeline.
  • storageDomain — the signature ledger persists as the ci_doctor storage unit.

Development

pnpm install
pnpm typecheck && pnpm test && pnpm build   # types, unit tests, bundle
pnpm format:check                           # Prettier

License

MIT

Versions

Latest versionPublishedSize
0.1.0
0.1.1
0.1.2

Comments

Loading…

Similar plugins

dsh-github-connect

by Moon-shiyue

便携式 GitHub 连接插件 for DeepSeek Harness (DSH):composer 左下角一键授权,AI 可通过 github_api 工具操作你的 GitHub。Portable GitHub connection plugin: OAuth device flow / PAT, proxy & system-CA aware.

Development & InfrastructureManifest valid

4

56/wk

MIT

JavaScript

Aug 29, 2026

dsh plugin --profile web add dsh-github-connect

by Julyves

DeepSeek Harness (dsh) plugin: Git status pill in the session header — branch, dirty counts, ahead/behind, recent commits & changed files.

Manifest valid

3

160/wk

MIT

TypeScript

Sep 1, 2026

dsh plugin --profile web add dsh-git-ui

by PerryLink

Official-grade GitHub CI for DeepSeek Harness: composite action.yml, PR review bot with idempotent inline comments and a status-check gate, plus PR/issues tools with every write gated by human approva

Development & InfrastructureManifest valid

15

516/wk

Apache-2.0

TypeScript

Sep 19, 2026

dsh plugin --profile web add @perrylink/dsh-github

by d86e

dsh-doctor: self-healing watchdog for the DeepSeek Harness web profile. Recovers from plugin-induced boot failures within 60s, runs an unbounded CLI doctor, captures every tool error, and watches all

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

4

MIT

TypeScript

Sep 8, 2026

dsh plugin --profile web add @d86e/dsh-doctor

by ymh0000123

DeepSeek Harness 插件:检测 DSH / @deepseek-ai npm 包与 GitHub 源插件的更新,设置页给出详细表格,并支持带显式构建授权的一键更新。A DSH plugin that detects updates for installed DSH/@deepseek-ai npm packages and GitHub-sourced plugins, with

Manifest valid

0

MIT

JavaScript

Aug 17, 2026

dsh plugin --profile web add dsh-update-checker

by Noob-stupid

DeepSeek Harness (DSH) 插件管理面板:一键启用/停用插件 + GitHub dsh-plugin 插件市场+自定义插件索引/市场,带插件详情与一键安装,一键框架升级自动回滚,插件升级门控 | Plugin manager & marketplace for DeepSeek Harness

Development & InfrastructureManifest valid

87

1k/wk

MIT

JavaScript

Sep 20, 2026

dsh plugin --profile web add @noob-stupid/dsh-plugin-console