一键导入
codex-windows-fast-patch-skill
Guide agents to restore Codex Desktop local patches and feature toggles (Computer Use, plugins, Fast Mode) after upgrades on Windows
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide agents to restore Codex Desktop local patches and feature toggles (Computer Use, plugins, Fast Mode) after upgrades on Windows
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | codex-windows-fast-patch-skill |
| description | Guide agents to restore Codex Desktop local patches and feature toggles (Computer Use, plugins, Fast Mode) after upgrades on Windows |
| triggers | ["restore Codex Desktop patches after upgrade","fix Codex Fast Mode not working on Windows","repair Codex Computer Use missing helper","enable Codex plugins and marketplace","fix Codex browser_use or Chrome control disabled","restore Codex locale and language settings","patch Codex MSIX package on Windows","unlock Codex Any App computer control"] |
Skill by ara.so — Codex Skills collection.
This skill guides AI agents to restore local patches and feature toggles in Codex Desktop on Windows after upgrades invalidate them. It handles Fast Mode, Computer Use, plugins, browser control, locale settings, and feature gates.
codex-windows-fast-patch-skill provides PowerShell workflows and scripts to:
service_tier=priority) in both request paths and settings UIconfig.toml before overwritesPlatform: Windows only. Relies on MSIX package structure, PowerShell, Get-AppxPackage, makeappx.exe, signtool.exe, Windows environment variables, and Windows Computer Use helper paths.
Clone the repository and copy skill files to Codex:
$source = (Get-Location).ProviderPath
if (-not (Test-Path -LiteralPath (Join-Path $source 'SKILL.md'))) {
throw 'Run this command in codex-windows-fast-patch-skill repository root.'
}
$dest = Join-Path $env:USERPROFILE '.codex\skills\codex-windows-fast-patch'
New-Item -ItemType Directory -Force -Path $dest | Out-Null
Copy-Item -Force -LiteralPath (Join-Path $source 'SKILL.md') -Destination $dest
Copy-Item -Recurse -Force -LiteralPath (Join-Path $source 'agents') -Destination $dest
Copy-Item -Recurse -Force -LiteralPath (Join-Path $source 'scripts') -Destination $dest
Copy-Item -Recurse -Force -LiteralPath (Join-Path $source 'references') -Destination $dest
Restart Codex Desktop to reload skill metadata.
Re-applies all patches (Fast Mode, locale, browser gates, marketplace, Computer Use):
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\repatch-codex-windows.ps1"
Parameters:
-RegisterMarketplaceOnly: Only fix marketplace config without MSIX patching-SkipMarketplace: Skip marketplace registration-SkipComputerUse: Skip Computer Use file refreshFix plugin marketplace without touching MSIX:
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\repatch-codex-windows.ps1" -RegisterMarketplaceOnly
Install or verify Computer Use compatibility files:
# Install/repair
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\install-computer-use-local.ps1"
# Verify only (no changes)
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\install-computer-use-local.ps1" -VerifyOnly
Core patching logic for Fast Mode, locale, and browser gates:
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\patch_codex_fast_mode_windows_msix.ps1"
This script:
Get-AppxPackageresources/app.asar using npx asarmakeappx.exesigntool.exeCreate backup of Codex config, skills, MCP, and marketplaces:
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\manage-codex-backups.ps1" -Action Backup
List existing backups:
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\manage-codex-backups.ps1" -Action List
Restore from backup:
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\manage-codex-backups.ps1" -Action Restore -BackupPath "C:\path\to\backup.zip"
Backup options:
-IncludeDependencyDirs: Include node_modules, etc. (may be large)-IncludePluginCache: Include plugin cache directories-IncludeTmpBundledMarketplaces: Include .tmp\bundled-marketplacesUpdate skill from GitHub before use (called automatically by workflow):
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\update-skill-from-github.ps1"
Before modifying ~/.codex/config.toml, scripts automatically create timestamped backup in ~/.codex/backups/config/.
Local plugin marketplace registered in config.toml:
[plugin_marketplaces]
local = "file://C:/Users/YourUser/.codex/.agents/plugins"
Marketplace manifest structure:
~/.codex/.agents/plugins/
├── marketplace.json # Required root manifest
└── manifests/
├── plugin1.json
└── plugin2.json
Windows Computer Use helper paths in environment variables:
$env:COMPUTER_USE_HELPER_PATH = "C:\path\to\computer-use-helper.exe"
Or in Codex config:
[computer_use]
helper_path = "C:\\path\\to\\computer-use-helper.exe"
User reports: "Computer Use shows missing-helper-path error"
Agent should:
# Verify current state
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\install-computer-use-local.ps1" -VerifyOnly
# If verification fails, install/repair
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\install-computer-use-local.ps1"
Restart Codex Desktop after fix.
User reports: "codex plugin list throws marketplace manifest error"
Agent should:
# Repair marketplace only (safe to run in current Codex session)
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\repatch-codex-windows.ps1" -RegisterMarketplaceOnly
Check if ~/.codex/.agents/plugins/marketplace.json exists and is valid JSON.
User reports: "Fast Mode toggle missing or requests don't include service_tier=priority"
Agent should use external agent or PowerShell session (not current Codex Desktop):
# Run full repatch (will stop and reinstall Codex)
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\repatch-codex-windows.ps1"
After patching, verify in Codex Desktop:
/v1/responses and confirm service_tier=priority parameterUser reports: "Codex resets to English after restart despite language setting"
Agent should:
# Repatch includes locale/i18n fix
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\repatch-codex-windows.ps1"
Patch log should show: locale i18n patch result: patched or already-patched
User reports: "Chrome browser_use grayed out or browser pane missing"
Agent should:
# Repatch includes browser gate unlocking
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\repatch-codex-windows.ps1"
After restart, check Codex Desktop logs for:
browser_use_availability_resolved: available=true, reason=local-patched
Verify Chrome plugin:
codex plugin list
# Should show: chrome@openai-bundled - installed, enabled
Check native messaging host manifest exists at path referenced in registry or manifest file.
Before major Codex upgrade:
# Create full backup including dependencies
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\manage-codex-backups.ps1" -Action Backup -IncludeDependencyDirs
After upgrade issues, restore:
# List backups to find pre-upgrade timestamp
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\manage-codex-backups.ps1" -Action List
# Restore
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\manage-codex-backups.ps1" -Action Restore -BackupPath "C:\path\to\codex-backup-20260520-143022.zip"
After patching, capture network traffic in Codex Desktop:
// In browser DevTools or network capture
// Look for POST to /v1/responses or similar
// Request body should contain:
{
"service_tier": "priority",
// ... other params
}
Or check patch log output:
fast-mode UI patch result: patched
fast-mode request patch result: patched
cable-verification: service_tier=priority detected in request
# Check helper path in environment
$env:COMPUTER_USE_HELPER_PATH
# Or check Codex logs for
# computer_use_helper_path_resolved: C:\path\to\helper.exe
# Verify file exists
Test-Path $env:COMPUTER_USE_HELPER_PATH
# Check plugin
codex plugin list | Select-String "chrome"
# Expected: chrome@openai-bundled - installed, enabled
# Check native messaging host manifest
# Windows: Check registry key or manifest file referenced by Codex
# Should point to existing chrome-native-host.json
Real smoke test:
// In Codex Desktop, trigger browser control
// Should successfully read tab title like "Example Domain"
# Check marketplace.json exists
Test-Path "$env:USERPROFILE\.codex\.agents\plugins\marketplace.json"
# List plugins
codex plugin list
# Check config.toml
Get-Content "$env:USERPROFILE\.codex\config.toml" | Select-String "plugin_marketplaces"
# Should show: [plugin_marketplaces]
# local = "file://C:/Users/..."
Install Windows SDK or locate makeappx:
# Search Windows SDK paths
Get-ChildItem -Recurse -Path "C:\Program Files (x86)\Windows Kits" -Filter "makeappx.exe" -ErrorAction SilentlyContinue
# Add to PATH or update script with full path
Create and trust development certificate:
# Create certificate
$cert = New-SelfSignedCertificate -Type CodeSigningCert -Subject "CN=Codex Dev" -CertStoreLocation "Cert:\CurrentUser\My"
# Export and import to Trusted Root
Export-Certificate -Cert $cert -FilePath "codex-dev.cer"
Import-Certificate -FilePath "codex-dev.cer" -CertStoreLocation "Cert:\LocalMachine\Root"
Ensure npx and asar package available:
# Check Node.js installed
node --version
# Check asar
npx asar --version
# If missing, install
npm install -g asar
Restore from backup:
# Find backup
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\manage-codex-backups.ps1" -Action List
# Restore config only
$backupPath = "C:\path\to\backup.zip"
Expand-Archive -Path $backupPath -DestinationPath "$env:TEMP\codex-restore"
Copy-Item "$env:TEMP\codex-restore\config.toml" -Destination "$env:USERPROFILE\.codex\config.toml"
Or reinstall original Codex MSIX from Windows Store.
patched not already-patched (confirms changes were made)service_tier=priority for Codex modelservice_tier=priority in request bodySkill auto-updates require network access to https://github.com. If behind firewall or VPN:
# Manually update skill
cd $env:USERPROFILE\.codex\skills\codex-windows-fast-patch
git pull origin main
# Or re-run installation steps from fresh clone
Auto-update failures won't block skill usage; agent will continue with current local version.
If Codex uses CPA as upstream proxy, local service_tier=priority patch alone is insufficient. Configure CPA override rule:
gpt-4-0125-preview)service_tierpriorityThis ensures upstream processes requests via Fast/Priority path.
Run these from within current Codex Desktop session.
service_tier=priorityThese require MSIX/ASAR modification. Run from external PowerShell or different agent to avoid current Codex session stopping itself mid-operation.
User says: "Use codex-windows-fast-patch skill to check and fix Codex Desktop Fast Mode, locale, Chrome browser_use, plugin marketplace, and Computer Use on this Windows machine."
Agent should:
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\update-skill-from-github.ps1"
# Check Computer Use
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\install-computer-use-local.ps1" -VerifyOnly
# Check marketplace
Test-Path "$env:USERPROFILE\.codex\.agents\plugins\marketplace.json"
codex plugin list
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\codex-windows-fast-patch\scripts\repatch-codex-windows.ps1"
# Check patch log contains:
# - fast-mode UI patch result: patched
# - fast-mode request patch result: patched
# - locale i18n patch result: patched
# - browser-use gate patch result: patched
# Verify Fast Mode request
# Capture /v1/responses request and confirm service_tier=priority
# Verify browser availability
# Check Codex logs for browser_use_availability_resolved: available=true, reason=local-patched
# Verify Chrome plugin
codex plugin list | Select-String "chrome"
# Expected: chrome@openai-bundled - installed, enabled
# Verify native messaging host
# Check manifest path exists and points to valid chrome-native-host.json
# Smoke test browser control
# Try to read controlled tab title, expect "Example Domain" or similar
Note: These scripts are reference implementations and operation templates, not one-size-fits-all solutions. Before execution, agent should read SKILL.md, inspect current machine's Codex installation method, MSIX package paths, ASAR contents, signing tools, plugin directories, and Computer Use file status, then decide whether to execute, modify, or only reference the provided steps.
Convert attached object images into code-only, animation-ready procedural Three.js models through guided sculpting workflow
Create and manage AI video storyboard projects with automated asset generation through Codex Storyboard workspace
Continue-thinking middleware that detects and handles reasoning truncation in Codex/OpenAI Responses-compatible APIs
Desktop manager for OpenAI Codex CLI with prompt injection, provider switching, and TOML/Auth visualization
Inject unrestricted developer mode instructions into Codex CLI (GPT-5.5) to bypass content filters
Install and use TradingCodex to build Codex-native investment research workflows with fixed-role agents, order approval gates, and local Django service plane