Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/perrylink/dsh-checkpoint-rewind/agents-mdgit clone --depth 1 https://github.com/PerryLink/dsh-checkpoint-rewindWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/perrylink/dsh-checkpoint-rewind/agents-md)<a href="https://agentmods.dev/instructions/perrylink/dsh-checkpoint-rewind/agents-md"><img src="https://agentmods.dev/badge/instructions/perrylink/dsh-checkpoint-rewind/agents-md.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.02211 | $0.02211 |
| Opus 5 | $0.01105 | $0.01105 |
| Sonnet 5 | $0.00442 | $0.00442 |
| Haiku 4.5 | $0.00221 | $0.00221 |
Grade A, and why
dsh-checkpoint-rewind AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
dsh-checkpoint-rewind 是 DeepSeek Harness 的能力接缝插件:为 DSH 补上 Claude Code /rewind 等价能力 —— git 优先的工作区文件快照 + 会话边界回退(fork 种子会话)+ 一键恢复。别的回退插件卖 Change Ledger(Anionex/dsh-turn-rewind)或纯上下文回退(LingLambda/dsh-undo),本插件卖 git 对象级快照 + fork 种子会话 + 三段式恢复事务(保护检查点 → 恢复 → fork)。DSH 哲学是 everything is a plugin——本仓库只做插件,不碰引擎。改代码前先读 README.md(对外契约)、ARCHITECTURE.md(设计决策)与 test/(现有行为)。
仓库布局:发布面 / 本地工程面
根目录只放发布到 GitHub / npm 的文件;本地工程文件一律收进 dev/(gitignore,永不提交)。
index.mjs 插件入口(唯一 host 面文件):provider 注册/事件监听//rewind 命令
types.d.ts 类型契约:checkpoint/* SessionEventMap 声明合并 + 配置类型
lib/constants.mjs 词汇表与协议常量(provider/事件名/错误码/默认值,零依赖)
lib/errors.mjs 结构化领域错误(code + details,零依赖)
lib/workspace.mjs 工作区键规范化 + 快照目录解析(零依赖)
lib/checkpoints.mjs 检查点纯函数:≤N 映射、清理计划、列表/预览渲染(零依赖)
lib/glob.mjs 轻量 glob → 相对路径匹配器(copy provider 排除项用,零依赖)
lib/gate.mjs 回退确认门 + 会话事件自适应门(零依赖)
lib/lock.mjs 按键串行化互斥(零依赖)
lib/domain.mjs 'checkpoints' 存储领域 spec(唯一允许 zod/DSH 包的 lib 模块)
lib/projection.mjs 会话投影单元 checkpoints(持久边界校验器,允许 zod)
lib/providers/ provider seam:definition(契约)/ registry / git / copy
cordis.patch.yml bundle 声明(insert checkpoint-rewind)
package.json npm 元数据;files 白名单 = 发布内容
README.md 英文主介绍(GitHub 默认页;五语源文)
README.{zh,es,pt,hi}.md 中/西/葡/印地语介绍(顶部互链,与英文同 commit 更新)
ARCHITECTURE.md 三角色 seam 架构图与全部设计决策
CHANGELOG.md / SECURITY.md 变更记录 + 安全政策(含安全面矩阵)
.github/workflows/ci.yml 单元测试 + 组装式集成验证(Windows/Linux × Node 22/24)
.github/workflows/publish.yml tag v* → 测试 + npm publish(NPM_TOKEN secret)
LICENSE / THIRD_PARTY_NOTICES.md Apache-2.0 + 复用出处标注
test/ 单测 + test/integration/ 组装式集成验证(进 GitHub,不进 npm 包)
dev/ ❌ 本地工程面:冒烟脚本、夹具、演示——永不提交
- 新增被
index.mjsimport 的模块必须同步加进package.json的files。 - 行为变更需同步五语 README:以 README.md(英文)为源,中/西/葡/印地四语同 commit 更新;顶部互链行与 Topics 行保持五语一致。
- 永不提交:
dev/、node_modules/、真实用户工作区快照(含敏感内容)、任何凭据/密钥。
命令
npm install # 安装 peer 依赖(@deepseek-ai/[email protected]、schemastery、zod 等)
npm test # node --test 跑 test/**/*.test.mjs(含 test/providers/ 单测套件;集成验证单独跑)
npm run test:integration # 组装式 headless 集成验证(test/integration/,不进发布包)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +4 tokens per session 4d4656ed4b60
- 5d ago First seen · 81 lines · 2,207 tokens per session scan A 78b9dd89b063
dsh-checkpoint-rewind AGENTS.md is an instructions file published in the GitHub repository PerryLink/dsh-checkpoint-rewind (15 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,211 tokens to every session, about $0.0111 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
dsh-rewind AGENTS.md
AGENTS.md instructions for SiriLee/dsh-rewind, covering agents.md, positioning & principles, common commands, layout at a glance and conventions.
DSH-better-sidebar AGENTS.md
AGENTS.md instructions for omdsh-dev/DSH-better-sidebar, covering dsh-better-sidebar 仓库规则(agents), 1. 仓库硬约束(必须遵守), 2. ci 挂载冒烟(plugin-mount job / pnpm test:mount), 3. dsh 0.1.2 适配要点(0.1.2-rc.1+ 基线) and 4. npm 发版(github release → npm publish).
awesome-dsh-plugin AGENTS.md
Instructions for beancookie/awesome-dsh-plugin, covering agents.md, 内容来源(source of truth), 目录结构(每个文件夹的作用), 添加插件 and 整理流程(分类与数量).
dsh-config-manager AGENTS.md
Instructions for xiajiajun516/dsh-config-manager, covering agents.md — dsh config manager 仓库协作指南, 🗣️ 语言与交流, 📦 项目概览, 🗂️ 仓库结构与职责 and ui 分层(改动前必读,避免放错层).
causal-memory CLAUDE.md
Claude Code instructions for JingxuanC/causal-memory, covering causal memory mcp integration, causal memory integration, after acting on a decision and observing the result, when something fails unexpectedly and when a recorded lesson turns out to be wrong.
dsh-industry-research AGENTS.md
AGENTS.md instructions for PerryLink/dsh-industry-research, covering agents.md, layout, hard rules applied here, checks and release.