Extend
LSP
Let agents check diagnostics and fix errors.
#The loop
- Edit: the agent writes or changes code.
- Check: the agent pulls LSP diagnostics for the touched files.
- 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