Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Well you need to use context space somehow, to tell Claude that the LSP CLI exists and how to use it.


It 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?


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: