kelai141/dsh-github-watchdog0

@dsh-external/dsh-github-watchdog

一个 DeepSeek Harness 智能体预设插件:会话级、仅读/写评论的 GitHub 仓库监视器,用于观察拉取请求、CI、提交和问题,并生成去重的安全意识初步分析。

AI 分析

核心用途是作为 GitHub 仓库监视器,自动分析 PR、CI 及 Issue。适合需要 AI 辅助进行代码安全审查和项目动态监控的开发者。

套件
@dsh-external/dsh-github-watchdog
版本
0.0.1
授權
MIT
最近更新
2026年8月18日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

3. Create the configuration

mkdir -p ~/.dsh/github-watchdog

Create ~/.dsh/github-watchdog/config.json:

{
  "repositories": [
    { "repository": "owner/repository", "workspace": "D:/path/to/local/checkout" }
  ],
  "tokenEnv": "GH_TOKEN",
  "intervalMs": 120000,
  "comments": { "enabled": false, "maxPerHour": 4 }
}

repositories may be an empty array at first — the model will discover candidates from the conversation workspace and ask you which to track.

Configuration reference

KeyTypeDefaultMeaning
repositoriesarray[]Explicit { repository, workspace? } whitelist
tokenEnvstringDSH_GITHUB_WATCHDOG_TOKENEnv var holding the GitHub token
intervalMsnumber120000Poll interval (60 000–3 600 000 ms)
comments.enabledbooleanfalsePublish automated analysis comments to PRs
comments.maxPerHournumber4Per-repository hourly comment budget (1–20)
stateFilestring~/.dsh/github-watchdog/state.jsonDeduplication/snapshot state
diagnostics.enabledbooleantrueWrite the rotating diagnostic log
diagnostics.logFilestringnext to config, watchdog.logDiagnostic log path

The configuration is read on every poll, so edits apply without restarting.