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 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.

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.
1

Install the CLI

Run npx githits@latest init to install GitHits and detect your coding tools automatically.
2

Log in

Authenticate with your GitHits account via browser OAuth or an API token.
3

Start coding

Your agent now has access to GitHits tools. It calls them automatically when it needs a real-world example or package context.

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.