[Canonical HTML page](https://githits.com/)

# Equip your agents to use open source right

Connect your software factory or coding agent to a version-aware index of open-source code, documentation, and package data. Discover, use, debug, and maintain dependencies through one interface.

The infrastructure layer connecting agents to the open-source ecosystem.

SOC 2 Type II in progress

Used by developers at

* ![Tesla](/_astro/tesla.5WAyx45T.svg)
* ![Square](/_astro/square.Cpday-Ta.svg)
* ![Capgemini](/_astro/capgemini.CWLzR0iT.svg)
* ![Confluent](/_astro/confluent.D2S3RnxX.svg)
* ![Zendesk](/_astro/zendesk.BHc5t1KG.svg)
* ![Rubrik](/_astro/rubrik.DOSpIe6l.svg)
* ![Softlandia](/_astro/softlandia.CzIacZUa.svg)
* ![Raiffeisen Bank International](/_astro/raiffeisen.B7-7tZ87.svg)
* ![Cribl](/_astro/cribl.CzazXFoV.svg)
* ![Flexiv Robotics](/_astro/flexiv.CVJPI-Na.png)
* ![Smartly](/_astro/smartly.CS_II_LY.svg)
* ![1Password](/_astro/1password.BE5e6YNp.svg)
* ![Arm](/_astro/arm.BpYx2cP6.svg)
* ![Aircall](/_astro/aircall.e4dsvJee.svg)
* ![Salesforce](/_astro/salesforce.DexyQc5Z.svg)
* ![IpsionAI](/_astro/ipsionai.DQbBWK_g.svg)

## Tools for software factories and coding agents

Connect your agents through MCP, the CLI, or the API.

### Deterministic

#### Code

##### `resolve_target`

Find the right package or repository target.

Example

```
githits resolve fastapi --prefer-kind repository
```

ranked targets to choose from

Resolve a package or repository name to ranked canonical targets before searching its code.

##### `search`

Find code by keywords or API names.

Example

```
githits search "OAuth2PasswordBearer" --in pypi:fastapi --source code
```

ranked hits with file, line range, enclosing symbol, and a matched snippet

Find code and symbols in a package or repository by keywords, API names, or quoted phrases. Narrow with inline filters such as kind:function or path:lib/.

##### `grep`

Match exact text or regex in code.

Example

```
githits grep -F "sendFile" npm:express
```

file:line matches, plus a cursor for the next page

Find exact text or regex matches across a repo or package. Results are deterministic and paginated, and can be scoped by path, glob, or file extension.

##### `list`

Browse source files.

Example

```
githits list pypi:fastapi fastapi/security
```

a plain list of file paths

List the indexed files and paths in a repo or package, so agents can find the right file before reading it.

##### `read`

Read versioned code by file, lines, or symbol selector.

Example

```
githits read pypi:fastapi@0.141.1 fastapi/security/oauth2.py --selector OAuth2PasswordBearer
```

the source for the selected symbol

Read a source file, a focused line range, or a code symbol using a selector, at the exact version or git ref. It follows straight on from search and grep results.

##### `diff`

Compare code changes between versions or refs.

Example

```
githits code diff npm:express 4.21.2..5.2.1 --stat
```

repository-wide changed files with line statistics

Compare source changes between package versions or repository refs.

#### Documentation

##### `resolve_target`

Find the right documentation site target.

Example

```
githits resolve express --prefer-kind site
```

ranked targets to choose from

Resolve a documentation-site name to ranked canonical targets before searching its pages.

##### `search`

Find documentation sections by keywords.

Example

```
githits search "useEffect cleanup" --source docs --in site:react.dev
```

matching doc sections with a preview and a target to read next

Search a package's documentation, or a standalone docs site, by keywords. Hits point to the exact page and section.

##### `grep`

Match exact text or regex in documentation.

Example

```
githits grep -F "next()" site:expressjs.com
```

matching lines with page locations and read actions

Find exact text or regex matches in documentation, with matching lines and pages.

##### `list`

Browse documentation pages.

Example

```
githits list site:expressjs.com
```

page titles, each with a ready-made read command

List all available documentation pages for a package or docs site, ready for the read command. This is the same tool that lists source files.

##### `read`

Read a page or section using a heading selector.

Example

```
githits read 'https://expressjs.com/en/5x/api/express/' --selector expressjson
```

the selected section as clean markdown

Read a documentation page or select a section by its heading ID using a selector. This is the same tool that reads source files.

#### Package Intelligence

##### `pkg_info`

Check package health, adoption, and license.

Example

```
githits pkg info npm:express
```

a one-screen summary (license, stars, monthly downloads, last publish, advisory counts)

Check a package's health and adoption at a glance: license, downloads, repository activity, publish age, and open advisories.

##### `pkg_vulns`

Check known vulnerabilities and affected versions.

Example

```
githits pkg vulns npm:lodash@4.17.20 --severity high
```

advisories with severity, the versions affected, and the version that fixes each one

Check current security advisories for a pinned version or the package's full history.

##### `pkg_deps`

Inspect direct and transitive dependencies.

Example

```
githits pkg deps npm:express@5.2.1 --depth 2
```

dependency counts and the resolved package list

Inspect what a package depends on: direct runtime dependencies with resolved versions, and optionally the transitive footprint.

##### `pkg_changelog`

Read release notes and changelog history.

Example

```
githits pkg changelog npm:next --from 15.0.0
```

one entry per release with date, link, and notes

Get release notes and changelog history for a package or repository, either the latest entries or everything between two versions.

##### `pkg_upgrade_review`

Check security and dependency changes before upgrading.

Example

```
githits pkg upgrade-review npm:next@14.2.0 --to 15.0.0
```

advisories fixed, added, and still present, plus changelog and dependency changes

Compare two versions of a package before upgrading: vulnerabilities, release notes, deprecations, and peer and dependency changes. It reports facts only and leaves the decision to you.

### Agentic

Delegate research and example generation to GitHits. Our managed subagents handle the inference for you and are optimized for token efficiency and answer quality.

#### `example`

Get a generated code example grounded in how other open-source projects do something. Prior art.

Cross-project sources produce a generated example

Example

```
githits example "stream a large file upload to S3 with progress" --lang typescript
```

a generated code example with links to its sources and their licenses

Adapt the example to your project and check the APIs against the package versions you use.

#### `research`

Ask how a package or repository works. Get an answer with cited sources.

Search, grep, read produce an explanation with sources

Example

```
githits research npm:express "How does Express handle errors passed to next()?"
```

an explanation with cited sources, read commands, and a thread ID for follow-up questions

GitHits searches and reads the relevant code and documentation, then explains what it found. Ask follow-up questions in the same thread.

## One version-aware index for the open-source ecosystem

Open source powers modern software. GitHits brings source code, documentation, package releases, dependency graphs, and security advisories together so agents can inspect the versions they use, compare alternatives, and plan changes.

* lines of code

  116.8B

* repositories

  66.6K

* documentation pages

  2.6M

* packages

  58.9K

GitHits indexes 116,815,401,968 lines of open-source code across public repositories.

### Packages by registry

* [npm](https://index.githits.dev/packages/npm/)
* [PyPI](https://index.githits.dev/packages/pypi/)
* [crates.io](https://index.githits.dev/packages/crates/)
* [Go](https://index.githits.dev/packages/go/)
* [Maven](https://index.githits.dev/packages/maven/)
* [NuGet](https://index.githits.dev/packages/nuget/)
* [RubyGems](https://index.githits.dev/packages/rubygems/)
* [Packagist](https://index.githits.dev/packages/packagist/)
* [Hex](https://index.githits.dev/packages/hex/)
* [Swift](https://index.githits.dev/packages/swift/)
* [vcpkg](https://index.githits.dev/packages/vcpkg/)
* [Zig](https://index.githits.dev/packages/zig/)
* [Pub](https://index.githits.dev/packages/pub/)

### Public repositories

* [GitHub](https://index.githits.dev/?host=github.com#target-form)
* [GitLab](https://index.githits.dev/?host=gitlab.com#target-form)
* [Codeberg](https://index.githits.dev/?host=codeberg.org#target-form)
* [Launchpad](https://index.githits.dev/?host=git.launchpad.net#target-form)
* [Googlesource](https://index.githits.dev/?host=googlesource.com#target-form)

Including repositories that aren’t published to a package registry.

If a repository isn't indexed yet, GitHits indexes it on demand, in tens of seconds for small repositories and minutes for larger ones.

[Browse the index](https://index.githits.dev/)

## Get your agents started in minutes

Connect your coding agent or software factory through the CLI and MCP.

`npx githits@latest init`

[What does this command do?](/init.md)

Or connect directly

* [Claude connector](https://claude.ai/directory/githits)
* [ChatGPT plugin](https://chatgpt.com/plugins/plugin_asdk_app_6ae059be511481918e3573fb5885dbb8)
* [Cursor plugin](https://cursor.com/marketplace/githits)

- [Vercel connector](https://vercel.com/connect/githits)
- [Manus connector](https://manus.im/app#connectors/all/connector_8387945e-9687-4a71-86b4-8a220dbd5b6b)

## Expand what your software factory can build, maintain, and modernize

Equip your agents for greenfield development, brownfield maintenance, and modernization with code, documentation, and package data for the dependency versions they use or plan to adopt. Use the REST API to tailor retrieval and context to each workflow.

* Planning agents

  Discover existing solutions and check dependency constraints before committing to a plan.

* Design agents

  Compare architecture patterns and implementation tradeoffs across open-source projects.

* Implementation agents

  Inspect extension points, types, and call sites in the exact dependency version you use.

* Debugging agents

  Trace upstream callers and error handlers to distinguish application mistakes from dependency bugs.

* Code review agents

  Check API usage and behavioral assumptions against the dependency’s version-specific source.

* Maintenance agents

  Check changelogs, vulnerabilities, and source for installed and target versions before upgrading or migrating.

[Browse the API](https://docs.githits.com/api/overview)[Book a call with a co-founder](https://calendly.com/d/dvxq-7dn-msq/meeting-with-githits-select-15-or-30-minutes)
