frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: A server that gives AI tools like ls/diff/cat to explore github repos

https://github.com/BaoNguyen09/github-second-brain
1•baobaoyc24•7h ago
Hi HN,

I want to share a recent project that was born out of a personal struggle.

Roughly two months ago, I was trying to contribute to a large open-source project to gain more experience. The repo was just too big for a first-timer, and I felt completely overwhelmed. I wanted to use an AI assistant to help me navigate, but I had no good way to provide the necessary context.

So, I built a tool to solve this: a self-hosted mcp server that gives an AI client a set of tools to explore and understand GitHub repos on its own.

My first attempt was naive: I used a library to ingest the whole codebase into a single text file and dump it to the AI. As you can guess, this immediately exceeded the context window limit for any reasonably sized project.

The better approach, and the one this tool uses, is to let the AI explore the code on demand. I gave it tools to fetch a directory tree, get the content of any file or folder, diff any two branches/commits/tags, and pull context from issues/PRs. This works surprisingly well, even on a massive repo like VS Code's (>27M tokens).

Ironically, I only recently learned that GitHub has its own official server for this! Luckily, my version has some capabilities that theirs doesn't (yet):

1. Get a clean directory tree: It uses the Git tree object to create a readable tree structure, which helps the AI (and humans) understand the project layout faster.

2. Get a diff between any two points: This isn't limited to PRs; you can compare any two branches, commits, or tags.

3. Get raw repo contents: It can fetch file contents as plain text or folder contents in the tree format, ready for AI to process directly.

Any feedback is highly appreciated!

Try it out: https://github.com/baonguyen09/github-second-brain Demo Video: https://github.com/user-attachments/assets/ecb05256-8bb0-427...

Why Academic Researchers struggle making software

https://substack.com/home/post/p-166031834
1•divark•3m ago•0 comments

A neuroscientific model of near-death experiences

https://www.nature.com/articles/s41582-025-01072-z
1•daegloe•5m ago•0 comments

The Illusion of the Illusion of Thinking

https://arxiv.org/abs/2506.09250
1•jedisct1•5m ago•0 comments

Git Based Undo/Checkpoint in Claude Code

https://gist.github.com/sohei1l/f19cc1d91320db9db3a6cb7c63b312e6
2•soheilH•9m ago•0 comments

Doc2convo: A poor man's CLI variant of the turn-a-doc-into-a-podcast pattern

https://walterra.dev/blog/2025-06-16-doc2convo
2•walterra•14m ago•0 comments

Commodore VIC 20 in an Alternate Universe [video]

https://www.youtube.com/watch?v=4mNwo-ev9kU
2•amichail•14m ago•0 comments

A Startup Claimed Its Device Could Cure Cancer. Then Patients Began Dying

https://www.nytimes.com/2025/01/23/business/exthera-cancer-blood-filtering-device.html
2•randycupertino•20m ago•1 comments

Your Texas LLC Won't Protect You from Blue State Labor Laws

https://upcactus.com/blog/your-Texas-LLC-won-t-protect-you-from-Blue-State-Labor-Laws
3•justinzollars•29m ago•0 comments

Perhaps last of its kind 1966 RCA control panel found in family garage

https://arstechnica.com/gadgets/2025/06/reddit-user-surprised-when-1960s-computer-panel-emerged-from-collapsed-family-garage/
2•coloneltcb•30m ago•0 comments

Enabling the Future of AI: Introducing AMD ROCm 7 and AMD Developer Cloud

https://www.amd.com/en/blogs/2025/enabling-the-future-of-ai-introducing-amd-rocm-7-and-the-amd-developer-cloud.html
1•mindcrime•31m ago•0 comments

Aerated Bread Company

https://en.wikipedia.org/wiki/Aerated_Bread_Company
2•camtarn•34m ago•1 comments

"What went well" is more than just a pat on the back

https://surfingcomplexity.blog/2025/06/14/what-went-well-is-more-than-just-a-pat-on-the-back/
1•azhenley•34m ago•0 comments

Clergy taking Psilocybin

https://www.newyorker.com/magazine/2025/05/26/this-is-your-priest-on-drugs
1•robg•35m ago•0 comments

Infrastructure so invisible the only thing devs notice is how fast they ship

https://www.motivenotes.ai/p/digger-pull-request-infrastructure
1•donnaoana•36m ago•0 comments

When Growth Plateaus: How and When to Layer on New Acquisition Channels

https://caseyaccidental.substack.com/p/when-growth-plateaus-how-and-when
1•mooreds•38m ago•0 comments

Show HN: We built a Payment Stack Index for companies scaling past Stripe

https://usegater.com/payment-stack
1•beecee•38m ago•0 comments

Claude 4 prompt engineering best practices

https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/claude-4-best-practices
1•mooreds•39m ago•0 comments

A Paid Tier for CIAM Weekly

https://ciamweekly.substack.com/p/introducing-a-paid-tier-for-ciam
1•mooreds•40m ago•0 comments

New breakthrough enables precise activation of quantum features in diamond

https://www.ox.ac.uk/news/2025-06-16-new-breakthrough-enables-precise-activation-quantum-features-diamond
3•gnabgib•42m ago•0 comments

Xmake v3.0 released, Improve C++ modules and jobgraph support

https://github.com/xmake-io/xmake/releases/tag/v3.0.0
4•danny0z•43m ago•0 comments

Triaging security issues reported by third parties

https://gitlab.gnome.org/GNOME/libxml2/-/issues/913
3•transpute•44m ago•0 comments

Future Knowledge

https://futureknowledge.transistor.fm/
2•doener•45m ago•0 comments

KSP and Me

https://paul-samuels.com/blog/2025/06/16/ksp-and-me/
2•zzzonked•47m ago•0 comments

BanglaByT5: Byte-Level Modelling for Bangla

https://arxiv.org/abs/2505.17102
1•PaulHoule•49m ago•0 comments

Safe to Deploy: How We Know the Waymo Driver Is Ready for the Road

https://waymo.com/blog/2025/06/safe-to-deploy
1•xnx•49m ago•0 comments

Behavioral Interview List of Questions

https://github.com/gregorojstersek/behavioral-interview-list-of-questions
1•nadis•56m ago•0 comments

Show HN: AI Custom Interviewer replaces the need for screening calls

https://app.screenz.ai/signup
3•griesmey•1h ago•0 comments

Houston Housing Authority Submits Legal Brief Riddled with LLM Hallucinations

https://www.houstonchronicle.com/news/houston-texas/housing/article/houston-housing-authority-fake-quotes-lawsuit-20369965.php
2•ofjcihen•1h ago•0 comments

Show HN: Ports – see what's running on what port

https://ports.alasdairmonk.com
1•sgottit•1h ago•1 comments

Microsoft 365 Two Factor Down

https://downdetector.com.au/status/microsoft-365/
3•atymic•1h ago•1 comments