dsh-maze: Instructions file for Codex

AGENTS.md

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

Project-specific instructions for maintaining and releasing a browser-based DeepSeek client plugin. They describe the code structure, testing command, build process, and how npm publishing relates to GitHub releases.

In plain words
What is it for?
Use them when working on this plugin's maze upload page, live data handling, tests, builds, or releases. The instructions are specific to the lamost423/dsh-maze project.
Why use it?
They give coding agents the project context needed to change the right files and avoid releasing mismatched versions. They also document how the plugin's browser page and live conversation data fit together.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lamost423/dsh-maze/agents-md"><img src="https://agentmods.dev/badge/instructions/lamost423/dsh-maze/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 604 This file is loaded in full into every session.
When invoked 604 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.00604 $0.00604
Opus 5.5 $0.00242 $0.00242
Sonnet 5.5 $0.00121 $0.00121
Haiku 4.5 $0.00060 $0.00060

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

Security

Grade A, and why

dsh-maze 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 · 19 lines

How it starts

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

AGENTS.md

Single-package DSH client plugin. Read README.md for what it does.

  • src/index.ts is the no-op Host half; the real plugin is the browser bundle from src/client/, wired through package.json's dsh.client and inserted by cordis.patch.yml.
  • src/client/maze-upload.html is a self-contained page (inline CSS/JS, no imports) rendered via <iframe srcDoc>. Parsing, idle-gap folding, layout, and playback all live in its inline script; tsdown.config.ts inlines it as a string and splices the fzstd UMD build into its /*__FZSTD_UMD__*/ placeholder at bundle time.
  • src/client/live-data.ts converts the live ConversationSnapshot into the same maze payload the page renders; verdicts settle only from arrived tool results (tests in tests/live-data.test.ts).
  • Verify with pnpm check (typecheck + vitest + build). Peers target the published @deepseek-ai/dsh-* package sets (currently 0.2.0-rc.2), not a harness checkout; the declared range is >=0.1.2-alpha.1 <0.3.0, because DSH's runtime disables any profile row whose @deepseek-ai/dsh* peers do not satisfy the running host version.
  • lib/ is tracked in git on purpose (see .gitignore): DSH's plugin manager packs a git dependency through package.json's files whitelist, so dsh plugin add github:lamost423/dsh-maze only works when the build output is committed. Run pnpm build and commit lib/ with any source change.

Releasing

npm is the primary distribution channel — a GitHub release without a matching npm publish means every npm install silently serves the old version. Both channels must move together.

  • pnpm release:status — compares package.json, the npm latest tag, and the newest GitHub release. Exits non-zero when they disagree. Run it after every release.
  • pnpm release:prep — guards (clean tree, version not already on npm, npm login still valid), then runs pnpm check, packs, verifies the tarball, and prints the two commands left to run.
  • The final npm publish and gh release create are manual: npm forces two-factor auth on publish and redacts the auth URL's credential from both stdout and its debug log, so an agent cannot complete it.
  • Pass the tarball as ./artifacts/<name>.tgz. Without the leading ./, npm reads it as a git shorthand and tries ssh://[email protected]/artifacts/..., which fails.

Read the full file on GitHub · 19 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 lines · +135 tokens per session b572c3c8646e
  2. 2mo ago First seen · 18 lines · 469 tokens per session scan A 3d6de3c147e9

Subscribe to this mod's changes

dsh-maze AGENTS.md is an instructions file published in the GitHub repository lamost423/dsh-maze (88 stars, last pushed 29d ago), licensed MIT. It adds 604 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-maze AGENTS.md compared with instructions from other repositories

dsh-maze AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dsh-maze AGENTS.mdlamost423/dsh-mazeInstructions file8829d agoMITA604Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot