---
title: "Research code with Gemini before using Claude | Ian Nuttall"
description: "Research code with Gemini CLI"
canonical: "https://ian.is/post/gemini-code-research"
language: "en"
---

# Research code with Gemini before using Claude

Jun 2025 / 685,721 views / [via X](https://x.com/iannuttall/status/1938695506013601802)

Claude Code pro tip:

Ask it to use Gemini CLI with its 1M context window and free plan in non-interactive mode to research your codebase, find bugs, and build a plan for Claude to action

Prompt and link below:

![Image from the original X post](https://ian.is/media/tweets/1938695506013601802/1938695506013601802/d5d4938d307d7b22b0acf66f15b856e464255aa7da3b453d0441c34e84bb839e.jpg)

Add this (or a modified version) to your CLAUDE​.md and tell Claude to use gemini manually or it will do it on its own as needed.

Prompt on Reddit:

[https://www.reddit.com/r/ChatGPTCoding/s/Vwf4Tfw008](https://www.reddit.com/r/ChatGPTCoding/s/Vwf4Tfw008)

## Ian's List

Join 15k\+ subscribers
