← Back to context

Comment by anamexis

2 days ago

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?

      1 reply →