Codex Sync logo

Codex Sync

Community
Walvez
codex-sync

Operate dsh-codex-sync from this session — preview and import Codex chats, toggle Skills/MCP/import settings, check MCP mirror health, install the reverse MCP bridge.

Overview

PublisherWalvez
Repositorydsh-codex-sync
Skill namecodex-sync
Stars
30
Forks
9
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Walvez on GitHub. Read the source before you install it.

Installation

Install the Codex Sync AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Walvez/dsh-codex-sync/tree/main/skills/codex-sync
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Walvez/dsh-codex-sync.git /tmp/dsh-codex-sync
mkdir -p .claude/skills
cp -r /tmp/dsh-codex-sync/skills/codex-sync .claude/skills/codex-sync
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Codex Sync in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Codex Sync on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Codex Sync is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Codex sync (this plugin)

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

Import Codex conversations

text
/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):

text
/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)

text
/codex-settings
/codex-setting <key> on
/codex-setting <key> off
/auto-import on
/auto-import off

Keys: enableImport, autoImport, enableInstructions, enableConfig, enableSkills, mcpMirror.

  • autoImport on — import incrementally at the next startup session.
  • enableSkills — live-mount ~/.codex/skills (edit a SKILL.md, next catalog scan picks it up).
  • mcpMirror — auto-mirror [mcp_servers.*] from ~/.codex/config.toml (takes effect after DSH restart).

MCP

text
/mcp-status

Shows each mirrored server and why (mounted / denied / silent / failed).

Reverse bridge (Codex can search/install DSH plugins):

bash
npx dsh-codex-sync codex-install
dsh-codex-sync doctor

How to help the user

  1. If they say they want to sync/import Codex chats: run /import-codex --dry-run, summarize counts, then /import-codex after they confirm.
  2. If they want it automatic: /auto-import on.
  3. If MCP tools from Codex are missing: /mcp-status, then explain deny lists / restart after mcpMirror.
  4. Do not invent extra flags. Do not import sub-agents unless asked.

Frequently asked questions

What does the Codex Sync AI skill do?

Operate dsh-codex-sync from this session — preview and import Codex chats, toggle Skills/MCP/import settings, check MCP mirror health, install the reverse MCP bridge.

Why use Codex Sync on TypingMind?

Because you install it once and use it with any model. Codex Sync is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Codex Sync in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Walvez/dsh-codex-sync/tree/main/skills/codex-sync. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Codex Sync?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Codex Sync?

As many as you like. As long as a model supports skills, you can use Codex Sync with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Codex Sync AI skill free?

Yes. It is published on GitHub by Walvez under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇