🎉 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?
@nicksdot Thoughts on the quality in results? Do you have to prompt it multiple times to get things right? Often manually make changes? Does it hallucinate often? 🤔
@nicksdot@wesbos I mean, yeah, but it's very simple compared to what's built-in elsewhere, like Firefox. Syntax highlight, folding, clickable links etc. So I don't think these extensions are completely useless, if you're looking for those features. 🤷♂️
@simonswiss Sorry to hear that Simon. I am interested to know how AI took your position — can you elaborate on that?
I am aware AI has come far, but it can't teach the same way a human can (IMO).
@jaydrogers But Spin automates a lot of things for you? Yes it reduces the learning curve, by simply not putting work in the users hands. I meant learning curve as in understanding how to write Dockerfiles etc. for my specific needs. 😉
@jaydrogers Care to elaborate on that? How would tools help me learn/understand Docker, without using prebuilt images "that just works"?
Unfortunately there doesn't seem to be anything that will magically save my peanut-brain when it comes to Docker and writing Dockerfiles/compose.
@nicksdot@ganyicz I meant if you're gonna primarily work with PHP in VS Code, it would be worth checking out that extension, because I believe it gives a better overall experience 😉
@nicksdot@ganyicz I'd argue the PHP extension by DEVSENSE is better in terms of features and development. However the features worth your time are paid and under a subscription. If you're serious about PHP in VSC though, it's worth it.
There's a free trial you can check out.