DJAndries / llmvm

A protocol and modular application suite for language models.
Mozilla Public License 2.0
85 stars 4 forks source link

Add a `@` directive to add to context #7

Open blaggacao opened 8 months ago

blaggacao commented 8 months ago

Assistant asks LSP server for all symbol positions. For each symbol, the assistant requests a type definition location. A folding range is requested for each type definition location. A text snippet is retrieved from the filesystem for each folding range


You can add particular blocks of code to the context with [...] "@" [In the prompt]

It appears to be a convenient feature to quickly add code blocks to the context by referncing them with their identifier with a @ directive.

As seen on: https://cursor.sh/features

If I understand the architecture of llmvm right, this idea is not completely off base, either. Unfortunately, I can't add any practical experience to judge if it's actually useful and productive. So please read this feature request also with a grain of salt.