News for hackers. Stuff that matters.
Re:Show HN: FileKitty – Combine and label text files for LLM... by _andrei_ on Wednesday May 01, 2024 @07:56PM (#40231132)
Pretty nice, made a CLI app for this as well, seems like a common need: https://github.com/3rd/promptpack

But sending whole files isn't always optimal, I'm thinking there has to be a better way, like picking workspace symbols and pulling in only the code they depend on from other files. Something something LSP/tree-sitter-based.

Re:Show HN: FileKitty – Combine and label text files for LLM... by bredren on Wednesday May 01, 2024 @08:06PM (#40231198)
Cool, thanks for sharing.

That's a great point.

A tree-based file path browser with ability to select all or individual functions or classes would be cool.

Jetbrains IDEs have a good interface for symbols via the refactoring UI. Maybe I'll look there for some inspiration.

Re:Show HN: FileKitty – Combine and label text files for LLM... by anotherpaulg on Wednesday May 01, 2024 @08:48PM (#40231504)
This is what aider does, using tree sitter to extract the AST from each source file. It uses the ASTs to build a call graph. And then does a graph optimization to identify the most relevant parts of the code base, given the current state of the LLM chat.

There’s more details in this article:

https://aider.chat/2023/10/22/repomap.html

Re:Show HN: FileKitty – Combine and label text files for LLM... by arthurcolle on Wednesday May 01, 2024 @10:43PM (#40232222)
aider is super limited. solid approach but needs a lot of work to make it usable
Re:Show HN: FileKitty – Combine and label text files for LLM... by _andrei_ on Thursday May 02, 2024 @07:53AM (#40235069)
Ah wasn't aware, nice work!