AI coding assistant with a command tool and file editing by line id.
Minimal Claude Code alternative. Single Python file, zero dependencies, ~1200 lines. Inspired from nanocode by 1rgs.
bash runs a command (cmd.exe on Windows), with an optional timeout, working directory, or background mode. read pages through a file; with ids=true each line gets a short stable id, and replace, insert and delete edit by those ids, so edits are exact without repeating the old text. memory keeps project notes in .ucoder/ucoder.db.
| Key | Action |
|---|---|
Ctrl+C |
Interrupt the running turn; at the prompt, quit (as does Ctrl+D) |
Ctrl+G |
Open the current input in $EDITOR (vim by default); save and quit to send |
Ctrl+U / Ctrl+K |
Delete to start / end of line |
Ctrl+W |
Delete previous word |
Ctrl+A / Ctrl+E |
Jump to start / end of line |
Ctrl+R, ↑ / ↓ |
Search / browse input history, kept per project |
Single file. Copy ucoder.py or download it, then run it with Python 3.9+ (no dependencies):
curl -O https://raw.githubusercontent.com/EmilioSchi/ucoder/main/ucoder.py
python3 ucoder.pyPortable executable. No Python needed: download the binary for your platform (Linux, macOS, Windows) from Releases, then on Linux/macOS chmod +x it and run it.
