codex-sync

codex-sync is a skill for Claude Code, Codex from Walvez/dsh-codex-sync. It costs 40 tokens per session (936 once invoked), scanned B, original, MIT.

Commands for moving Codex conversations into and out of dsh-codex-sync, a session-sync tool. They also control which sessions and related settings are included.

In plain words
What is it for?
Use them to preview or import selected Codex chats, import all chats, attach workspaces, export chats, change sync settings, and check service health.
Why use it?
They help preview imports, avoid importing unwanted sub-agent sessions, and repeat imports safely without duplicating conversations. They also provide checks for the sync service and its connection to MCP.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; reads ~/.codex paths; mentions Codex.

Good fit Use them to preview or import selected Codex chats, import all chats, attach workspaces, export chats, change sync settings, and check service health.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/walvez/dsh-codex-sync/codex-sync
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.

Any agent
npx skills add Walvez/dsh-codex-sync --skill codex-sync
Clone the repo
git clone --depth 1 https://github.com/Walvez/dsh-codex-sync

Made for: Claude Code, Codex.

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 codex-sync

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/walvez/dsh-codex-sync/codex-sync"><img src="https://agentmods.dev/badge/skills/walvez/dsh-codex-sync/codex-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 936 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00040 $0.00936
Opus 5.5 $0.00016 $0.00374
Sonnet 5.5 $0.00008 $0.00187
Haiku 4.5 $0.00004 $0.00094

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

Security

Grade B, and why

codex-sync scanned grade B with 1 finding 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 3mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- `mcpMirror` — auto-mirror `[mcp_servers.*]` from `~/.codex/config.toml` (takes effect after DSH restart).
skills/codex-sync/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codex sync (this plugin)

You can drive dsh-codex-sync with slash commands. Prefer a dry-run before writing sessions.

Import Codex conversations

/import-codex --dry-run
/import-codex
/import-codex --include-subagents
/import-codex --ids codex-abc,codex-def
/import-codex --limit 20 --project my-app --since 2026-08-01
/import-all
/attach-workspaces

The composer Import from Codex button opens a picker: projects → chats, sub-agents nested under the parent thread, already-imported rows greyed out. Prefer that UI when the user is in the web app.

  • --dry-run prints [would-import] lines and writes nothing.
  • Default import skips Codex sub-agent threads (parent_thread_id). Add --include-subagents only if the user wants those too.
  • Already-imported ids are skipped (idempotent). Huge rollouts above maxSessionBytes are skipped.

Composer Sync ▾ → Import from Codex opens the picker. After a successful import the page reloads in ~2.5s so new chats appear.

Export DSH chats to Codex

Writes new Codex rollouts (new uuid, text only — not a resume of the original thread; every export creates a new copy and never overwrites original):

/export-codex --dry-run
/export-codex --ids sess-1,sess-2

Composer Sync ▾ → Export to Codex opens the picker over DSH sessions:

  • Filters: "From Codex" (showCodex, default off) and "Hide sub-agents" (hideSub, default on) filter toggles.
  • Codex-origin sessions: Only DSH-updated chats (dshUpdated=true, tagged "Updated in DSH" / "DSH 已续聊") are selectable. Unchanged or source-missing chats remain locked.
  • Sub-agents: Hidden by default and nested under parent sessions for organization. Selecting a child sub-agent exports it as a separate independent thread (not merged with parent).
  • Export copies: Exporting creates brand-new Codex rollouts and thread entries; original Codex conversations are never overwritten.

Settings (persisted in ~/.dsh/codex-sync.json)

Read the full file on GitHub · 83 lines

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. 3mo ago First seen · 83 lines · 40 tokens per session scan B bd67a61033a2

Subscribe to this mod's changes

codex-sync is a skill published in the GitHub repository Walvez/dsh-codex-sync (31 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 936 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

codex-sync compared with skills from other repositories

codex-sync next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-syncWalvez/dsh-codex-syncSkill311mo agoMITB40Claude Code, Codex
dsh-plugin-guidePerryLink/dsh-plugin-guideSkill748d agoApache-2.0A62Claude Code, Codex
dsh-onboardingpingfanfan/hello-dshSkill1112mo agoMITA60Claude Code, Codex
dsh-plugin-developmentw2112515/dsh-plugin-developmentSkill113mo agoMITA130Codex
wizardgongyijie85/mattpocock-skills-dshSkill3313d agoMITA58Claude Code, Codex
dingtalkdeepseek-ai/deepseek-harnessSkill289k3d agoMITA118Claude Code, Codex
feishudeepseek-ai/deepseek-harnessSkill289k3d agoMITA90Claude Code, Codex