agent/codex/code/commands/refactor.md
Snider 466fe9f5a6 feat(codex): mirror claude plugins and ethics modal
Summary:\n- added Codex marketplace registry plus awareness/ethics/guardrails sub-plugins\n- mirrored Claude plugin commands/scripts/hooks into codex api/ci/code/collect/coolify/core/issue/perf/qa/review/verify\n- embedded Axioms of Life ethics modal, guardrails, and kernel files under codex/ethics\n- added Codex parity report, improvements list, and MCP integration plan\n- extended Gemini MCP tools and docs for Codex awareness
2026-02-05 20:13:01 +00:00

723 B

name description args
refactor Guided refactoring with safety checks <subcommand> [args]

Refactor

Guided refactoring with safety checks.

Subcommands

  • extract-method <new-method-name> - Extract selection to a new method
  • rename <new-name> - Rename a class, method, or variable
  • move <new-namespace> - Move a class to a new namespace
  • inline - Inline a method

Usage

/core:refactor extract-method validateToken
/core:refactor rename User UserV2
/core:refactor move App\\Models\\User App\\Data\\Models\\User
/core:refactor inline calculateTotal

Action

This command will run the refactoring script:

~/.claude/plugins/code/scripts/refactor.php "<subcommand>" [args]