GitHits CLI
The infrastructure layer connecting agents to the open-source ecosystem.
Website ·
Documentation ·
Issues
GitHits connects AI coding agents to public open-source evidence across the
full software development lifecycle: discovery, planning, research,
implementation, debugging, and maintenance.
The CLI runs a local MCP server that your
coding tool starts on demand. Agents can then search indexed package and
repository source, read exact files and documentation pages, inspect package
health, compare dependency upgrades, and find source-cited examples from real
open-source projects when model knowledge and local repository context are not
enough.
Want to use GitHits as part of your agent harness or software factory? Check out
our public API documentation.
Quick Start
npx githits@latest init
init signs you in, detects supported coding tools, and configures GitHits for
the tools you select. It uses the local stdio MCP except for Cursor, whose
direct setup uses the hosted remote MCP.
Automatic setup currently supports Claude Code, Cursor, Windsurf,
VS Code / Copilot, Cline, Claude Desktop, Codex CLI, Pi, Gemini CLI,
Google Antigravity, OpenCode, Hermes Agent, Zed, Junie, Qwen Code,
Kiro, Kilo Code, Factory Droid, and Amazon Q CLI.
After setup, open your coding agent and work normally. Many agents call GitHits
when they need source-backed context. If your agent starts guessing, prompt it
directly:
Use GitHits Code Navigation to inspect npm:express. Find how middleware
errors are handled, read the relevant source, and explain the fix before
editing code.
What GitHits Adds
GitHits is designed for the point where an agent needs evidence from the
broader open-source ecosystem, not just model memory or local repo context:
| Capability | MCP tools | CLI commands |
|---|
| Tool orientation | quick_start | — |
| Code examples | get_example | githits example |
| Inventory browsing | list | githits list |
| Code and documentation search | search, search_status, grep | githits search, githits search-status, githits grep |
| Read source files or documentation sections | read | githits read <target> [path] |
| Package inspection | pkg_info, pkg_vulns, pkg_deps, pkg_changelog, pkg_upgrade_review | githits pkg ... |
Use GitHits when your agent needs to:
- discover, plan, or research how OSS projects solve a vague issue or unfamiliar error
- find broad prior art or rare needle-in-the-haystack examples across repositories
- inspect source, tests, symbols, or docs for a known package or repository
- verify how a dependency actually behaves before changing code
- debug stack traces that point into third-party code
- review package health, licenses, vulnerabilities, dependencies, and changelogs
- compare dependency upgrades using factual evidence
Examples
Find prior art across open source:
npx githits@latest example "HTTP retries with exponential backoff in Python"