dsh-auto-review: Instructions file for Codex

AGENTS.md

dsh-auto-review AGENTS.md is an instructions file for Codex, OpenCode from PerryLink/dsh-auto-review. It costs 3,713 tokens per session, scanned A, original, Apache-2.0.

A repository instruction file for coding agents working on a DeepSeek Harness plugin. It documents the project layout, coding rules, build steps, and documentation requirements.

In plain words
What is it for?
Use it to guide edits, builds, reviews, and documentation work in the dsh-auto-review plugin repository.
Why use it?
It gives coding agents the local rules they need to make changes that fit the plugin contract and project structure.

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-auto-review's own configuration. It tells Codex and OpenCode how to work on dsh-auto-review 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-auto-review configures →

Reuse

Borrowing it

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

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-auto-review AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/perrylink/dsh-auto-review/agents-md"><img src="https://agentmods.dev/badge/instructions/perrylink/dsh-auto-review/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,713 This file is loaded in full into every session.
When invoked 3,713 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.03713 $0.03713
Opus 5.5 $0.01485 $0.01485
Sonnet 5.5 $0.00743 $0.00743
Haiku 4.5 $0.00371 $0.00371

Measured 11d ago against content hash 9e8611426673, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dsh-auto-review 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 11d 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 · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 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-auto-review). Development follows the dsh-plugin-guide skill and the official plugin contract; this file records repo-local decisions.

Layout

  • src/index.ts — function-plugin contract (name/inject/Config/apply; NO default export — the Loader unwraps exports.default ?? exports).
  • src/config.ts — Schemastery schema + explicit resolveConfig (no hidden ?? default in run() paths).
  • src/runtime.ts — approval/request answerer, tools/post-execute deny-reason injection, /auto-review command.
  • src/review.ts — reviewer subagent orchestration, prompt, sanitization, verdict parsing.
  • src/phocinae.ts — the optional local non-generative reviewer backend: the POST /v1/systemone client for Phocinae-Largha-150M-v1 (one measured harm question with described options, shell-command extraction, calibrated-confidence floor, protocol validation, veto/triage mapping: destructive denies, risky/unsure escalates, harmless+confidence allows). review.ts selects it from reviewerBackend and builds the redacted evidence.
  • src/isolation.ts — the reviewer child's context firewall: the ReviewerChildren registry (prompt announcement before subagents.start, id latch afterwards — the child's first step races the start's resolution) and the agent/pre-step allow-list over message SOURCES that keeps workspace instruction files and third-party injections out of the reviewer's steps. The loop re-admits its own runtime-context snapshot AFTER this seam; the firewall does not remove it, and no doc may claim otherwise.
  • src/events.ts — autoReview/state + autoReview/verdict + autoReview/circuit + autoReview/override + autoReview/rejection SessionEventMap members (declaration merging), pure folds, the StateAppend/VerdictAppend/CircuitAppend/OverrideAppend/RejectionAppend surfaces that request the envelope's ignorable: true marker, and the marker-free plain*ResultText builders for audit-disabled hosts.
  • src/call-id.ts — dual-ruler call-id brand (ToolExecution['callId'] from dsh-tools): host master renamed the dsh-llm CallId brand to ToolCallId, so the package derives the brand locally instead of naming either line's brand.
  • src/session-message.ts — the tool-result shape adapter: reads the V4 first-class role:'tool' message AND the released-V3 tool-result wrapper. Read-only compatibility — this package never WRITES the retired shape (the host produces tool/result rows), and the V4 admission path refuses a wrapper outright.
  • src/message-source.ts — this package's producer-owned message source kind ('auto-review'), declared by module augmentation because the host's MessageSourceMap has no catch-all plugin kind and the durable-log admission path refuses one.
  • src/audit.ts — host ignorable-marker capability detection (isMarkedAuditEvent, isUnmarkedHostVersion, peerSessionVersion), the shared seam every audit append gates on.
  • src/messages.ts — /auto-review command strings in en/zh (the language config selects the table).
  • src/projection.ts + src/projection-types.ts — the autoReview session-projection unit (host fold + wire schema) and its pure-type outlet (zero value imports, so client programs never drag the host chain). Registered in apply whenever the host provides the session-projection capability (feature-detected: the answerer must work without it).
  • src/client/ — browser half: the session-header review panel (ReviewPanel.tsx), locale dictionaries, scoped stylesheet, and the client-plugin entry (contract: name = package name, inject, apply(ctx); the bundle follows the shell's window.__ModuleLoader__.load handshake).
  • src/invariant.ts — invariant companion, exported as dsh-auto-review/invariant. Shipped commented-out in the bundle patch: it needs the invariants service, which spine compositions (headless/ACP) provide but the plain web profile does not.
  • test/ — vitest; real Context + real Session/ApprovalService/InvariantRegistry from the pinned 0.2.1-rc.2 / 0.2.1-alpha.1 dev peers (the test suite's whole @deepseek-ai/dsh-* graph is pinned to the 0.2.1 line in pnpm-workspace.yaml; the node faces leave every @deepseek-ai/ specifier external, so the runtime resolves them from the host profile and carries no runtime dsh-* dependencies), scripted subagent/commands/tools mocks. Only direct dependencies can be pinned in package.json (pnpm 11 ignores a pnpm field there), and autoInstallPeers otherwise satisfies peer ranges from the graph.
  • fixtures/ — replayable session logs (invariant specs) + config examples. Fixtures are FROZEN old-line artifacts on purpose: rewriting them to the current shape would stop them testing the upgrade path a real stored log takes.
  • scripts/loader-runner.mjs re-throws the first FiberState.FAILED loader row's error. Under loader 1.0.4 + cordis 4.0.3 a rejected row no longer fails loader.await() (the tree uses Promise.allSettled and reports through ctx.logger.error, which an unequipped composition swallows), so without the re-throw the negative composition regressions pass on a downstream symptom instead of the real reason. DSH_LOADER_RUNNER_NO_RETHROW=1 disables it for re-measurement only.

Read the full file on GitHub · 64 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. 11d ago Changed · +172 tokens per session 9e8611426673
  2. 12d ago Changed · +2 lines · +263 tokens per session fbbc319a1f78
  3. 19d ago Changed · +17 tokens per session ac331fd7967a
  4. 1mo ago Changed · +1 lines · +249 tokens per session 2cb2219de564
  5. 1mo ago Changed 3f3de2dd59d9
  6. 1mo ago Changed · +3 lines · +399 tokens per session d7a4ecf80b90
  7. 1mo ago Changed · +8 tokens per session a17923c1eff0
  8. 1mo ago Changed · +19 tokens per session bda5d80b0d2c
  9. 1mo ago Changed · +37 tokens per session b3c009ecdb37
  10. 1mo ago First seen · 58 lines · 2,549 tokens per session scan A e9074d5de544

Subscribe to this mod's changes

dsh-auto-review AGENTS.md is an instructions file published in the GitHub repository PerryLink/dsh-auto-review (247 stars, last pushed yesterday), licensed Apache-2.0. It adds 3,713 tokens to every session, about $0.0149 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-auto-review AGENTS.md compared with instructions from other repositories

dsh-auto-review AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dsh-auto-review AGENTS.mdPerryLink/dsh-auto-reviewInstructions file247yesterdayApache-2.0A3,713Codex, 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