tx0 in your editor

tx0 lsp is a language server. It checks what is in the editor, saved or not, on every change, and offers fixes as quick fixes.

What the language server does

  • Checks each open file of Go, Python, JavaScript, TypeScript, Java and C from the editor's buffer, on every change.
  • Uses the same rules, tiers and tx0.toml as tx0 check, so a finding reads the same in the editor, in an agent and in CI.
  • Offers a finding's fix as a quick fix.
  • Reads tx0.toml again when you save it.

It speaks the Language Server Protocol over standard input and output. There is no editor extension yet: any editor that can start a language server can run it.

jobs/retry.py
The finding in jobs/retry.py of the sample project, where the language server puts it.

Set up an editor

Start tx0 lsp for the languages you use, next to the language servers you already have. The two configurations here follow each editor's documented way to add a language server.

They have not been tested by the project yet. If one does not work for you, please open an issue.

In any other editor with a language server client, the command is tx0 lsp, and the root of the project is the nearest directory with tx0.toml or .git.

  1. Neovim 0.11 and later

    init.lua
    vim.lsp.config('tx0', {
      cmd = { 'tx0', 'lsp' },
      filetypes = { 'go', 'python', 'javascript', 'javascriptreact',
                    'typescript', 'typescriptreact', 'java', 'c' },
      root_markers = { 'tx0.toml', '.git' },
    })
    vim.lsp.enable('tx0')
  2. Helix

    ~/.config/helix/languages.toml
    [language-server.tx0]
    command = "tx0"
    args = ["lsp"]
    
    [[language]]
    name = "go"
    language-servers = ["gopls", "tx0"]
    
    [[language]]
    name = "python"
    language-servers = ["pylsp", "tx0"]

    Add tx0 to language-servers of every language you want it for.

From a keystroke to findings

Each row is 60 edits to one file, one character at a time, timed from the change to the findings it produced. The CPU column is the time the server itself used per edit, which depends less on what else the machine does.

Measured with tx0 0.1.0-alpha.2, default tier, on a ThinkPad T14s Gen 1 (AMD Ryzen 7 PRO 4750U, 16 threads, 30 GB) that was running other work at a load average of 24 to 33, measured on 27 November 2026. How this was measured

FileSizeMedian90th pct.CPU per edit
active_deadline.gopkg/kubelet3 KB4 ms9 ms1.3 ms
textModel.tssrc/vs/editor/common/model109 KB32 ms65 ms17 ms
query.pydjango/db/models122 KB28 ms48 ms12 ms
kubelet.gopkg/kubelet171 KB24 ms41 ms15 ms