dsh-doublecheck: Instructions file for Codex

AGENTS.md

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

Repository instructions for a DeepSeek coding harness plugin called `dsh-doublecheck`. They describe its plugin packages, verification workflow, policy gates, commands, and project layout.

In plain words
What is it for?
Use them when changing the Grill, Guard, or Invariant plugin areas, their commands and tools, or the verification state and review workflow.
Why use it?
They tell an agent where each part lives and which checks govern planning, test-driven development, execution, and adversarial review.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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-doublecheck AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/perrylink/dsh-doublecheck/agents-md"><img src="https://agentmods.dev/badge/instructions/perrylink/dsh-doublecheck/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,309 This file is loaded in full into every session.
When invoked 2,309 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.02309 $0.02309
Opus 5.5 $0.00924 $0.00924
Sonnet 5.5 $0.00462 $0.00462
Haiku 4.5 $0.00231 $0.00231

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

Security

Grade A, and why

dsh-doublecheck 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 · 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

Standalone DeepSeek Harness plugin repository (dsh-doublecheck). Development follows the dsh-plugin-guide skill and the official plugin contract; this file records repo-local decisions.

Layout

  • src/index.ts — package entry: the shared domain model and pure helpers. It is NOT a plugin; the installable plugin rows live at the ./grill and ./guard subpath exports (see cordis.patch.yml).
  • src/invariant.ts — the package-owned invariant companion; its standalone row loads via the ./invariant subpath export (reports write-path contradictions without the guard).
  • src/grill/index.ts — plugin row doublecheck-grill: bundled grill-requirements skill provider + the model-facing contract tools (doublecheck_skills, doublecheck_spec, doublecheck_report) and the v0.4 verification workflow.
  • src/guard/index.ts — plugin row doublecheck-guard: the policy gates (grill / tdd red-green / adversary review) on the tools/pre-execute and tools/post-execute waterfalls.
  • src/guard/command.ts — the /doublecheck status|report|on|off session command and the durable doublecheck/state fold.
  • src/guard/review.ts — adversary review orchestration (forked critic subagent, structured findings, honest "unavailable" degradation).
  • src/guard/gate.ts — the delivery quality gate (v0.7): the gate.* Schema config, fail-loud validation, the four-phase runner (deterministic requirements/tests folds + forked consistency/local reviewers), the dsh-auto-review weak dependency (durable autoReview/* verdict records; degrade-to-local), the /gate status|run|config command, and the durable doublecheck/gate fold. GateConfigSchema is the whole guard row's one live field (Config.gate, marked .volatile() in src/guard/index.ts), so it is the row's editable settings card; the row reads the resolved block once at load, because gate.enabled decides whether the turn-boundary notice is installed.
  • src/guard/prose.ts — the injected reminder/deny/review/gate prose, per-language (en / zh); gate notices open with a one-sentence role statement and stay short.
  • src/domain/ — pure folds and vocabularies shared by both rows (stages, evidence, vagueness, vocabulary, report, gate). No Cordis imports. src/domain/evidence.ts owns ptcSettle(), the one normalizer for settled PTC sub-dispatch events.
  • src/events.ts — process-local Cordis event vocabulary (@mode emit, observability-only) + the durable doublecheck/state and doublecheck/gate SessionEventMap members + this package's MessageSourceMap members: the notice kind dsh-doublecheck (mixed with ContextFormed) and the structured doublecheck-review / doublecheck-gate records. noticeSource() and noticeSummaryOf() live here so both guard modules build a notice, and the fold reads one back, through a single definition.
  • skills/ — four bundled discipline skills (grill-requirements, red-green-tdd, delivery-review, delivery-proof), each <name>/SKILL.md in the generic Agent Skills layout.
  • tests/ — vitest; real Cordis Context with scripted services (subagents/commands) and synthetic durable events; tests/fixtures/ holds real-transcript regression logs.
  • scripts/ — session-log tooling (decode-session, extract-fixture, scan-sessions; all take an explicit log/directory path and never read the real session store by default) + the gates and release helpers (assert-profile, check-readme-sync, verify-skills, verify-self-contained, verify-artifacts, fix-dts, release-notes, smoke-insert / verify-block / verify-report / verify-review / verify-tdd patch overlays).

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. 1mo ago Changed · +23 tokens per session 89b2e5305612
  2. 1mo ago Changed 204ec027a58b
  3. 1mo ago Changed · +2 lines · +430 tokens per session 3617e424a738
  4. 1mo ago Changed · -2 tokens per session cad661f6b0c1
  5. 1mo ago Changed · +1 tokens per session ce0e161c866c
  6. 1mo ago Changed · +1 lines · +335 tokens per session ceffab2536d2
  7. 2mo ago First seen · 46 lines · 1,522 tokens per session scan A 46d095844be7

Subscribe to this mod's changes

dsh-doublecheck AGENTS.md is an instructions file published in the GitHub repository PerryLink/dsh-doublecheck (59 stars, last pushed 3d ago), licensed Apache-2.0. It adds 2,309 tokens to every session, about $0.0092 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens