dsh-config-manager: Instructions file for Codex

AGENTS.md

dsh-config-manager AGENTS.md is an instructions file for Codex, OpenCode from xiajiajun516/dsh-config-manager. It costs 6,901 tokens per session, scanned A, original, MIT.

Repository instructions for DSH Config Manager, a plugin that backs up, restores, migrates, synchronizes, and shares DSH configuration. They describe the project structure, coding language, interface layers, and design rules.

In plain words
What is it for?
Use them when developing or modifying the configuration manager's core logic, synchronization, migration, market features, or web interface.
Why use it?
They show where different kinds of changes belong and identify the repository's required conventions for code, tests, styles, and documentation. This helps avoid putting work in the wrong layer.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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-config-manager AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/xiajiajun516/dsh-config-manager/agents-md"><img src="https://agentmods.dev/badge/instructions/xiajiajun516/dsh-config-manager/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,901 This file is loaded in full into every session.
When invoked 6,901 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.06901 $0.06901
Opus 5.5 $0.02760 $0.02760
Sonnet 5.5 $0.01380 $0.01380
Haiku 4.5 $0.00690 $0.00690

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

Security

Grade A, and why

dsh-config-manager 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 2d 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 · 145 lines

How it starts

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

AGENTS.md

只放硬判据:证据与实测 → docs/lessons/<域>.md;机制细则 → DEVELOPERS.md;UI → DESIGN.md;对外契约 → docs/spec/。 加规则:先在 docs/lessons/<域>.md 写透证据,再回下面对应域补一行判据 + 指针,不另起小节。与代码冲突以代码为准,并当轮修本文件。 预算:≤28 KiB、单行 ≤400 B —— node scripts/check-agents-budget.mjs。

Rules

通用(任何改动)

  • 验证顺序:npm run typecheck → npm test →(动 client/样式)npm run build →(大改)npm run smoke;TEMP/TMP 只给 build/install(→ .tmp/buildtmp,prepare 也算),npm test 用系统 TEMP(判据 → docs/lessons/git-and-release.md);无 lint/format,typecheck 兜底。
  • 版本号按 SemVer 判定:修复 = PATCH、兼容新增 = MINOR、破公开契约 = MAJOR;0.1.z 只放修复,功能进 MINOR;判据与历史保留 → docs/maintenance/versioning.md。
  • 版本四处同步:package.json.version ≡ src/index.ts 的 PLUGIN_VERSION ≡ package-lock.json 根 version 与 packages[""].version ≡ docs/spec/compat-matrix.md 顶部版本声明行;tests/packaging-contract.test.ts 的 V-1 钉前三处,声明行由 scripts/check-doc-versions.mjs 钉住(npm version 不会改 PLUGIN_VERSION)。
  • 发版:打 tag v* push 后全自动(阶段表 → DEVELOPERS.md);前置 = 发布前检查清单(docs/maintenance/versioning.md §10)+ CHANGELOG.md 顶部亮点段;发布成功后按 .dsh/issue-ledger.md 的 awaiting-release 行回版本号并标 fixed。
  • 用户可见的功能/行为/修复同轮进 CHANGELOG.md 的 ## [Unreleased](落位见 skill changelog-writing)。
  • git:工作副本 origin 每次跟随 repoUrl(含 --push,不一致即 set-url);同一工作副本操作一律经 GitTransport.withWorkdir();拉取只许 fetch + merge --ff-only,禁 git pull(坏 FETCH_HEAD ⇒ SAFE MODE)。
  • 删源文件前先 git status --porcelain <路径>:见 ?? 必须停下;禁 git checkout -- <文件> 回滚,撤销改动用针对性 edit 反向。
  • 只读端点必须有界:取值体碰不可控依赖(credentials 服务、子进程、工作副本自检、外部 HTTP)一律 withTimeout + 明确错误码;客户端首屏不得让单一慢请求垄断骨架。
  • 只读端点别在 GET 里 spawn 外部进程:同一事实被反复索取(首页/切页/轮询)改「按需 detail + 短 TTL 缓存」,缓存 key 含 repoUrl,写路径经 withWorkdir 失效。
  • 锁等待也是不可控依赖:只读自检自带 1.5 s 短上限,超时变成「冲突/可重试」错误码;锁回收先判 holder 进程存活,判不了才退回 mtime;等待上限要覆盖进程内链上排队。
  • EOL 由根 .gitattributes 钉死,源码字面量守卫必须在读取入口折 LF;pnpm 11 minimumReleaseAge 会让 @latest 装旧版 —— 用精确版本或设 0。
  • import 一律带 .ts;import type 强制(verbatimModuleSyntax);类型合并用 declare module + import type{}。
  • 依赖:运行时只有 js-yaml(peer 是 DSH 官方包);不加 UI/CSS/图标/动画/工具库,也不引入已准入库的同类替代品;新增后同步 package.json + package-lock.json(两处 + 根对象)。
  • 复用优先:新建 Component/Hook/Utility/Style/Type/API 前 ①Reuse ②Extend ③Refactor ④Create;查库序 src/client/common/* → src/ui/* → src/core/* → src/utils/* → src/security/* → DESIGN.md。
  • 根目录只放对外文档(README*/CHANGELOG/SECURITY/LICENSE)与协作规范,其余进 docs/。

Read the full file on GitHub · 145 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. 2d ago Changed · +2 lines · +211 tokens per session 201c697c8c68
  2. 5d ago Changed · +2 lines · +184 tokens per session ccea18675848
  3. 9d ago Changed · +1 tokens per session f2c389c08718
  4. 10d ago Changed · -13 lines · -718 tokens per session 5972c67f6a10
  5. 12d ago Changed · +1 lines · +110 tokens per session a76d93b5e49f
  6. 13d ago Changed · -66 lines · -1,522 tokens per session 44c34d13b25c
  7. 16d ago Changed · +2 lines · -25 tokens per session 9129fcc73f90
  8. 20d ago Changed · +3 lines · -2 tokens per session c211b23e4b48
  9. 22d ago Changed · +3 lines · +329 tokens per session e7759d5f220b
  10. 23d ago First seen · 211 lines · 8,333 tokens per session scan A c7a46bc78e0f

Subscribe to this mod's changes

dsh-config-manager AGENTS.md is an instructions file published in the GitHub repository xiajiajun516/dsh-config-manager (301 stars, last pushed 2d ago), licensed MIT. It adds 6,901 tokens to every session, about $0.0276 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-config-manager AGENTS.md compared with instructions from other repositories

dsh-config-manager AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dsh-config-manager AGENTS.mdxiajiajun516/dsh-config-managerInstructions file3012d agoMITA6,901Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode