dsh-checkpoint-rewind: Instructions file for Codex

AGENTS.md

dsh-checkpoint-rewind AGENTS.md is an instructions file for Codex, OpenCode from PerryLink/dsh-checkpoint-rewind. It costs 2,661 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for dsh-checkpoint-rewind, a DeepSeek Harness plugin that saves Git-based workspace snapshots and can restore a session from a checkpoint. Git is the version-control system it uses to track file changes.

In plain words
What is it for?
Reading the plugin architecture and tests, creating or restoring checkpoints, handling session rewind and fork behavior, and following its commit and directory rules.
Why use it?
They define the plugin's recovery behavior and file boundaries, helping an agent preserve the project contract while changing code.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md.

This is PerryLink/dsh-checkpoint-rewind's own configuration. It tells Codex and OpenCode how to work on dsh-checkpoint-rewind itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dsh-checkpoint-rewind configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/PerryLink/dsh-checkpoint-rewind/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/PerryLink/dsh-checkpoint-rewind

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for dsh-checkpoint-rewind AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/perrylink/dsh-checkpoint-rewind/agents-md/github.svg)](https://agentmods.dev/instructions/perrylink/dsh-checkpoint-rewind/agents-md)
Your own site
<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.

agentmods 80×15 button for dsh-checkpoint-rewind AGENTS.md

Your own site · 80×15
<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>
Per session 2,661 This file is loaded in full into every session.
When invoked 2,661 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 701f6d590527, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

AGENTS.md · 90 lines

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.mjs import 的模块必须同步加进 package.json 的 files。
  • 行为变更需同步五语 README:以 README.md(英文)为源,中/西/葡/印地四语同 commit 更新;顶部互链行与 Topics 行保持五语一致。
  • 永不提交:dev/、node_modules/、真实用户工作区快照(含敏感内容)、任何凭据/密钥。

Read the full file on GitHub · 90 lines

Changes

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.

  1. 1mo ago Changed · +1 tokens per session 701f6d590527
  2. 1mo ago Changed 949f42c0a68f
  3. 1mo ago Changed · +9 lines · +441 tokens per session 56fb839bf850
  4. 1mo ago Changed · +6 tokens per session 92b41409880f
  5. 1mo ago Changed 04c12b9e3086
  6. 1mo ago Changed cf0daac57cea
  7. 2mo ago Changed · +2 tokens per session 2bbdf8672b98
  8. 2mo ago Changed · +4 tokens per session 4d4656ed4b60
  9. 2mo ago First seen · 81 lines · 2,207 tokens per session scan A 78b9dd89b063

Subscribe to this mod's changes

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.

Related

dsh-checkpoint-rewind AGENTS.md compared with instructions from other repositories

dsh-checkpoint-rewind AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dsh-checkpoint-rewind AGENTS.mdPerryLink/dsh-checkpoint-rewindInstructions file30todayApache-2.0A2,661Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode