dsh-agent-quality-diagnosis
为 DSH Agent 会话提供可执行的质量诊断,包含工具调用证据和后续行动建议。
cat552
@cat552
⬇ 1
★ 1
main
安装
dsh plugin --profile web add github:cat552/dsh-agent-quality-diagnosis
需要可复现安装时,可在仓库后追加 #commit 固定提交。
为 DSH Agent 会话提供可执行的质量诊断,包含工具调用证据和后续行动建议。
该插件未提供要点说明,请参考仓库 README。
agentagent-monitoringagent-observabilityagent-skillsdeepseekdeepseek-ai
- 安装并启动 DeepSeek Harness:
npx @deepseek-ai/dsh web - 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
- 用 dsh plugins list 确认已安装,必要时重启 Harness 生效
插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。
| 代码仓库 | github.com/cat552/dsh-agent-quality-diagnosis |
| 许可证 | 未标注(见仓库) |
| 主要语言 | main |
| 下载量 | 1 |
| GitHub 星标 | 1 |
| 最近推送 | 2026-09-01 |
| 收录日期 | 2026-09-19 |
| 分类 | 开发与运行时 |
事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。
以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。
# dsh-agent-quality-diagnosis
English | [中文](README.zh.md)
`dsh-agent-quality-diagnosis` is a DSH Web plugin that turns the current session's event log into an execution-quality report for agent work. It complements DSH Trajectory: Trajectory shows the event ledger, while this plugin answers whether anything still blocks delivery and what concrete action closes it.
The plugin is an MVP and currently provides:
- a `质量诊断` tab registered through `dsh-better-sidebar`;
- a Host API that reads `ctx.sessions.get(sessionId).events` and builds a tool-call-level report;
- a Web runtime fallback when the Host report is unavailable;
- a user-facing report with `ready`, `needs_action`, or `blocked` status;
- a primary next action at the top of the report;
- open actions with a target, action, optional command or related command, done condition, and a copyable prompt for continuing the work in the current agent conversation;
- separate resolved and observed sections so mid-session issues fixed later do not block delivery;
- a comparison against the previous cached report that shows findings closed by a refresh;
- user-readable impact, folded evidence, and a Markdown report;
- local browser caching for the latest generated report;
- manual report refresh, report copy, command copy, and agent-prompt copy actions in the sidebar tab;
- a `defaultVerificationCommand` Host config value for project-specific mutation verification;
- copyable evidence locators with rule id, event sequence, tool name, call id, and evidence text;
- a browser error fallback so a rendering defect in the tab does not affect the active session;
- no changes to `agent-loop`, subagent scheduling, tool permissions, or model calls.
## Installation
Install `dsh-better-sidebar` in the web profile first:
```powershell
pnpm dsh plugin --profile web add dsh-better-sidebar@latest
```
Install this plugin from the repository path:
```powershell
pnpm dsh plugin --profile web add link:/path/to/your/dsh-agent-quality-diagnosis
```
Restart or refresh DSH Web, then open `质量诊断` in the sidebar.
## Screenshots
The gallery shows the main report, summary metrics, finding details, and copyable actions/evidence.
| Overview | Report summary |
| --- | --- |
|  |  |
| Finding detail | Actions and evidence |
| --- | --- |
|  |  |
Optional Host config:
```yaml
- id: agent-quality-diagnosis
name: 'dsh-agent-quality-diagnosis'
config:
defaultVerificationCommand: 'pnpm run check'
```
## Diagnosis signals
Host session-event reports detect:
- failed tool calls;
- consecutive duplicate tool calls;
- file mutation without a later successful verification result;
- verification failure without a later passing verification;
- risky operations such as deletion, secret access, external network commands, and permission changes.
The Web runtime fallback detects:
- failed or killed background jobs;
- agents waiting for user approval or input;
- unresolved collaboration with running, waiting, failed, or killed child work;
- repeated subagent titles that may indicate duplicated work;
- long-running workers.
## Boundaries
The report is a heuristic diagnostic signal, not an absolute quality score. Each finding carries user-readable impact, an action, confidence, and expandable evidence so users can judge false positives.
Overall status only considers `open` findings. A failed tool call with a later successful retry, a failed verification with a later passing verification, or a risky operation with an `allowed-once` approval record moves into the resolved section. Duplicate attempts and non-sensitive risky operations are observations unless they remain failed or lack the authorization evidence required for delivery.
Risky operations keep their original command as a related command, not as a command to rerun. The agent prompt asks for authorization, impact, and rollback explanation before any further high-risk operation.
All analysis runs locally inside the plugin. The plugin does not upload the session log and does not change execution behavior. If DSH session-event fields change, update `src/analyzer/trace-builder.ts`; rule logic stays under `src/rules/`.
## Local checks
The plugin carries its own lightweight checks because it lives outside the main workspace package list:
```powershell
pnpm run check
pnpm exec tsc -p tsconfig.json
pnpm exec vitest run --config vitest.config.ts
node --check lib\index.js
node --check lib\client.js
```
## Demo report
Generate a Markdown report from the included sample sessions:
```powershell
pnpm run demo:report
pnpm run demo:report -- fixtures/missing-verification-session.json
```
The fixtures cover a normal session, a failed tool call, and a mutation without later verification.
They also include resolved examples for a failed tool retry and a failed verification followed by a passing verification.
## Browser smoke
Use the linked web profile, start DSH Web, then open `质量诊断` on a session with tool calls:
```powershell
$env:DSH_HOME=''
pnpm dsh --profile web
```
The tab should show Host session-event metrics when the Host route is available. If the route fails, it should show the Web runtime fallback and the Host error note.
After fixing an open issue, run refresh again. The tab should show the closed finding under `本次已关闭` when the previous cached report had that finding open.
Expanded evidence rows should provide a copyable locator that can be pasted into Trajectory search or a bug note.
数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。