silverlake 7 days ago

Have you guys at Cline considered using LLMs to create summaries of files and complex functions? Rather than read a 500 line function, feed it a short comment on what the function is doing. I'd like to use a local LLM to create summaries at every level: function, file, directory. Then let the LLM use that to find the right code to read. This is basically how I navigate a large code base.

1
dpe82 7 days ago

I've just used Cline to produce files like that, and then later when starting a task in plan mode I tell it to read those files to get a sense of the project's structure. I also tell it to update them as necessary after whatever task we're doing is finished.

zentara_code 4 days ago

Would it double your codebase? Do you think it would work for a large codebase?

dpe82 4 days ago

Not anywhere close. It's basically just maintaining a simple descriptive index the model can later use to decide what files it needs to read given the task you've given it.

noman-land 6 days ago

So you're effectively keeping two copies of the codebase but the second copy is written in prose?

dpe82 4 days ago

It's basically an index.

Bjartr 5 days ago

aka documentation