r1code
maria-rcks/r1code
TUI em Rust para agentes de código com backends reais em CLI
Ver no GitHubInterface de terminal (TUI) em Rust para agentes de código como Claude, Codex e OpenCode. Executa prompts contra provedores reais em tempo real, com suporte a múltiplos modelos, threads de conversa e persistência de sessão.
Instalação
npx convez-ai maria-rcks/r1code1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.
Métricas
Casos de uso
- Desenvolvimento de código interativo via linha de comando
- Iteração rápida com agentes IA (Claude, Codex, OpenCode) sem sair do terminal
- Gerenciamento de múltiplas threads e sessões de coding
- Uso offline com fallback para demos quando CLI não está instalado
Veredito

Projeto técnico robusto em Rust com arquitetura event-sourced bem pensada. Preenche um nicho legítimo (t1code em Rust) mas requer instalação local e CLIs de provedores — público é desenvolvedor que vive no terminal e quer máxima eficiência.
README
A tradução para o português deste README ainda está na fila.
r1code
What if t3 code, but t1code — but in Rust?
A terminal UI for coding agents (Codex · Claude · OpenCode), built on ratatui. Memory-safe Rust, all the way down.
cargo run # launch the TUI — talks to your real codex / claude / opencode CLIs
cargo test # 120+ tests, all green
Type a prompt, hit Enter, and r1code spawns the real agent CLI for the selected provider and streams its output live into the conversation. It's the actual model — not a canned reply. No CLI installed for a provider? It falls back to an offline demo so the app still runs.
Keys
| Key | Action |
|---|---|
| Enter / Shift+Enter | Send / newline |
/ | Slash-command menu |
| Ctrl+K | Command palette |
| Ctrl+N | New thread |
| Ctrl+J | Terminal drawer |
| Ctrl+Shift+M | Model picker |
| Tab | Cycle focus |
| Ctrl+C | Clear draft → quit |
How it works
Three layers of memory-safe Rust:
- Pure logic — keybindings, markdown, layout, slash commands, theme, and the rest, each ported with its own tests.
- Orchestration (
orchestration/) — an event-sourced engine (command → decider → event → projector → read model) modeling projects, threads, turns, and sessions. - Backend (
backend/) — real provider adapters that spawncodex exec --json,claude -p --output-format stream-json, andopencode run --format json, parse their JSON streams, and feed events into the engine over channels.
The UI (app/ui.rs) is a close visual clone of t1code, using its exact color palette.
Config
r1code reads/writes under the r1code namespace: ~/.config/r1code/ (config), ~/.r1 or ~/.local/share/r1code (data). Override with R1CODE_HOME, R1CODE_CONFIG_HOME, R1CODE_STATE_HOME.
Headless smoke (no TTY):
R1CODE_HEADLESS=1 cargo run
R1CODE_HEADLESS=1 R1CODE_PROVIDER=claude R1CODE_MODEL=claude-fable-5 cargo run
Lineage: T3 Code by @t3dotgg → t1code (in your terminal) → r1code (in Rust). MIT.