dsh-rewind: Instructions file for Codex

AGENTS.md

dsh-rewind AGENTS.md is an instructions file for Codex, OpenCode from SiriLee/dsh-rewind. It costs 591 tokens per session, scanned A, original, MIT.

Project instructions for dsh-rewind, a plugin that moves a conversation back to an earlier user message and can restore workspace files. They describe the plugin's principles, layout, conventions, and development commands.

In plain words
What is it for?
Use them when developing, testing, building, or reviewing the dsh-rewind plugin.
Why use it?
They give developers and coding agents a shared set of rules for changing and checking the project. They also clarify that conversations are kept and file restoration stays inside the plugin's backup area.

Instructions file for CodexOpenCode

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

This is SiriLee/dsh-rewind's own configuration. It tells Codex and OpenCode how to work on dsh-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-rewind configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SiriLee/dsh-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/SiriLee/dsh-rewind/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/SiriLee/dsh-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-rewind AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sirilee/dsh-rewind/agents-md/github.svg)](https://agentmods.dev/instructions/sirilee/dsh-rewind/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/sirilee/dsh-rewind/agents-md"><img src="https://agentmods.dev/badge/instructions/sirilee/dsh-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-rewind AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sirilee/dsh-rewind/agents-md"><img src="https://agentmods.dev/badge/instructions/sirilee/dsh-rewind/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 591 This file is loaded in full into every session.
When invoked 591 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.00591 $0.00591
Opus 5.5 $0.00236 $0.00236
Sonnet 5.5 $0.00118 $0.00118
Haiku 4.5 $0.00059 $0.00059

Measured today against content hash 807559ea1f1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

AGENTS.md · 49 lines

How it starts

The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

dsh-rewind — a DeepSeek Harness (DSH) plugin that rewinds a conversation in place to any earlier user message, optionally restoring workspace files along with it. This is the shared spec for developers and agents: principles and rules first, with the details in the linked docs.

Positioning & principles

  • Focused on purpose: it does exactly one thing — rewind to any earlier user message in the same window, never forking a session or switching windows.
  • Security first: session logs are append-only and conversations are never deleted; file restores draw only from the plugin's own backup directory.
  • Minimal: avoid over-abstraction; keep the plugin light and maintainable.

Layout at a glance

  • src/index.ts — host plugin: /rewind, /undo, /snapshot-auto-cleanup, and the checkpoint pipeline.
  • src/rewind.ts — pure planning: target resolution, surface range, candidate listing.
  • src/snapshot.ts — checkpoint store: before-backups, restore/preview, bounded prune.
  • src/snapshot-cleanup.ts — cleanup policy, config persistence, auto-sweep throttle.
  • src/locales.ts — host i18n.
  • src/client/ — client plugin: ↶ button, mode popover, hidden-span computation.
  • scripts/ — build, badge, host verification, session codec.
  • tests/ — vitest suites (rewind / snapshot / hidden / integration).
  • docs/ — compat/, release/, plus the design, format and interface docs.
  • Full source layout: docs/architecture.md; DSH interfaces: docs/harness-reference.md.

Working in this repo

  • npm run check is the merge gate; setup and the full command list are in CONTRIBUTING.md.
  • Code comments are English; commits use conventional commits with English subjects (feat/fix/docs/test/chore/...).
  • One logical change per commit: finish it, run npm run check, then commit and push before starting the next change.
  • DSH compatibility is iteration-driven: main adapts only to the latest DSH line; cross-version compatibility is not kept (see docs/release/release.md).

Read the full file on GitHub · 49 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. today Changed · +1 lines · +12 tokens per session 807559ea1f1e
  2. yesterday Changed · -4 lines · -213 tokens per session cb81b55c17fd
  3. 10d ago Changed · -2 lines · -37 tokens per session bd922ff51c8a
  4. 27d ago Changed · -1 lines · -22 tokens per session d56aaad07ea0
  5. 1mo ago Changed · -2 lines · -38 tokens per session 2cb7cb487709
  6. 1mo ago Changed 787850ac54bc
  7. 1mo ago Changed · +1 lines · +20 tokens per session ead5953ded70
  8. 1mo ago Changed · +1 tokens per session d66c321fb6fd
  9. 1mo ago Changed · -3 lines · -88 tokens per session d427f289702b
  10. 2mo ago First seen · 59 lines · 956 tokens per session scan A 618afdda4490

Subscribe to this mod's changes

dsh-rewind AGENTS.md is an instructions file published in the GitHub repository SiriLee/dsh-rewind (241 stars, last pushed yesterday), licensed MIT. It adds 591 tokens to every session, about $0.0024 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-rewind AGENTS.md compared with instructions from other repositories

dsh-rewind AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dsh-rewind AGENTS.mdSiriLee/dsh-rewindInstructions file241yesterdayMITA591Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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