Balancing command line tool calls with file editor tool calls

Recently with the latest claude model I have been really impressed with its choices to use sed command line tools to grind out massive find and replace refactors, and I was even more impressed with it when it wrote a small command line script to do a series of sed commands and other things for a refactor. These creative uses of command line really sped up the development workflow.

However, other times, it chose to regenerate the entire contents of a file under a new file name, instead of just using the command line to rename the file. This is extremely inefficient.

It is very interesting how it sometimes comes up with wildly creative ways to hog through refactors in some cases, but in other cases chooses to do it the slow and hard way.