← Back to context

Comment by zby

2 days ago

LSPs should expose their api through shell commands - then integrating it with any LLM would be trivial. And it would also be very useful for humans.

You could use a CLI frontend for LSP, e.g. https://github.com/valentjn/lsp-cli

But why would that be better than LLMs using the LSP with a dedicated tool rather than a shell command tool?

  • CLIs don't use context space when unused. I find them almost universally preferable just because of that.

    Models get stupid after the first 80-100k tokens are used so keeping bloated tools out of the window unless completely necessary is a pretty hard requirement for effective AI use IMO.