I've been experimenting a lot with Google's Gemini CLI. It's powerful, but I've noticed that when it runs into a bug while generating code, it often struggles to fix it on its own. My workaround was to copy the issue, ask ChatGPT for a fix, and then feed the solution back to the Gemini CLI. It worked, but it was clunky.
But then, a friend on Facebook shared a brilliant idea, and the result was something I can only describe as magical.
The solution is incredibly simple: Install Anthropic's claude-code-assistant and Google's gemini CLI in the same environment. (I'm using WSL, but it should work anywhere.)
That's it. That's the entire setup.
Now, when the Gemini CLI gets stuck, I simply ask Claude: "Could you consult with the Gemini CLI and help it fix this?"
What happens next is amazing. claude-code-assistant starts a "conversation" with the gemini CLI. It seems to analyze the source code and the problem, gets feedback from Gemini, and then presents a more refined, polished, and—most importantly—working solution.
Honestly, I was moved watching two AIs collaborate to solve a problem. It felt like witnessing a true pair programming session between two non-human developers.
The Gemini CLI is currently free to use, so I highly recommend you give this a try. It’s a glimpse into a new way of interacting with AI, and it’s a workflow I’ll be using daily from now on.