TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Any AI tools that help you make sense of a large repo?

5 pointsby zh24087 months ago
I'm trying to understand some large codebases. Current LLMs can understand code snippets but not large repositories with their complex structures. For example, we need tools that can make sense of the Linux source code. If I ask about changing a file system or thread locking mechanism, such tools should point to the most relevant files and help me understand how other code would be affected. Perhaps something like the repository map feature in Aider? But would love a cursor like chat interface to help make sense of code repository.

1 comment

prash24887 months ago
I&#x27;ve worked on SourceSailor, a CLI tool that tries to tackle this exact problem, though I should note it&#x27;s still in early stages. While it can&#x27;t yet fully map complex codebases like the Linux kernel (that&#x27;s a significant challenge), it does provide some useful capabilities for understanding smaller to medium-sized codebases. SourceSailor generates a structural understanding of your codebase and creates reports about dependencies and project architecture. It leverages LLMs (OpenAI, Anthropic, or Gemini) for analysis and allows you to ignore files you don&#x27;t want to analyze (following how .gitignore is used and parsed) to focus on relevant parts of the codebase. However, I should be clear about its limitations:<p>- It&#x27;s not yet as interactive as Cursor or Aider, and I am not planning to make it like that<p>- Large codebases (like Linux) would be challenging due to token limits of current LLMs. Though gemini may help, but we all know it&#x27;s privacy policy shenanigans.<p>- The analysis is more high-level rather than detailed implementation specifics. Though it helps you to understand the codebase, and it tries to explain interesting parts, but ymmv...<p>If you&#x27;re specifically looking to understand massive codebases like Linux, SourceSailor probably isn&#x27;t the straightforward yet, and there will be workarounds. But if you&#x27;re working with smaller to medium projects and need help understanding their structure and dependencies, it might be worth trying. The project is open source if you want to check it out or contribute: <a href="https:&#x2F;&#x2F;github.com&#x2F;PrashamTrivedi&#x2F;SourceSailor-CLI">https:&#x2F;&#x2F;github.com&#x2F;PrashamTrivedi&#x2F;SourceSailor-CLI</a>