BACK

lless - Down with AI, Long Live LLMs.

lless logo

Get lless!

Most tools that use LLMs are excessive and expensive. I don't need an agent framework with trillion‑parameter, billion‑dollar language models to perform the few productive, non‑wasteful tasks I want to do with LLMs. I just want to format some LaTeX or add boilerplate to my R Shiny app. I don't want an LLM to "think" for me.

lless is an agentless, chatbotless LLM interface for working in text and code in VS code editor. It is effective with moderate-sized LLMs like gpt-oss-20b and small language models (SLMs) like gemma-7b.

What is it?

Lless is a tool that lets you use language models at your discretion. There is no chatbot. There is no agent. Just a single command. When text is selected, the selection is replaced with the LLM response. If no text is selected, the response is inserted at the cursor position. Context surrounding the cursor or selection is included for context‑awareness. The amount of context can be adjusted. Works across multiple cursors. Works with remote inference (OpenRouter / Similar) or locally (Ollama).

Usage

Run the command LLESS: LLM Process (lless.process) from the command palette (Ctrl+Shift+P). Try assigning it to a keyboard shortcut. Try Ctrl+Shift+t.

If there is no selection, LLESS: LLM Process will append the response at the cursor.

lless Add Gif If you select text, run LLESS: LLM Process, and enter the transofmration you want in the prompt, the LLM response replaces the selection.

lless Transform Gif Work in prose, code, or whatever. Create a .lless file in your project root for custom instructions to be included with all LLM prompts. Try working inside a diff buffer like workbench.files.action.compareWithSavedto see exactly how text is transformed.

lless Diff Gif These settings in your VS Code settings.json help with visualization:
  "diffEditor.renderSideBySide": false,
  "workbench.colorCustomizations": {
    "diffEditor.insertedTextBackground": "#00ff007c",
    "diffEditor.removedTextBackground": "#ff00007c",
    "diffEditor.insertedLineBackground": "#12360e66",
    "diffEditor.removedLineBackground": "#72333666"
  }
Both operations work across multiple cursors. lless Multi Cursor Gif

Setup

Here are some setup steps. The app will work with any LLM inference API that uses the same standard as Open Router.

OpenRouter

1. Get an API key from OpenRouter enter it in the lless:Api Key setting.

2. Set Open Router as your model provider.

3. Use base url https://openrouter.ai/api/v1.

4. Select a model from here and enter it in the lless:Model setting.

5. (Optional) Change the default context lines to send with the prompt in the lless:Context Lines setting.

Ollama

1. Install Ollama.

2. Set Ollama as your model provider.

3. Pull a model. For example ollama pull gpt-oss:20b

4. Run ollama server ollama serve

5. Set your model in lless:Model setting.

6. (Optional) Change the default context lines to send with the prompt in the lless:Context Lines setting.