agent/codex/code/commands/refactor.md
Snider e90a84eaa0 feat: merge go-agent + go-agentic + php-devops into unified agent repo
Combines three repositories into a single workspace:
- go-agent → pkg/orchestrator (Clotho), pkg/jobrunner, pkg/loop, cmd/
- go-agentic → pkg/lifecycle (allowance, sessions, plans, dispatch)
- php-devops → repos.yaml, setup.sh, scripts/, .core/

Module path: forge.lthn.ai/core/agent

All packages build, all tests pass.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 15:23:00 +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]