DeepSeek Harness 插件

dsh-record-replay

DeepSeek Harness plugin: model-facing orr_* tools plus the open-record-replay skill for the Open Record/Replay macOS workflow recorder.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
humblebanana/dsh-record-replay
最近更新
2026年8月13日
分类
自动化与任务
GitHub stars
11
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/humblebanana/dsh-record-replay
插件名:dsh-record-replay
作者:humblebanana

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-record-replay

A DeepSeek Harness plugin that turns the Open Record/Replay macOS workflow recorder into first-class harness capabilities.

It registers the open-record-replay skill and **six model-facing orr_* tools**, so an agent can learn a user-demonstrated desktop workflow: record the user's real macOS actions, validate the evidence, and package it for the host agent's native skill creator.

user demonstrates a workflow
  -> orr_record_start            (capture session.json + events.jsonl)
  -> orr_record_stop             (finalize)
  -> orr_session_validate        (check the evidence against the contract)
  -> orr_session_events          (read what the user actually did)
  -> orr_skill_prepare           (package a skill-input directory)
  -> host skill creator

Requirements

  • macOS (the recorder's native backend is Swift; it needs Xcode Command Line Tools).
  • Node.js >= 22.19 (the Harness runtime).
  • A DeepSeek Harness installation.
  • An open-record-replay

checkout whose bin/orr.js the plugin invokes.

Install

Build the package and add it to a profile as a bundle:

git clone https://github.com/<you>/dsh-record-replay.git
cd dsh-record-replay
pnpm install
pnpm build
pnpm pack                      # produces dsh-record-replay-0.1.0.tgz
dsh plugin --profile web add ./dsh-record-replay-0.1.0.tgz

dsh plugin add records the package in the profile's package.json dependencies and dsh.profile.bundles, and the harness heals the profiles/node_modules fallback so the bundle resolves. The shipped cordis.patch.yml mounts a neutral row; point it at your checkout by overlaying the row from your profile's cordis.patch.yml:

- id: record-replay
  config:
    repoRoot: '/absolute/path/to/open-record-replay'
    runsOut: 'runs'
    skillInputsOut: 'skill-inputs'

The profile patch file is hot-reloaded, so the running GUI picks the plugin up without a restart. Restart the Harness if you are not on a live profile.

Configuration

KeyDefaultMeaning
cliPathenv ORR_CLI_PATHExplicit path to bin/orr.js. Overrides repoRoot.
repoRootenv ORR_REPO_ROOTPath to an open-record-replay checkout; the CLI is <repoRoot>/bin/orr.js.
runsOutrunsWorkspace-relative recordings directory.
skillInputsOutskill-inputsWorkspace-relative skill-input packages directory.

The CLI runs with the session workspace as its working directory, so recordings and skill packages land where the agent's filesystem tools can read them.

Tools

ToolCLI mappingPurpose
orr_permissions_checkpermissions checkVerify Accessibility / Input Monitoring before recording.
orr_record_startrecord startBegin capturing the user's demonstration.
orr_record_stoprecord stopFinalize the session after the user finishes.
orr_session_eventssession eventsRead the evidence stream (events.jsonl), capped at limit events.
orr_session_validatesession validate-recordingCheck the recording against the official contract.
orr_skill_prepareskill prepareBuild the evidence package for the host skill creator.
orr_skill_create— (built-in)Built-in skill creation fallback. Generates a SKILL.md skeleton from a recorded session following the Anthropic skills spec (kebab-case name + description frontmatter, progressive-disclosure body, evals/evals.json), validates agent-authored drafts, and installs to ~/.agents/skills/<name>/. Prefer a host-native Skill Creator when one exists; this is the fallback.

Development

pnpm install
node scripts/link-dsh.mjs    # links @deepseek-ai/* from a DSH checkout/harness
pnpm build                   # tsc
pnpm test                    # vitest
pnpm validate                # build + test

Tests assert the registration contract and exercise the CLI runner through a stubbed subprocess service; node scripts/link-dsh.mjs --path <dir> points the @deepseek-ai scope at an explicit DSH checkout.

License

MIT — see [LICENSE](./LICENSE).