Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/xiajiajun516/dsh-config-manager/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.svg" alt="Measured on agentmods" 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.04292 | $0.04292 |
| Opus 5 | $0.02146 | $0.02146 |
| Sonnet 5 | $0.00858 | $0.00858 |
| Haiku 4.5 | $0.00429 | $0.00429 |
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 today.
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 — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — DSH Config Manager 仓库协作指南
完整架构/测试矩阵/限制见
DEVELOPERS.md;用户文档见README.md;UI 唯一权威见DESIGN.md。 本文只写改动前必知的隐性约定与坑。
🌐 语言
与用户交流一律中文;代码注释/commit/文档以中文为主,技术术语可保留英文。
📦 概览
- 用途:DSH 配置的备份/导出/导入/迁移/远程同步/配置市场,双面 Cordis 插件。
- 技术栈:TS 5.9(strict +
verbatimModuleSyntax+noUncheckedIndexedAccess)、Node≥22(host)、React 18 + CSS Modules(web)、node:test零依赖、tsdown + lightningcss 打包 client。 - 样式:CSS Modules 唯一样式表
src/client/config-manager.module.css;颜色/字体/阴影全走 DSH--dsw-*变量;禁止 Tailwind/CSS-in-JS/Sass/UI 库/图标库/动画库。
🗂️ 结构与分层
src/index.ts host 入口(name='config-manager';/api/dsh-config-manager/*,约2800行)
src/core/ 引擎(exporter/importer/restore/rollback/run-registry/plugin-cli),与DSH解耦(ConfigAdapter/HostContext+内存mock)
src/schema/ 类型/Manifest/版本(CURRENT_SCHEMA_VERSION=1)
src/security/ secret-scanner/redaction/zip-security/integrity/encryption(scrypt+AES-256-GCM)
src/adapters/ 13适配器(settings/ui/providers/plugins/mcp/prompts/skills/agentPresets/workspaces/credentials/pluginFiles/sessions/self)
src/sync/ SyncEngine+Git/WebDav+AutoSyncScheduler+config/state/history/sync-selection
src/market/ GitMarketReader+index-parser+security校验+builtin;github-repos.ts+my-repo.ts+git-file-writer.ts
src/migrations/ schema迁移链(registry+v1→v2占位)
src/profiles/ ProfileManager(保存/切换带Preview+快照+回滚)
src/ui/ 框架无关UI逻辑(纯函数/控制器,无React,node可测) ← 业务逻辑必须在此
src/utils/ paths/zip/hashing/json/logger
src/client/ React壳(浏览器半) ← 只做装配
tests/ 集成测试(node --test);docs/design/ 设计文档
UI 分层铁律
- 逻辑放
src/ui/(纯函数/控制器)——禁止在 React 组件里写可测试业务逻辑。 - React 壳只装配(
src/client/组件只渲染+交互状态,模型来自src/ui/)。
页面落位(src/client/)
- 五 tab 容器:
index.ts+ConfigManagerSection.tsx(Export/Import/Snapshots/Sync/Market) - 导出
export/ExportView.tsx;导入九步import/ImportWizardView.tsx(+ConflictList/PathMappingForm/import-file-select);快照snapshots/SnapshotsPanel.tsx - 历史
history/HistoryPanel.tsx;同步sync/SyncSettingsView.tsx(+SyncConfirmView/SyncHistoryView/sync-view);市场market/MarketPanel.tsx(+MyConfigsView/my-configs-view/my-configs-api);咨询consult/ConsultCard.tsx - 共享原语
common/ui.tsx(Button/Badge/Banner/Card/Spinner/Field/SectionTitle/Empty/Checkbox)+common/ErrorBanner.tsx/ProgressBar.tsx/ReportView.tsx - 状态中枢
run-store.ts(模块级单例+sessionStorage 白名单);数据访问api.ts/sync/sync-api.ts/market/market-api.ts;文案字典locales.ts/sync-locales.ts/market-locales.ts(zh 源/en 镜像) - 样式全在
src/client/config-manager.module.css
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.
- today Changed · -126 lines · -3,088 tokens per session 71b355714675
- 5d ago First seen · 299 lines · 7,380 tokens per session scan A 22ec92663156
dsh-config-manager AGENTS.md is an instructions file published in the GitHub repository xiajiajun516/dsh-config-manager (79 stars, last pushed 2d ago), licensed MIT. It adds 4,292 tokens to every session, about $0.0215 per session on Opus 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.
Other instructions, from other repositories
DSH-better-sidebar AGENTS.md
AGENTS.md instructions for omdsh-dev/DSH-better-sidebar, covering dsh-better-sidebar 仓库规则(agents), 1. 仓库硬约束(必须遵守), 2. ci 挂载冒烟(plugin-mount job / pnpm test:mount), 3. dsh 0.1.2 适配要点(0.1.2-rc.1+ 基线) and 4. npm 发版(github release → npm publish).
causal-memory CLAUDE.md
Claude Code instructions for JingxuanC/causal-memory, covering causal memory mcp integration, causal memory integration, after acting on a decision and observing the result, when something fails unexpectedly and when a recorded lesson turns out to be wrong.
dsh-industry-research AGENTS.md
AGENTS.md instructions for PerryLink/dsh-industry-research, covering agents.md, layout, hard rules applied here, checks and release.
dsh-checkpoint-rewind AGENTS.md
AGENTS.md instructions for PerryLink/dsh-checkpoint-rewind, covering agents.md, 仓库布局:发布面 / 本地工程面, 命令, 提交纪律 and dsh 插件约束(红线).
star-dsh-desktop AGENTS.md
AGENTS.md instructions for dabaicai001/star-dsh-desktop, covering agents.md — starhub 协作指引, 项目是什么, 架构一句话, 目录结构 and 技术栈速查.
dsh-agent-plugins-market AGENTS.md
AGENTS.md instructions for Sivan757/dsh-agent-plugins-market, covering agents.md, repository layout, commands, conventions and editing these instructions.