Skip to content

v0.1.0-alpha.1 — Move Fast, Don’t Guess

Choose a tag to compare

@github-actions github-actions released this 08 Jun 17:00

Hello World

RefactorLah is a refactoring CLI for humans and AI agents who need to move files without juggling git mv, import edits, namespace changes, and stale-reference hunting by hand.

Highlights

  • Native single-binary CLI written in Go.
  • Deterministic file and directory moves.
  • PHP, Python, and Go semantic rewrite support.
  • Symfony/Twig and static asset import rewrites where references are exact.
  • Git-aware moves with filesystem fallback for untracked files.
  • Dry-run previews, JSON output, batch moves, and wildcard moves.
  • Configurable scan excludes and post-move checks.
  • Built-in safety checks for overlapping edits, invalid ranges, and uncertain references.

Supported Today

  • Composer PSR-4 PHP class moves, namespace updates, imports, PHPDoc, type references, and selected Symfony/Twig config/template references.
  • Python module moves with import, relative import, annotation, and config reference rewrites.
  • Go package moves, import path updates, package declaration updates, and deterministic top-level symbol basename renames.
  • Static JS/TS/CSS-style import specifier updates for moved assets.

Alpha Notice

This is a pre-1.0 alpha. RefactorLah is still experimental, and needs more dogfooding. It's designed to skip uncertain rewrites rather than guessing. However, run it in version-controlled projects only.

Please report sharp edges. This release exists so we can dogfood the tool on real refactors and make the next one better.

Full Changelog

https://github.com/NickSdot/refactorlah/commits/v0.1.0-alpha.1