Borrowing it
Nothing to install: this file belongs to PerryLink/dsh-checkpoint-rewind. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/PerryLink/dsh-checkpoint-rewind/main/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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" 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.1 | $0.02661 | $0.02661 |
| Opus 5.5 | $0.01064 | $0.01064 |
| Sonnet 5.5 | $0.00532 | $0.00532 |
| Haiku 4.5 | $0.00266 | $0.00266 |
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 1mo ago.
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 — 90 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 trusted publishing / OIDC,无 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/、真实用户工作区快照(含敏感内容)、任何凭据/密钥。
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.
- 1mo ago Changed · +1 tokens per session 701f6d590527
- 1mo ago Changed 949f42c0a68f
- 1mo ago Changed · +9 lines · +441 tokens per session 56fb839bf850
- 1mo ago Changed · +6 tokens per session 92b41409880f
- 1mo ago Changed 04c12b9e3086
- 1mo ago Changed cf0daac57cea
- 2mo ago Changed · +2 tokens per session 2bbdf8672b98
- 2mo ago Changed · +4 tokens per session 4d4656ed4b60
- 2mo 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 (30 stars, last pushed today), licensed Apache-2.0. It adds 2,661 tokens to every session, about $0.0106 per session on Opus 5.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.
dsh-checkpoint-rewind AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dsh-checkpoint-rewind AGENTS.mdPerryLink/dsh-checkpoint-rewind | Instructions file | 30 | today | Apache-2.0 | A | 2,661 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |