Title: Supercharging the Gemini CLI: How I Made Claude and Gemini Pair Program
CharmPic

CharmPic @charmpic

About: Old-school programmer since Windows 98. Back to C++ with AI after years of C#. Surprised by C++20. Making fun apps with passion. Hope you enjoy my work. Nya~ P.S. I use AI for translation since Engli

Joined:
Jun 28, 2025

Title: Supercharging the Gemini CLI: How I Made Claude and Gemini Pair Program

Publish Date: Jun 28
0 0

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.

Comments 0 total

    Add comment