When AI Assistants Reach for CLI Tools
Working with AI coding assistants is fascinating. Theyâre incredibly powerful, but sometimes they surprise you with their tool choices.
Take this recent example. I was working with Github Copilot (model: Claude Sonnet 4.5) on a Kotlin test file, and it needed to rename a method call from update() to upsert(). Simple enough, right?
Instead of using its built-in edit capabilities, Copilot decided to go old-school:
perl -pi -e âs/storeStorageAdapter.update(/storeStorageAdapter.upsert(/gâ src/test/kotlin/MyStorageAdapterIT.kt
I had to pause and ask:
âWait, what? Why are you doing it via perl? You have edit skills, use that.â
This put Copilot back on track and it replied:
Youâre absolutely right, my apologies. Let me use the proper edit tool instead. Let me read the file and update it directly:
Both methods get the job done, but the built-in edit tool is the proper approach. Over time, tools get better and better, and I wonder if in a few weeks this will still happen.
Related Articles
The new website of Inspired IT
How I used Claude Code and OpenAI Codex to design, migrate, and refine my new Inspired IT website with AI assistance.
AI tools can be funny
When I asked Claude to build something technically impossible, it refused to do the work. Is this AI pushing back? A humorous look at what happens when you push an AI assistant's limits.
2026: The Year the IDE Died
Steve Yegge says if you use an IDE in 2026, you're a bad engineer. From CNC machines to Vibe Coding, here is why we are facing a 'Swiss Watch Moment' in software engineering.