Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.githits.com/llms.txt

Use this file to discover all available pages before exploring further.

GitHits is installed through the hybrid CLI. It detects Gemini CLI and configures the GitHits MCP server automatically.

Prerequisites

  • Node.js 24 or later
  • Gemini CLI installed

Installation

1

Run the hybrid CLI

From your terminal, run:
npx githits@latest init
The CLI configures Gemini CLI when it detects it. Authentication is handled automatically for common local setup.
2

Verify the extension

Start a Gemini CLI session and ask your agent to find a code example — for instance, “find an example of reading a file with Node.js streams”. If the extension is installed and authenticated correctly, the agent calls the GitHits get_example tool and returns a source-cited result.

How it works

GitHits configures an MCP server process equivalent to npx githits@latest mcp start that Gemini CLI connects to over stdio. Your agent can call GitHits tools when it needs to look up an API pattern, resolve an error, or validate an implementation approach.

Uninstall

To remove GitHits from your Gemini CLI extensions, follow Gemini CLI’s extension removal workflow. To remove credentials stored by GitHits, run:
npx githits@latest logout