DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Adb — DeepSeek Harness 插件(DSH Plugin)
← Plugins

dsh-adb

Adb

DeepSeek Harness 的 ADB 设备与基准测试操作:设备发现、结构化 logcat、apk 安装、文件拉取/推送、性能快照、性能基线、崩溃报告、一键设备健康报告、条件等待、支持回滚的操作台账、屏幕截图、崩溃看门狗、一键设备巡

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-adb@1.7.0
README兼容性版本

说明

DeepSeek Harness 的 ADB 设备与基准测试操作:设备发现、结构化 logcat、apk 安装、文件拉取/推送、性能快照、性能基线、崩溃报告、一键设备健康报告、条件等待、支持回滚的操作台账、屏幕截图、崩溃看门狗、一键设备巡检(支持定时看门狗)、Web 设备面板(自动补全、实时 logcat、性能分析器)

兼容性与来源证明

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

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/8/31

版本

1.7.0stable
2026/8/31
1.6.1stable
2026/8/27
1.6.0stable
2026/8/26
查看其余 4 个版本收起版本
1.5.0stable
2026/8/25
1.4.0stable
2026/8/24
1.3.0stable
2026/8/21
1.2.0stable
2026/8/20

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

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

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Subagent Codex@deepseek-ai/dsh-subagent-codex基于官方 app-server 协议的一次性 Codex 子代理提供程序

README

dsh-adb

ADB device & bench operations for DeepSeek Harness

Give DSH agents direct control over Android devices and automotive bench rigs: device discovery, structured logcat, APK install, file pull/push, and performance snapshots. Built for on-vehicle and bench debugging workflows — generic within the domain (no Unity, no vendor protocol lock-in).

English | 简体中文

Install

dsh plugin --profile web add dsh-adb

Or install directly from GitHub: dsh plugin --profile web add github:SamXiaBing/dsh-adb

Web device panel (v1.1.0)

A Devices tab (UI label 设备) in the conversation view ring (next to chat / trajectory / automation): device list with status, package autocomplete (fuzzy search), live streaming logcat window (level/keyword/package/pid filters, pause/clear/auto-scroll), device info card, process list, performance snapshot, and a one-click health report (UI label 设备体检 / Device Checkup: device identity, top-RSS processes, crash buffer, W/E/F logcat window, storage — persisted under reportDir, sendable to the conversation for diagnosis). The report turns raw evidence into signal before it reaches the model: crash-buffer entries are classified into real crashes (with stack chains) vs. MediaTek boot markers, repetitive logcat is aggregated by tag ("AOSP-MdnsDiscoveryManag ×3264" instead of 3k identical lines), and a compact health summary (verdict + issues) is attached — so the agent reasons from conclusions, not 17k raw lines. Plus harness synergy: send any logcat/snapshot/report to the conversation (the agent analyzes it), a live strip of the agent's adb operations, and a registered crash-analysis skill (dsh-adb-crash-analysis) for automation pipelines. Data flows over the package RPC channel; install into a web profile and restart the GUI (see scripts/restart-web.ps1 for a one-click restart).

Ecosystem

  • ✅ npm — dsh-adb published (latest: 1.6.0)
  • ✅ awesome-deepseek-harness#87 — merged
  • ✅ awesome-dsh-plugin#85 — merged
  • ✅ awesome-DSH-plugin#29 — merged

Topics: dsh-plugin dsh adb android automotive bench

Tools

ToolDescription
adb_devicesList devices (serial/state/product/model); run first to discover serials
adb_connect / adb_disconnectWireless bench connection (host:port, default 5555)
adb_logcatFiltered read (tag/level/keyword/time-window/tail); run_in_background streams continuously as a job — read deltas with job_output, stop with job_kill
adb_installInstall APKs (-r/-d/-g options); validates the local file exists
adb_filepull / push / ls / rm, per-device isolation
adb_perf_snapshotStructured dumpsys meminfo / gfxinfo / battery snapshots (PSS, frame percentiles, jank rate, battery)
adb_perf_baselinePerf regression: save a snapshot as a baseline (label/tags), compare current state and get a numeric diff (PSS, janky %, percentiles), list/delete baselines (stored locally under baselineDir)
adb_crash_reportOne-call crash scene: parsed logcat crash buffer + dropbox excerpt + process state + memory summary
adb_device_reportOne-click health report: device identity + top-RSS processes + crash buffer (real crashes w/ stacks vs. boot markers) + W/E/F logcat aggregated by tag + storage + health verdict; each section degrades independently; persisted under reportDir
adb_wait_forWait until a device condition holds — device-online / boot-complete / process appeared / logcat keyword — polling up to a budget, instead of sleeping a fixed number of seconds; returns matched:false on timeout
adb_operation_ledgerAppend-only device operation ledger (record/list/rollback): record installs/pushes/etc., list history, or roll an app back to its last known-good APK (adb install -r); persisted as operations.json — the trust base for agent-driven device modification
adb_screenshotCapture the device screen into a local PNG (screencap → pull), returning the saved path, byte size, and pixel dimensions — durable evidence for crash scenes / UI states / test frames

Errors are structured AdbError with stable codes: ADB_NOT_FOUND, ADB_UNAVAILABLE, DEVICE_NOT_FOUND, NO_DEVICES, CONNECT_FAILED, INSTALL_FAILED, ADB_EXIT_<code>, etc.

Usage: adb_watch_crash (Crash Watchdog)

Watch the device's crash buffer for new real crashes. On start, it reads the current buffer and remembers every existing crash signature (seed), so only crashes that appear after the watch begins are reported. Boot markers (mtk-brm-*) are not crashes and are ignored.

Foreground mode (default) — blocks until a new crash appears or the budget expires:

// Agent calls:
{ "name": "adb_watch_crash", "args": { "timeoutMs": 60000 } }

// New crash detected:
{ "matched": true, "waitedMs": 3200, "crashes": [{ "time": "08-26 06:22:56.714", "pid": "2947", "tag": "AndroidRuntime", "message": "FATAL EXCEPTION: WM.task-1", "stack": ["AndroidRuntime: Process: com.miui.weather2, PID: 2947", "..."] }] }

// No new crash within budget (not an error):
{ "matched": false, "waitedMs": 60000, "crashes": [], "reason": "no new crash within 60000ms" }

Background mode (run_in_background) — returns a job id immediately, keeps polling:

// Start watching in the background:
{ "name": "adb_watch_crash", "args": { "run_in_background": true, "timeoutMs": 300000 } }
// → { "kind": "background", "jobId": "adb-watch-crash-1" }

// Read latest detections with job_output:
// [adb_watch_crash] detected 1 new crash(es) after 5400ms
// - 08-26 06:22:56.714 pid=2947 AndroidRuntime: FATAL EXCEPTION: WM.task-1
//     AndroidRuntime: Process: com.miui.weather2, PID: 2947
//     ...

Chain with crash capture — when a crash is detected, pair with adb_crash_report and adb_screenshot to capture the scene:

1. adb_watch_crash (watch for new crash)
2. → crash detected → adb_crash_report (full crash scene: buffer + dropbox + process + memory)
3.                    → adb_screenshot (screen state at crash time)
ParameterTypeDefaultDescription
serialstringdefaultSerialTarget device serial
timeoutMsinteger60000Watch budget (max 600000 = 10 min)
intervalMsinteger1000Poll interval (min 250)
withStacksbooleantrueInclude same-pid stack lines per crash
run_in_backgroundbooleanfalseRun as a background job; read via job_output

Configuration

Set the config block in cordis.patch.yml (or a profile patch):

- id: dsh-adb
  name: dsh-adb
  config:
    adbPath: C:\Users\me\AppData\Local\Android\Sdk\platform-tools\adb.exe
    defaultSerial: emulator-5554
    timeoutMs: 30000
KeyDescriptionDefault
adbPathAbsolute path to the adb executableAuto-detect PATH / ANDROID_HOME / ANDROID_SDK_ROOT/platform-tools
defaultSerialDefault target device serialnone
timeoutMsPer-command timeout30000
baselineDirDirectory for adb_perf_baseline storage~/.dsh/storages/dsh-adb
reportDirDirectory for adb_device_report storage<baselineDir>/reports
screenshotDirDirectory for adb_screenshot storage<baselineDir>/screenshots

Development

npm install            # add --include=dev when NODE_ENV=production
npm run build          # tsc → lib/
npm test               # parser/classification unit tests (node --test)
npm pack --dry-run     # verify publish contents (lib/ + cordis.patch.yml)

Testing & Verification

  • Principle: ship only what is tested — every committed feature has unit and/or end-to-end coverage.
  • Verified on: Android 13 automotive bench + Android 14 phone (Redmi K50 Pro) + emulator.
  • Per-version changes and verification: CHANGELOG.md; test methodology and coverage: docs/TESTING.md (Chinese).

Project Docs (bilingual; for AI agents & contributors)

  • docs/AGENTS.md / docs/AGENTS.zh-CN.md — read first: purpose, rules, commands, environment facts, doc map
  • docs/REQUIREMENTS.md / docs/REQUIREMENTS.zh-CN.md — purpose / scope / non-goals / acceptance criteria
  • docs/TESTING.md / docs/TESTING.zh-CN.md — testing philosophy, three test layers, E2E steps, regression checklist
  • docs/ROADMAP.md / docs/ROADMAP.zh-CN.md — harness×adb synergy feature roadmap (diagnosis report, crash attribution, screenshot vision, bench automation tests, wait primitives, approvals, multi-device compare, scheduled monitoring, rollback ledger)
  • docs/SCHEDULED-PATROL.md / docs/SCHEDULED-PATROL.zh-CN.md — run the patrol unattended on a schedule (dsh-automation prompt template + gotchas)
  • PLAN.md / PLAN.zh-CN.md — milestones & backlog

License

MIT

adb_watch_crashWatch the crash buffer for NEW real crashes (foreground poll or background job; boot markers ignored; matched:false on timeout) — the first link of the monitor→capture→attribute chain
adb_patrol_checkOne-click patrol: crash scan (real vs. boot markers) + perf vs. the latest stored baseline (regressions beyond a threshold) + battery/temperature/storage → compact verdict (ok/attention) with concrete issues; report persisted under <reportDir>/patrol. compareToLast:true attaches a delta vs. the previous stored patrol (new/gone crashes, worsening regressions, verdict transition). Fail-closed: a section that cannot be collected is itself an issue. No baseline → comparison skipped with a note; omit package → the perf section is skipped. Schedule it unattended with dsh-automation — see docs/SCHEDULED-PATROL.md