# GitHits > GitHits is a version-aware index and context layer for public open-source code and packages. AI coding agents use its tools to search source code, read package docs, inspect package metadata and dependency graphs, check vulnerabilities, review changelogs, compare upgrades, and find real implementation examples. AI coding agents can read your local repository, but the open-source stack underneath it — frameworks, SDKs, APIs, infrastructure tooling, dependency internals, and version-specific behavior spread across thousands of repositories — stays invisible. Raw search is noisy. Without the right context, AI coding agents generate plausible-sounding answers that fail on unfamiliar libraries, long-tail edge cases, dependency internals, and version-specific behavior. GitHits closes that gap by giving agents access to public code, docs, package facts, and prior art behind the software your app depends on. GitHits indexes public open-source code from package dependencies and repositories into a version-pinned code graph. Agents can search code and docs, read exact source files, grep dependencies, inspect package metadata, check vulnerabilities, review changelogs, compare upgrades, and find implementation examples when they need prior art. GitHits ships as a CLI and MCP server. Connect an agent with a single command — `npx githits@latest init` — which detects your installed agents, configures them to use GitHits, and signs you in. ## Get started - [Web app](https://app.githits.com): Sign in and use GitHits in the browser. - [Install the CLI](https://githits.com/blog/connect-your-agents-to-githits-with-a-single-command/): Run `npx githits@latest init` to detect your installed agents, configure them to use GitHits, and sign in. ## Agent access - [Remote MCP server](https://mcp.githits.com): Connect over Streamable HTTP to use GitHits tools from an MCP client. - [GitHits CLI and local MCP server](https://github.com/githits-com/githits-cli): Run GitHits locally over stdio or use the CLI directly. ## Authentication - Normal CLI setup uses OAuth 2.1 with PKCE and Dynamic Client Registration. Tokens are stored in the system keychain by default and refreshed automatically. - Headless and CI environments can authenticate with the `GITHITS_API_TOKEN` environment variable. Never commit or expose the token. - [Authentication documentation](https://docs.githits.com/authentication.md): Manual authentication, headless environments, proxy behavior, and troubleshooting. ## Agent Skills - [GitHits MCP](https://github.com/githits-com/githits-cli/tree/main/skills/githits-mcp): Use GitHits to find source-grounded context across public open-source code, packages, and documentation. - [GitHits onboarding](https://github.com/githits-com/githits-cli/tree/main/skills/githits-onboarding): Set up GitHits safely across supported coding agents. - [GitHits code](https://github.com/githits-com/githits-cli/tree/main/skills/githits-code): Search and inspect version-specific public repository and package source. - [GitHits package](https://github.com/githits-com/githits-cli/tree/main/skills/githits-package): Inspect package metadata, dependencies, vulnerabilities, changelogs, and upgrades. ## Documentation - [Documentation](https://docs.githits.com/): Product documentation, CLI reference, MCP setup guides, and tool reference. - [Changelog](https://docs.githits.com/changelog/overview): Release notes and product updates. ## Core pages - [Homepage](https://githits.com/): GitHits as a version-aware index and context layer for public open-source code and packages. - [The Problem](https://githits.com/the-problem/): Why agents get stuck when the open-source stack behind your application stays invisible. - [The Solution](https://githits.com/the-solution/): How GitHits turns an index of public code and packages into usable agent context. - [Why GitHits](https://githits.com/why-githits/): GitHits as a discovery engine for relevant public OSS context agents would otherwise miss. - [The Builders](https://githits.com/the-builders/): The team building GitHits and the origin story behind the product. - [FAQ](https://githits.com/faq/): Who GitHits is for, how it works alongside your agent, how the index works, private-repo and data privacy guarantees, and open-source license handling. ## Blog - [Blog index](https://githits.com/blog/): Build notes and product thinking on agents, context, and how we build GitHits. - [GitHits CLI Launch](https://githits.com/blog/githits-cli/): Tools for indexed code navigation, package inspection, documentation access, and code examples. - [Connect Your Agents with a Single Command](https://githits.com/blog/connect-your-agents-to-githits-with-a-single-command/): One init command detects installed agents, configures them to use GitHits, and signs in. - [Code Navigation](https://githits.com/blog/code-navigation-give-your-agent-real-access-to-the-source/): Search, file listing, source reads, and grep across indexed packages and repositories. - [Package Intelligence](https://githits.com/blog/package-intelligence-vet-a-dependency-before-you-adopt-it/): License, dependency, vulnerability, changelog, and upgrade-review data before you add a dependency. - [Compare Coding Agents by How They Actually Behave](https://githits.com/blog/compare-coding-agents-by-how-they-actually-behave/): Use GitHits in the research phase to compare agents by real behavior before cloning a repo. - [Context is King #3: Open-Source Code as Context](https://githits.com/blog/open-source-code-context-for-coding-agents/): Olli-Pekka Heinisuo on how open-source code becomes useful context for coding agents. ## Case studies - [DuckDB API Migration](https://githits.com/blog/duckdb-api-migration-case-study/): How GitHits surfaced the DuckDB v1.3.2 source behavior a vanilla agent run missed. - [SQLx 0.9 Safety Migration](https://githits.com/blog/sqlx-querybuilder-safety-case-study/): How GitHits preserved SQL injection safety while cutting search churn in an SQLx 0.9 migration. - [Pydantic AI Tenant Routing](https://githits.com/blog/pydantic-ai-tenant-routing-case-study/): How GitHits used current docs and source to resolve a Pydantic AI tool fix while cutting token churn. ## Community - [Wall of Love](https://githits.com/wall-of-love/): Real reviews from developers using GitHits, sourced from X, Reddit, LinkedIn, GitHub, Hacker News, and personal blogs. ## Optional - [Terms of Service](https://githits.com/legal/terms-of-service/) - [Privacy Policy](https://githits.com/legal/privacy-policy/) - [Cookie Policy](https://githits.com/legal/cookie-policy/) - [Data Processing Agreement](https://githits.com/legal/data-processing-agreement/) - [Subprocessor List](https://githits.com/legal/subprocessor-list/) - [RSS feed](https://githits.com/rss.xml): Blog updates. - [Sitemap](https://githits.com/sitemap-index.xml): Full list of indexable pages.