dsh-codex-sync AGENTS.md

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

Install

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.

agentmods
npx agentmods add instructions/walvez/dsh-codex-sync/agents-md
Clone the repo
git clone --depth 1 https://github.com/Walvez/dsh-codex-sync

Made for: Codex, OpenCode.

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. Scan, not verified.
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 $0.00666 $0.00666
Opus 5 $0.00333 $0.00333
Sonnet 5 $0.00133 $0.00133
Haiku 4.5 $0.00067 $0.00067

Measured 2d ago against content hash 3ba28a6d7fa9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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 · 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. 2d 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 (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.