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/walvez/dsh-codex-sync/agents-mdgit clone --depth 1 https://github.com/Walvez/dsh-codex-syncWhat 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 | $0.00666 | $0.00666 |
| Opus 5 | $0.00333 | $0.00333 |
| Sonnet 5 | $0.00133 | $0.00133 |
| Haiku 4.5 | $0.00067 | $0.00067 |
Grade A, and why
dsh-codex-sync 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.
What it actually says
AGENTS.md — dsh-codex-sync
定位
一站式双向同步插件:把 OpenAI Codex 的技能/指令/会话/MCP 配置同步进 DeepSeek Harness (dsh),并给 Codex 安装反向 MCP 桥。npm 包 dsh-codex-sync,GitHub Walvez/dsh-codex-sync。
怎么跑
npm test # 必检门禁(host 冒烟 + client SSR + reader 单测)
node bin/dsh-codex-sync.js doctor # 运行时体检
发布流程(用户硬性规则):本地 npm test 全绿 → 装 tarball 到 web profile 让用户实测验收 → 用户确认后才推 GitHub → 再发 npm(详见 docs/RELEASE.md)。
技术栈
- dsh bundle 插件:
dsh.bundle.patch+dsh.client({inject, platform:"web"}),exports["./client"] - client bundle 手写 CJS:
window.__ModuleLoader__.load({id, factory}),React 用 require + createElement(无 JSX/构建) - Cordis 插件模型(inject/effect/on),node:test 单测,纯 JS 无 TS
目录与约定
lib/index.js— host 插件入口(inject: systemPrompt/commands;skills/sessionPersistence/workspaceRegistry 用 ctx.get 可选读)lib/— bridge 指令注入 / skill-provider / import-service / codex-reader / convert / dsh-writer / attach-workspaces / mcp 镜像 / state 持久化 / client.jscordis.patch.yml— bundle patch(insert 行,config 默认空)examples/web-profile.cordis.patch.yml— 生产实测挂载方式:dependencies + insert 行,不要同时列进dsh.profile.bundles(duplicate loader entry id 崩溃,2026-08 实踩)- 系统块过滤在
codex-reader.mjs(SYSTEM_BLOCK + AGENTS_MD_BLOCK),改块清单要同步 test/codex-reader.test.mjs - 已导入会话在
~/.dsh/sessions/<workspace>/codex-<uuid>/,zstd 压缩,删除后可重导(导入幂等)
当前状态
v0.6.1 已发布(npm latest + GitHub main 同步)。已实现:技能桥接、指令/配置注入、会话导入(幂等/自动挂工作区/控制块剥离)、双向 MCP(自动镜像 + codex-install 反向桥)、composer 同步设置菜单、autoImport 持久化。
下一步:opencode/pi/claude-code 会话源;市场详情页截图;发布自动化。已知取舍:client 徽章读 localStorage(settings 通道对第三方命名空间封闭,勿再走 settingsScope)。
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 First seen · 36 lines · 666 tokens per session scan A 3ba28a6d7fa9
dsh-codex-sync AGENTS.md is an instructions file published in the GitHub repository Walvez/dsh-codex-sync (25 stars, last pushed 6d ago), licensed MIT. It adds 666 tokens to every session, about $0.0033 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-mcp-panel AGENTS.md
Instructions for PerryLink/dsh-mcp-panel, covering agents.md, layout, hard rules applied here, config and build.
dsh-pihuo-plugins AGENTS.md
Instructions for xun404/dsh-pihuo-plugins, covering agents.md, 技能在哪, 对照源码 and 站立约束.
dsh-pihuo-plugins CLAUDE.md
Instructions for xun404/dsh-pihuo-plugins: Follow AGENTS.md. Plugin skills live in .agents/skills/.
dsh-web AGENTS.md
AGENTS.md instructions for zhu1090093659/dsh-web, covering dsh-web repository instructions, repository layout, common commands, repository rules and development workflow.
dsh-TUI AGENTS.md
AGENTS.md instructions for ccch1mneyyy/dsh-TUI, covering agents.md, 仓库布局, 命令, 上游边界与契约 and 约定与红线.
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-alpha 适配要点(alpha 通道) and 4. npm 发版(github release → npm publish).