GitHits is installed through the hybrid CLI. It detects Gemini CLI and configures the GitHits MCP server automatically.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.
Prerequisites
- Node.js 24 or later
- Gemini CLI installed
Installation
Run the hybrid CLI
From your terminal, run:The CLI configures Gemini CLI when it detects it. Authentication is handled automatically for common local setup.
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 tonpx 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.