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.tomlastx0 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.tomlagain 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 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.
-
Neovim 0.11 and later
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') -
Helix
[language-server.tx0] command = "tx0" args = ["lsp"] [[language]] name = "go" language-servers = ["gopls", "tx0"] [[language]] name = "python" language-servers = ["pylsp", "tx0"]Add
tx0tolanguage-serversof 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
| File | Size | Median | 90th pct. | CPU per edit |
|---|---|---|---|---|
active_deadline.gopkg/kubelet | 3 KB | 4 ms | 9 ms | 1.3 ms |
textModel.tssrc/vs/editor/common/model | 109 KB | 32 ms | 65 ms | 17 ms |
query.pydjango/db/models | 122 KB | 28 ms | 48 ms | 12 ms |
kubelet.gopkg/kubelet | 171 KB | 24 ms | 41 ms | 15 ms |