GitHits beta 0.9
Give your AI coding agent access to open-source code
About GitHits beta 0.9
Reviews 13
-
Lamont Strosin 4 months ago
We are often asked how GitHits compares to Context7, so here is the comparison: GitHits and Context7 are both available as MCP servers and CLIs that provide external context to AI coding agents. Both help fill gaps in model knowledge by retrieving information about libraries and dependencies. Context7 is centered on version-aware library documentation. GitHits also retrieves version-aware library documentation, while providing access to dependency source code, package metadata, and implementation examples from open-source repositories. Capability GitHits Context7 Version-aware documentation ✅ ✅ Open-source implementation examples ✅ ❌ Version-aware source code search & navigation ✅ ❌ Version-aware package metadata ✅ ❌ MCP server ✅ ✅ CLI ✅ ✅ DocumentationBoth tools retrieve documentation for specific library versions, allowing agents to work with current APIs instead of relying solely on model knowledge. Context7 Context7's workflow consists of resolving a library and retrieving documentation for it. The results contain relevant documentation sections together with code snippets and explanatory text from the indexed documentation. Tools ctx7 library react "How to clean up useEffect with async operations" ctx7 docs /facebook/react "How to clean up useEffect with async operations" GitHits GitHits provides version-aware documentation together with source code, package metadata, and implementation examples. Agents can search documentation, browse available pages, and read individual documentation pages for a specific package version. Tools npx githits@latest search "middleware" --in npm:express --source docs npx githits@latest docs list npm:[email protected] npx githits@latest docs read <page-id>The same search command can also search source code or symbols by changing the --source option. Implementation Examples Both products return code, but the source of that code is different. Context7 Context7 returns code snippets from indexed documentation. These snippets accompany the relevant documentation and illustrate how an API is intended to be used. Tools ctx7 docs /facebook/react "How to clean up useEffect with async operations" GitHits GitHits retrieves implementation examples from open-source repositories. Rather than extracting snippets from documentation, it searches real projects for implementations matching a natural-language query and links back to the original source. Tools npx githits@latest example "how to use express middleware" npx githits@latest example "jwt authentication middleware" --lang typescriptDocumentation snippets help explain an API. Implementation examples show how similar problems are solved in real applications. Source Code Context7 Context7's interface is centered on documentation retrieval. Agents resolve libraries and retrieve documentation, including code snippets and explanatory text from the indexed documentation. GitHits AI coding agents already use search, file listing, file reads, and grep to understand your local codebase. GitHits extends those same capabilities to dependency source code, allowing agents to inspect implementations without cloning repositories or leaving their existing workflow. Tools npx githits@latest search "Router" --in npm:express --source code npx githits@latest search "RequestHandler" --source symbol npx githits@latest code files npm:express lib/ npx githits@latest code read npm:express lib/express.js --lines 1-80 npx githits@latest code grep npm:express "Router" lib/ --ext jsThese tools allow agents to search indexed code and symbols, inspect repository structure, read source files, and perform deterministic grep across dependency source code. Package Metadata Context7 Context7 retrieves library documentation. Its public interface is centered on documentation rather than package inspection. GitHits GitHits provides package inspection commands for dependency analysis and upgrade planning. Tools npx githits@latest pkg info npm:express npx githits@latest pkg vulns npm:[email protected] npx githits@latest pkg deps npm:[email protected] npx githits@latest pkg changelog npm:express --from 4.18.2 --to 5.2.1 npx githits@latest pkg upgrade-review npm:[email protected] --to 4.4.3These commands allow agents to inspect package metadata, dependency graphs, known vulnerabilities, changelogs, release notes, and factual upgrade information for specific package versions. Overall GitHits and Context7 both help coding agents retrieve information that is not reliably available from model knowledge alone. Context7 is centered on version-aware library documentation. The workflow is straightforward: resolve a library, then retrieve the relevant documentation. Question ↓ Resolve library ↓ Read documentation GitHits also retrieves version-aware documentation, but exposes several retrieval primitives instead of a single workflow. This allows agents to adapt their retrieval strategy to the question they are trying to answer. Question ├─ Search documentation ├─ Search source code ├─ Search symbols ├─ Find implementation examples └─ Inspect package metadata For example, if an agent needs to answer "Why does Express strip this header?", it might search the documentation first, then inspect the Express source code to trace the implementation. If the behavior changed between releases, it can also review the package changelog. The products overlap in documentation retrieval but differ in the range of information they make available to an agent. Depending on the task, they can also complement each other.
-
Hillard Halvorson 5 months ago
Here's a press story worth checking out: Finnish Startup Raises €1.5M to Build the “Google for Code” Selected quotes: "Analysis of 16 widely used code-generating LLMs across 576,000 generated code samples found that 21.7% of the package names referenced in AI coding outputs were hallucinations — meaning no such packages existed in npm or PyPI. That’s nearly one in four dependencies simply invented by the model. GitHits is betting that plugging this specific gap — open-source code context for AI agents — is the infrastructure play that the entire coding-agent ecosystem has been missing." "The origin story is refreshingly unglamorous." "The GitHits Google for code framing isn’t just clever marketing — it’s a deliberate competitive positioning. As Heinisuo puts it: 'OpenAI, Anthropic, and Google have left a gap in the market. GitHits doesn’t compete with Codex, Claude Code, or Cursor, but complements them by bringing open-source code as context for agents to end retry loops and reduce token consumption.'" "GitHits raised €1.5 million in a pre-seed round led by Vendep Capital, with participation from Trind VC and angel investors including Peter Sarlin, Zach Shelby, and Jerry Liu. That last name is notable — Jerry Liu is the co-founder of LlamaIndex, one of the most widely used frameworks for building LLM-powered applications. His backing signals more than capital; it signals conviction from someone who lives inside the AI agent stack daily."
-
Chaim Schuppe 5 months ago
giving the agent access to open source code is the easy half. the hard half is helping it pick the right code. github has incredible code and also a long tail of broken half written experiments. how do you weight signals like maintained recently, used by many, tests pass, vs raw similarity to what the agent is trying to write?
-
Makenna Eichmann 5 months ago
Giving agents real OSS context feels like a cheat code. Curious how you rank which repos are signal vs random GitHub soup.
-
Duncan Effertz 5 months ago
The dependency-context angle makes a lot of sense. Docs explain the API, but source code and real examples show how it actually behaves. I’d be interested to see how GitHits weighs tests vs production implementations when finding examples.
-
Rupert Emmerich 5 months ago
Congrats on the launch! The "AI agent + OSS context" gap is real — most agents either hallucinate APIs or refuse to commit when they're unsure. Giving them grounded access flips that. Question for you: how do you handle licensing exposure when the agent pulls from copyleft repos and the user is on a proprietary codebase? That's the piece I'd worry about if I were shipping this into a regulated team.
-
Jaylon Deckow 5 months ago
Giving a coding agent access to real open-source code is a smart idea. How does GitHits pick which repos or snippets are most relevant?
-
Neal Jacobson 5 months ago
Building a version-aware index per release rather than scraping GitHub's default branch is the right call. Agents that can't inspect the exact version they depend on just hallucinate API signatures. We've hit this when agent-generated code breaks because docs described the wrong version. How does GitHits handle monorepos with independently versioned packages?
-
Johnathan Homenick 5 months ago
Really impressive backend work. Are you guys running the parsing/indexing entirely on your infra and serving it via API, or is there a local caching layer involved when we link it to Claude Code via MCP? Happy to support 🙌
-
Hillard Halvorson 5 months ago
Works great, I've been using Githits to explore implementation details from different libraries to ground my coding agent with real world examples. It's cool to point your coding agent towards an open source reference implementation that you know has already implemented what you want to implement.
-
Jackson Fisher 5 months ago
Congrats!
-
Adam West 5 months ago
This app is seriously helpful and turns your coding agent in a top tier senior engineer. When I am introducing a new pattern or library in my code, I always think to find real battle tested implementations first from GitHits. Eventually you realize just letting a coding agent vibe out consequential and high leverage code is just plain dumb and irresponsible.
-
Joshua Abshire 5 months ago
Hi Product Hunt! 👋 I'm Juha, co-founder and chief architect of GitHits. I'm responsible for the indexing engine underneath, so I want to talk about the part you don't see. The question I get more than any other is some version of this: my coding agent can already clone a repo, grep it, and search GitHub, so what is GitHits actually adding? It's a fair question, and the honest answer is that scraping GitHub gives your agent raw results, not understanding. It clones whatever is at the top of the default branch and greps one repo at a time, treating code as text with no sense of what is worth trusting. And here's the part that surprises a lot of people: GitHub's own code search only covers a repository's default branch, so the older version you actually depend on usually isn't even searchable. That's fine for a quick lookup, but it falls apart the moment the problem gets specific. What GitHits does instead is build a real, version-aware index. We fetch the actual source, parse it, turn it into structure, and keep that structure version by version, so your agent reads from something we already built rather than scraping and guessing in the moment. People are usually surprised how much work that is. One small example: just figuring out which commit a version like 1.2.3 actually points to. There's no standard for how projects tag releases, so the part of our indexer whose only job is that is more than 700 lines, and we've rewritten it six times as we keep hitting new conventions in the wild. And that's before we've parsed a single line of the actual code. And it isn't only code. We index documentation the same way, version by version, and combine it with the rest so your agent grounds itself in a balanced mix of code, tests, examples, and docs, instead of one slice it has to guess from. I wrote up the full under-the-hood walkthrough here if you want the long version: https://githits.com/blog/what-it-actually-takes-to-index-open-source/ The best way to judge it is to just test it out. Setup is one command: npx githits@latest init It connects GitHits to Claude Code, Codex, Cursor, or any MCP-compatible agent. Or sign up here: https://app.githits.com/signup I built the indexing engine, so I'd genuinely love to hear where it works or breaks for you. Brutally honest feedback is the most useful kind.