Patch scripts for the Windows Codex desktop app.
One script creates a writable copy of the app (untouched by patches); the others apply individual patches to that copy. The Microsoft Store install is never modified, the original app.asar is backed up, and every edit is an equal-length byte patch that stops with an error if the bundle layout is not recognized.
python clone_codex_app.py
python patch_codex_remote_control.py
python patch_codex_review_summary.pyThe copy is built under %USERPROFILE%\codex-hacked-app with a Codex Hacked desktop shortcut. Patch scripts are safe to re-run — already-applied patches are skipped. After a Store update, re-run all three.
Creates the writable copy (no patches applied yet) and a versioned backup of the original app.asar. --launch also restarts Codex into the copy.
Enables Settings → Connections → Control other devices (openai/codex#28919). Lifts the feature gate that hides the controller tab and replaces the macOS-only device-key loader with a small JavaScript fallback (P-256 keys, Node crypto). Private keys are stored in ~/.codex/remote-control-device-keys.windows.json, encrypted with Windows DPAPI (current user).
Disables the Changes/review-summary diff panel (openai/codex#30820). The panel eagerly diffs restored workspaces in the background and can stall the machine with Git CPU/IO spikes. The patch makes it return an empty result, so the panel shows +0 -0.
- Unsupported. Use at your own risk.
- The remote-control device key can be decrypted by any process running as your Windows user. Do not sync or share
remote-control-device-keys.windows.json. - The patched copy does not auto-update. Keep using the Store app for updates, then re-clone and re-patch.