dsh-codex-sync: Instructions file for Codex

AGENTS.md

dsh-codex-sync AGENTS.md is an instructions file for Codex, OpenCode from Walvez/dsh-codex-sync. It costs 666 tokens per session, scanned A, original, MIT.

A two-way sync plugin that transfers Codex skills, instructions, sessions, and MCP settings to DeepSeek Harness, and adds a bridge for using DeepSeek tools from Codex. MCP is a standard way for AI agents to connect to external tools.

In plain words
What is it for?
Use it to install, inspect, test, and release the dsh-codex-sync package, or to connect Codex workspaces and tools with DeepSeek Harness.
Why use it?
It keeps related agent settings in sync between Codex and DeepSeek Harness and provides checks and tests for the connection.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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-codex-sync AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/walvez/dsh-codex-sync/agents-md"><img src="https://agentmods.dev/badge/instructions/walvez/dsh-codex-sync/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 666 This file is loaded in full into every session.
When invoked 666 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.00666 $0.00666
Opus 5.5 $0.00266 $0.00266
Sonnet 5.5 $0.00133 $0.00133
Haiku 4.5 $0.00067 $0.00067

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

Security

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 2mo 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 · 36 lines

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.js
  • cordis.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)。

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. 2mo ago First seen · 36 lines · 666 tokens per session scan A 3ba28a6d7fa9

Subscribe to this mod's changes

dsh-codex-sync AGENTS.md is an instructions file published in the GitHub repository Walvez/dsh-codex-sync (30 stars, last pushed 1mo ago), licensed MIT. It adds 666 tokens to every session, about $0.0027 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-codex-sync AGENTS.md compared with instructions from other repositories

dsh-codex-sync AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dsh-codex-sync AGENTS.mdWalvez/dsh-codex-syncInstructions file301mo agoMITA666Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode