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.
curl -O https://raw.githubusercontent.com/xiajiajun516/dsh-config-manager/main/AGENTS.mdgit clone --depth 1 https://github.com/xiajiajun516/dsh-config-managerWrote 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.
[](https://agentmods.dev/instructions/xiajiajun516/dsh-config-manager/agents-md)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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](落位见 skillchangelog-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 11minimumReleaseAge会让@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/。
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.
- 2d ago Changed · +2 lines · +211 tokens per session 201c697c8c68
- 5d ago Changed · +2 lines · +184 tokens per session ccea18675848
- 9d ago Changed · +1 tokens per session f2c389c08718
- 10d ago Changed · -13 lines · -718 tokens per session 5972c67f6a10
- 12d ago Changed · +1 lines · +110 tokens per session a76d93b5e49f
- 13d ago Changed · -66 lines · -1,522 tokens per session 44c34d13b25c
- 16d ago Changed · +2 lines · -25 tokens per session 9129fcc73f90
- 20d ago Changed · +3 lines · -2 tokens per session c211b23e4b48
- 22d ago Changed · +3 lines · +329 tokens per session e7759d5f220b
- 23d ago First seen · 211 lines · 8,333 tokens per session scan A c7a46bc78e0f
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.
dsh-config-manager AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dsh-config-manager AGENTS.mdxiajiajun516/dsh-config-manager | Instructions file | 301 | 2d ago | MIT | A | 6,901 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 275k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |