dshbase

Plugin directory / Developer / dsh-trajectory-replay

dsh-trajectory-replay

Unverified apoexia

✓ Actively maintained 2 contributors Builds on 1 official DSH packages

View on GitHub ↗ ← Back to plugin directory

1Stars
0Forks
0Open issues
Language
2026-08-17Last push
Cross-platformPlatform

What it does

一个deepseek-harness插件,用来做agent轨迹回放。欢迎试用给出反馈

Our take
Unverified — not yet verified

一个deepseek-harness插件,用来做agent轨迹回放。欢迎试用给出反馈 Not yet verified — install and test it yourself.

“Unverified” means our automated CI has not yet installed this plugin. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

Plugin author? Get the “Verified” label — submit your own evidence (screenshots, logs, or a short demo) and we'll review and flip the badge.

Submit verification evidence ↗

README

@dsh-external/dsh-trajectory-replay

轨迹重现插件:把轨迹重放粒度细化到具体某条 assistant 消息 / 工具调用(记录级),提供原轨迹 vs 新执行对比、step 级单步门控与执行台账。纯插件实现,不修改 harness

Trajectory Replay

架构

host 半部src/index.ts,进程内 ReplayRegistry

  • POST /api/replay/start —— 按 kind: turn|message|tool 计算切点 → 构造 seed(记录级以合成 turn/end {interrupted} 收口 + plugin-source context 载体续跑)→ 创建 origin:'subagent' 子会话
  • POST /api/replay/checkpoints —— 从完整会话日志派生全量可重放点(turn 级 + 记录级,不受浏览器分页限制)
  • POST /api/replay/control / discard / promote —— 单步继续/撤销/停止、清理、导出为工作区会话
  • agent/request 瀑布监听 —— step 模式门控

client 半部src/client/

  • replay-state.ts —— ReplayController 状态机 + 会话快照源(后台 open 子会话窗口)
  • ReplayView.tsx —— 按 turn 折叠的 checkpoint 选择器、运行控制、执行台账、两侧对比面板
  • TrajectoryTable.tsx / TrajectoryView.tsx —— 轨迹表格内 turn 级与记录级重放按钮(一行最多一个 ▶)
  • replay-checkpoints.ts —— host 全量 checkpoint 拉取

安装

一键安装

bash scripts/install.sh            # 或 bash scripts/install.sh <profile名>

脚本执行:① tsc 构建 host;② tsdown 构建 client;③ 在目标 profile 建立 node_modules junction、写入 package.jsonlink: 依赖与 bundles 条目、禁用官方 ui-trajectory 条目(全部幂等)。

  • 重启 dsh 生效;运行中的 harness 免重启:dev_inject_plugin <本目录>
  • 装配后刷新浏览器页面使用。

构建

npm install
bash scripts/build.sh   # host(需 DSH_CHECKOUT)
npm run build:client    # client(tsdown)

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install dsh-trajectory-replay for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

This plugin is GitHub source (not published to npm) — install it straight from the repo:

Web profile:

dsh plugin --profile web add github:apoexia/dsh-trajectory-replay

Headless (CLI) profile:

dsh plugin --profile headless add github:apoexia/dsh-trajectory-replay

Test report

Not yet L3-verified — see failure note below if we already ran it.

Status: pending · last test 2026-08-26
Note: 验证: runtime-fail Browse all pending failures →
Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Developer

Browse all 7795 plugins →