GitHits connects your AI coding assistant to real-world implementation patterns from open source. When your agent is stuck, encounters an unfamiliar API, or needs to validate an approach, GitHits provides a distilled, source-cited example it can use immediately — instead of looping on stale training data.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.
Quick Start
Install GitHits and connect your first AI coding tool in under two minutes.
Authentication
Log in with your browser or set an API token for headless environments.
Code Examples
Search 800+ languages for canonical patterns from real open-source repos.
Package Inspection
Inspect dependencies: versions, licenses, vulnerabilities, and changelogs.
How GitHits works
GitHits runs as an MCP server that your AI assistant connects to. Once connected, your agent automatically calls GitHits tools when it needs to research an API, validate a pattern, or resolve an error it can’t solve from training data alone.Install the CLI
Run
npx githits@latest init to install GitHits and detect your coding tools automatically.Supported AI coding tools
GitHits works with Claude Code, Cursor, Windsurf, VS Code / Copilot, Cline, Claude Desktop, Codex CLI, Gemini CLI, Google Antigravity, and OpenCode. For tools not listed, use the manual MCP setup guide.Claude Code
Install GitHits as a Claude Code plugin or MCP server.
Cursor
Add GitHits MCP to Cursor via the Open Plugin standard.
Gemini CLI
Install GitHits as a Gemini CLI extension.
Manual Setup
Configure any MCP-compatible tool manually.