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:
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
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.