Documentation Navigation
Extend

LSP

Let agents check diagnostics and fix errors.

#The loop

  1. Edit: the agent writes or changes code.
  2. Check: the agent pulls LSP diagnostics for the touched files.
  3. Fix: the agent repairs reported errors before moving on.

#Configure

lsp.json
{
  "typescript": { "command": ["typescript-language-server", "--stdio"] },
  "python": { "command": ["pylsp"] }
}
  • Per extension: each language maps to its own server command.
  • Command: any stdio-capable language server binary works.

#See also

Agents · Formatters · Toolset