dsh-migrate-codex
开发工具 活跃维护

dsh-migrate-codex

ChengxiuCDP/dsh-migrate-codex

提供/migrate-codex命令与codex-migration迁移技能,支持将Codex开发环境安全迁移到不同机器,操作便捷无需复杂配置,迁移过程不丢失环境配置与依赖数据,可快速完成开发环境的跨设备转移。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
Shell
主要语言
MIT
开源协议
13 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:ChengxiuCDP/dsh-migrate-codex
git clone https://github.com/ChengxiuCDP/dsh-migrate-codex.git
git clone git@github.com:ChengxiuCDP/dsh-migrate-codex.git
README.md main

dsh-migrate-codex

A DeepSeek Harness plugin for safely migrating a Codex environment between machines.

Capabilities

  • /migrate-codex prepare <dir>: package the whitelisted repos and dirty snapshots;
  • /migrate-codex verify <dir>: verify SHA256SUMS, bundle integrity, and credential exclusions;
  • /migrate-codex restore <dir>: restore onto a new machine (aborts if the target exists);
  • /migrate-codex restore-worktree <dir> <slug>: recreate one dirty worktree on demand;
  • Skill codex-migration: teaches the agent the full workflow, the safety red lines, and how to align Codex configuration with DeepSeek Harness.

Install

dsh plugin --profile <name> add <repo URL or npm package>
# restart the Profile to take effect

Usage

Ask in a DSH session: "verify and restore the codex-migration bundle on my desktop", or run:

/migrate-codex verify ~/Desktop/codex-migration
/migrate-codex restore ~/Desktop/codex-migration

Custom whitelist

The published version ships placeholder examples only (example-primary, ...). Put your real table in bin/whitelist.local.tsv (gitignored, never committed), four columns per row:

slug<TAB>role<TAB>source-path<TAB>required
my-main-repo    primary ~/my-main-repo  yes
  • CODEX_MIGRATE_TABLE: path to a whitelist file;
  • CODEX_MIGRATE_MAIN_SLUG: slug of the worktree-bearing main repo (default example-primary).

Safety design

  • Whitelisted repositories only;
  • git bundles carry commits but never .git/config (no remote credentials leave the machine);
  • SHA256SUMS integrity checks;
  • credential exclusion list (auth.json / .env* / private keys / certs / SQLite);
  • restore never overwrites an existing target and leaves no half-restored state on failure.

Roadmap

  • Turn hardcoded old-machine paths into runtime arguments;
  • Platform detection.

License

MIT