🎉 Introducing `refactorlah` CLI -- fully open source.
Agents are surprisingly bad at renaming/moving files.
They are doing `git mv`s, then dozens of `grep`s, then hand-editing imports/namespaces/references while burning tokens and wasting time on tiny refactors.
The `refactorlah` CLI gives them one boring command instead:
`refactorlah move A B` or in bulk `refactorlah move --use-list A,B tests/A,tests/B`
Then file/s are moved, and namespaces, imports, references, etc. automatically updated.
Ambiguous renames are skipped and reported, so the agent can follow up manually instead of guessing.
Support for Go, Python, PHP, Symfony, Twig is landed.
A PR for JavaScript, TypeScript, Vite etc. is open.
I built and dogfooded `refactorlah` over the last few weeks. It works better for me than keeping an MCP server running in an IDE or making agents struggle through long tool-call chains for basic moves.
Still in alpha! Experimental, built with my best buddy Codex, and still dogfooding.
More eyes -> more dogfooding -> releasing early.
What do you think?