go-agent/claude/code/commands/refactor.md
Snider 61e01bfdf1 feat: initial go-agent — agentci + jobrunner + plugins marketplace
Consolidates three codebases into a single agent orchestration repo:

- agentci (from go-scm): Clotho dual-run verification, agent config,
  SSH security (sanitisation, secure commands, token masking)
- jobrunner (from go-scm): Poll-dispatch-report pipeline with 7 handlers
  (dispatch, completion, auto-merge, publish draft, dismiss reviews,
  send fix command, tick parent epic)
- plugins marketplace (from agentic/plugins): 27 Claude/Codex/Gemini
  plugins with shared MCP server

All 150+ tests passing across 6 packages.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 15:47:19 +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]