Repository navigation
AI integration through a program of your choice, with several models.
Install
Linux (x86_64, aarch64, armv7, armv6: the installer picks the one of the machine):
curl -fsSL https://github.com/lejubila/xted/releases/latest/download/install.sh | sh
Windows, in PowerShell (x86_64 or ARM64):
irm https://github.com/lejubila/xted/releases/latest/download/install.ps1 | iex
New
- AI (AI menu and palette). xted does not talk to AI services itself: it runs the program set with
ai =in the user config, which reads the request on stdin and writes the answer on stdout. Keys, models and connections stay with that program. With noai =nothing is ever sent, and a project's.xtedcannot set it.ai = claude -p # Claude Code ai = llm -m some-model # llm ai = ollama run qwen2.5-coder # a local model with Ollama- The request has the file name and language, the file (at most
ai_contextlines around the part, 2000 by default) and the part: the selection, or the function or method at the cursor. It is written to a temporary file in xted's state folder and removed afterwards. The answer arrives while you keep typing (AI…in the status bar). F2«Change with the AI…» asks what to do and shows the proposal in an «[AI] proposal» pane of differences:Enterapplies it (oneCtrl+Ztakes it back),Escdiscards it. If the file changed meanwhile, the proposal is not applied.Up/Downin the prompt bring back earlier instructions.Shift+F2«AI chat» opens an «[AI]» pane; the conversation goes with the next messages, with the file and selection it was opened from.Enteron a code block of an answer puts it into the file at the cursor.- «Explain with the AI», «Document with the AI», «Fix the error with the AI» (the error reached with
F8), «New AI chat», «Stop the AI».
- The request has the file name and language, the file (at most
- Several AI models: name them in an
[ai]section and letai =pick one:«AI model…» lists them (ai = sonnet [ai] sonnet = claude -p --model sonnet opus = claude -p --model opus local = ollama run qwen2.5-coderEnteruses one,Insadds,Ctrl+Echanges the command,Delremoves) and writes the user config at once. The status bar shows the model answering (AI sonnet…).
Notes
- The new AI menu takes room in the menu bar: below about 110 columns the Find button on the right is hidden (Find stays on its keys).
- On Windows the AI command runs through
cmd.exe; it is built and unit-tested, not yet tried with a real AI program there.
Files
xted-0.20.0-linux-<arch>forx86_64,aarch64,armv7andarmv6: the Linux binary alone (English interface).xted-0.20.0-linux-<arch>.tar.gz: the same binary with thextlink, the Italian catalog, the manual pages, the icon and the desktop entries.xted-0.20.0-windows-x86_64.zip,xted-0.20.0-windows-arm64.zip:xted.exe,xtedw.exe, the catalogs, README and LICENSE.install.sh,install.ps1: the installers above.
Check the downloads with sha256sum -c SHA256SUMS (on Windows: Get-FileHash).
- Linux: static with musl. x86_64 is built with musl-gcc; the ARM binaries with zig cc.
- Windows: MinGW-w64 (llvm-mingw), Windows 10 1809 or later.
To build from source: make, make ARCH=... or make WIN=1; see the README.
MIT license — Copyright (C) 2026 David Bigagli.