Get started
Install tx0, check a project, then connect your editor, your coding agent and CI. tx0 is early: it checks Go, Python, JavaScript, TypeScript, Java and C with 1183 rules so far.
Install
Use whichever you already have. The install script downloads the build for your system and checks its SHA-256 sum; npx and uvx run tx0 without installing it.
-
curl -LsSf https://tx0.io/install.sh | sh -
powershell -c "irm https://tx0.io/install.ps1 | iex"
Installs the tx0 binary into ~/.local/bin after checking its SHA-256 sum. Builds for Linux, macOS and Windows, on x86_64 and arm64.
-
npx @tx0/cli check -
npm install -g @tx0/cli
@tx0/cli from npm; npx runs it without installing. Linux, macOS and Windows, on x86_64 and arm64.
-
uvx tx0 check -
pip install tx0
tx0 0.1.0a3 from PyPI; uvx runs it without installing. Linux, macOS and Windows, on x86_64 and arm64.
Install also lists the archives and the build from source. Check that it runs:
$ tx0 --version
tx0 0.1.0-alpha.3 Check a project
In the root of a project, run tx0 check. It needs no configuration: without a tx0.toml, the 353 rules of the default tier run.
$ tx0 check
warning[tx0/go:self-assignment]: `total` is assigned to itself
--> api/order.go:14:2 WQ9WMD91C
|
14 | total = total
| ^^^^^
|
= note: an assignment of a value to itself has no effect
warning[tx0/go:lost-cancel]: the cancel function of `context.WithTimeout` is discarded
--> api/order.go:19:11 7778HC4RC
|
19 | ctx, _ = context.WithTimeout(ctx, 2*time.Second)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: call it when the work is done, usually with `defer`, to release the context
warning[tx0/python:duplicate-condition]: `status == 429` is tested earlier in this chain, so this branch never runs
--> jobs/retry.py:6:10 74RVF0NHX
|
6 | elif status == 429:
| ^^^^^^^^^^^^^
2 | if status == 429:
| ^^^^^^^^^^^^^ first tested here
3 findings in 2 files; 8 files checked, 0 from the cache, 0 findings suppressed Each finding starts with its level and rule, then the location and the finding's id, the code with the part in question underlined, and what to do about it. The exit code is 1 here because the findings fail the gate. Check a project explains the output, fixes and the cache.
Connect your editor, agent and CI
- Coding agents
- Add the tool server with
claude mcp add tx0 -- tx0 mcpand the post-edit hooktx0 hook.tx0 init --agentsprints the configuration for several clients. - Editors
tx0 lspis a language server. Any editor that can start one shows tx0's findings as you type.- CI
tx0 check --since BASE --format sarifreports what a pull request introduced, for a code scanning service. On GitHub, the action does this in one step.
Read on
- Configure: the tier, excluded paths, rule levels and the gate in
tx0.toml. - Suppress a finding with a reason and an expiry date.
- Start on existing code with a baseline, so only new findings count.
- Rules: all 1183, by language and tier.