Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Claude Code now reads AGENTS.md if there is no Claude.md(claude.com ↗)
    128comments
  2. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    177comments
  3. Saving another 100TB of RAM(cloudflare.com ↗)
    33comments
  4. Cloudflare Quick Tunnels(cloudflare.com ↗)
    218comments
  5. Xcode 27.1 Beta Release Notes(developer.apple.com ↗)
    57comments
  6. Cache-to-Cache: Direct Semantic Communication Between LLMs (2025)(arxiv.org ↗)
    11comments
  7. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    43comments
  8. US troop deaths during Iran war exceed Pentagon count by at least four(reuters.com ↗)
    5comments
  9. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    71comments
  10. How to Write with an LLM(sockpuppet.org ↗)
    238comments
  11. OpenJev(openjev.com ↗)
    235comments
  12. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    34comments
  13. Cyclomatic Complexity in C#(ndepend.com ↗)
    9comments
  14. Two parallel neural ectoderm progenitors contribute to the developing brain(newscientist.com ↗)
    50comments
  15. The Implications of Linguistic Illegibility for LLM Security(arxiv.org ↗)
    16comments
  16. From Geometry to Algebra and Back Again: 4000 Years of Papers (2023) [video](youtube.com ↗)
    discuss
  17. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    166comments
  18. Size-Specialized Memory Allocation(go.dev ↗)
    3comments
  19. Minimal Phone 2(minimalcompany.com ↗)
    142comments
  20. How SpaceX streamlined the Raptor engine(construction-physics.com ↗)
    23comments
  21. Warez: The Infrastructure and Aesthetics of Piracy (2021)(archive.org ↗)
    12comments
  22. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    174comments
  23. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    89comments
  24. A search-and-inference database from scratch in pure Zig(antfly.io ↗)
    16comments
  25. Korea raises data breach fines to 10% of revenue(koreajoongangdaily.com ↗)
    70comments
  26. Border agents can search cellphones without a warrant or reasonable suspicion(lawandcrime.com ↗)
    130comments
  27. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  28. US Military had close call after using AI for hallucinated intelligence report(cnn.com ↗)
    275comments
  29. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    15comments
  30. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    147comments

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

11 pointsby 9mo agogithits.com
4 comments
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.

9mo agoHN ↗

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.

9mo agoHN ↗

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.

9mo agoHN ↗

Really interesting idea, thanks for sharing. When working on new projects, a lot of my learning comes from studying what others have already built so I can reuse patterns around architecture, UX, and product decisions. Those learnings tend to be transferable across tech stacks, so they’re not tightly bound to a specific programming language. Could you share the thinking behind using programming language as the primary way to organize or distill these examples?

9mo agoHN ↗

The main reason is that most real blockers are tied to a specific language ecosystem. Even if the high-level ideas transfer across languages, the actual fix usually depends on the language’s APIs, tooling, and conventions. When someone is searching, they typically need something that fits the environment they are working in at the moment.

So the language choice in GitHits mainly steers the system toward code that is immediately usable.

Another part of the story is that finding patterns across languages is a much harder problem. It requires a level of semantic, cross-language search that does not really exist yet in a reliable way. I would love to reach that point, but today the best results come from staying within one ecosystem at a time.

Under the hood, there are several search modes, and not all of them are strictly language specific. The language selection guides the search, but it does not fully constrain it. And at some point, there might be a more generic search mode that is not tied to any single language at all, but that will take more research and iteration.