Skip to content
AddHunt
MCP servers

GitHits

Open-source code and package index for coding agents

In short

GitHits gives coding agents and software factories access to an index of open-source code, docs and package metadata, organized by version and reachable through MCP, a CLI or an API. It is aimed at developers, teams running agent pipelines and open-source maintainers.

What you get

  • Version-aware index of open-source code, docs and packages
  • Access through MCP, a CLI or an API
  • One-command setup that configures detected coding tools
  • Search, grep, list and read tools for indexed code
  • Package and repository name resolution
  • Index explorer for repositories and packages

The details

GitHits indexes open-source repositories, their documentation and package metadata by version, and makes that index available to AI coding agents. The aim is to let an agent consult real source and APIs when it picks, uses, debugs or upgrades a dependency, instead of relying on what the model remembers.

Access

Agents connect through an MCP server, a command-line tool or an HTTP API. Setup runs with one npx command that opens a browser for authorization, asks whether to configure GitHits for the user or a single project, finds the supported AI coding tools on the machine and configures the ones selected.

Tools

The site documents a set of deterministic tools:

  • resolve, which maps a package or repository name to ranked canonical targets
  • search, for finding code and symbols by keyword or API name, with filters such as kind or path
  • grep, for exact text or regex matches with paginated results
  • list, for browsing indexed files and paths
  • read, for fetching versioned code by file, line range or symbol

Audiences

Pages address software factories, individual developers and open-source maintainers who want agents to use their projects correctly. An index explorer and a coverage page show which repositories and packages have been indexed.

Alternatives to GitHits

All alternatives

Questions

How do agents connect to GitHits?

Through its MCP server, the githits CLI or the API. Running npx githits@latest init authorizes the account in a browser and configures the AI coding tools it finds on the machine.

What can an agent look up with GitHits?

It can resolve package and repository names, search code and symbols, run exact or regex matches, list indexed files and read specific versions of a file, line range or symbol.

Who is GitHits for?

The site addresses software factories running many agents, individual developers using a coding agent, and open-source maintainers who want agents to use their projects correctly.

More like this