Hacker News new | ask | show | jobs
by btown 541 days ago
I really, really like this approach! Rather than trying to build a full graph of related low-level components from function calls etc., which is almost always overwhelming, this just finds the "vibes" of how modules are named in the filesystem, and how they relate to common design patterns - which in many cases is exactly what you want for exploring a codebase or understanding the scope of its offering.

https://github.com/ahmedkhaleel2004/gitdiagram/blob/main/bac... - the prompts in question. Don't sell yourself short as per the comments, they're very well designed prompts!

Using an inexpensive LLM to summarize each file might be an interesting next step, putting few-word summaries alongside the filenames in much the same setup you currently have! But, honestly, it may not be particularly necessary for large existing open-source projects that have already bikeshedded their file naming over many iterations, and/or have highly intentional structures for maintainability.