Hacker Newsnew | past | comments | ask | show | jobs | submit | claireGSB's commentslogin

Adding my take to the mix, which has been working well for me: https://github.com/ClaireGSB/project-context.

It outputs both a file tree of your repo, a list of the dependancies, and a select list of files you want to include in your prompt for the LLM, in a single xml file. The first time you run it, it generates a .project-context.toml config file in your repo with all your files commented out, and you can just uncomment the ones you want written in full in the context file. I've found this helps when iterating on a specific part of the codebase - while keeping the full filetree give the LLM the broader context; I always ask the LLM to request more files if needed, as it can see the full list.

The files are not sorted by priority in the output though, curious what the impact would be / how much room for manual config to leave (might want to order differently depending on the objective of the prompt).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: