Show HN: GitHits – Code example engine for AI agents and devs (Private Beta)

githits.com

8 points by skvark 12 hours ago

It has been almost 10 years since I started the opencv-python packaging project. Scaling it to more than 100 million downloads as a side project showed me how much ease of installation and proper package distribution matter to users. It gave the computer vision ecosystem a noticeable boost. Now I have a new idea that I hope can help even more people across the broader software engineering world.

A while ago, I realized I kept giving the same advice to teammates and friends when they ran into a programming issue they couldn't easily solve: go to GitHub and look at how others solved it.

There is a huge pool of underused example material across open source. Most problems developers face are not that novel. With enough digging, someone has already solved the same issue in code or at least posted a workaround to an issue or discussion thread.

The trouble is that GitHub search is limited and works only when you already know the right keywords. You also need the time and patience to go through and read all the results, connect information across files, repositories, issues, discussions, and other metadata, and then turn that into a working solution. The same limitations apply to Stack Overflow and other search tools.

LLMs changed a lot, but they did not change this. They do not perform equally well across all programming languages, and their training data is always stale. They cannot reliably show how to combine multiple libraries in the way real projects do. For these and many other cases, they need a real, canonical code example rather than an outdated piece of documentation written for humans.

That is why I started building GitHits. It is designed to handle the work that humans and AI coding agents struggle with: finding real solutions in real repositories and connecting the dots across the open source ecosystem.

GitHits searches millions of open-source repositories at the code level, finds real code and surrounding metadata that match the intent of your blocker, and distills the patterns it finds into one example.

The initial product is in private beta, with MCP support to connect GitHits to your favorite coding agent IDE or CLI.

What makes it different from Context7 and other generic documentation search tools:

- It is built around unblocking, not general search

- It does not require manual indexing jobs

- It works for humans through the web UI and for agents through the MCP

- It clusters similar samples across repositories so you can see the common path real engineers took

- It ranks the sources using multiple signals for higher quality: the selected sources might be, for example, a combination of code files, issues, and docs

- It generates one token-efficient code example based on real sources

It is not perfect yet. Right now, GitHits supports only Python, JS, TS, C, C++, and Rust. More languages and deeper coverage are coming, and I would appreciate early feedback while the beta is still taking shape. If you have ever lost hours stuck on a blocker you knew someone else had solved already, I would love to hear what you think.

pwarnock 5 hours ago

The MCP is great! Whenever I don’t like a solution, or my agent is stuck, I say use GitHits and it synthesizes a better solution based on real projects. I’ve had good results with frontend (html, css) and Golang, too.

  • skvark 3 hours ago

    Thanks! While those languages are not yet "officially" supported, GitHits works with them as well. The results might not be that good as with the ones I have enabled officially since the search and final output is partially steered by the selected language.