3 ms·
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.
by zby 10mo 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.
- anamexis 10mo agoYou could use a CLI frontend for LSP, e.g. https://github.com/valentjn/lsp-cli 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?
- wild_egg 10mo agoCLIs 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.
- anamexis 10mo agoWell you need to use context space somehow, to tell Claude that the LSP CLI exists and how to use it.
- wild_egg 10mo agoIt takes a dozen tokens to put "when you need to do X, run `foo --help` and use it" in your CLAUDE.md. Plenty of MCPs and plugins and whatnot out there idly consuming 5-25k tokens 24/7. How is that the same?
- anamexis 10mo agoBecause you can enable/disable MCPs and plugins just like you can choose not to include that context in CLAUDE.md . I do it all the time. I have several MCPs configured but only enable them on demand.