Prompt file imported from SpreadZhao/codex-ecc (
.codex/prompts/ecc-auto-update.md). Fill in{{CLAUDE_PLUGIN_ROOT}}before use. Copyright stays with the author.
ECC Command Prompt: /auto-update
Source: /nix/store/7bmy0z0ymx3hgjbhiiixxi0f43djs56c-source/commands/auto-update.md
Use this prompt to run the ECC auto-update workflow in Codex.
Auto Update
Update ECC from its upstream repo and regenerate the current context's managed install using the original install-state request.
Usage
# Preview the update without mutating anything
ECC_ROOT="{{CLAUDE_PLUGIN_ROOT}}try{for(var g of ['ecc','everything-claude-code']){var b=p.join(d,'plugins','cache',g);for(var o of f.readdirSync(b,{withFileTypes:true})){if(!o.isDirectory())continue;for(var v of f.readdirSync(p.join(b,o.name),{withFileTypes:true})){if(!v.isDirectory())continue;var c=p.join(b,o.name,v.name);if(f.existsSync(p.join(c,q)))return c}}}}catch(x){}return d})();console.log(r)")}"
node "$ECC_ROOT/scripts/auto-update.js" --dry-run
# Update only Cursor-managed files in the current project
node "$ECC_ROOT/scripts/auto-update.js" --target cursor
# Override the ECC repo root explicitly
node "$ECC_ROOT/scripts/auto-update.js" --repo-root /path/to/everything-claude-code
Notes
- This command uses the recorded install-state request and reruns
install-apply.jsafter pulling the latest repo changes. - Reinstall is intentional: it handles upstream renames and deletions that
repair.jscannot safely reconstruct from stale operations alone. - Use
--dry-runfirst if you want to see the reconstructed reinstall plan before mutating anything.
