Skip to content

The TUI

C2 ships a terminal UI (built with ratatui) that links the same core as the desktop app — same engine, same SQLite store, same sessions.

sh
cargo run -p codetwo-tui

Layout

  • Left — the session list.
  • Right, top — the transcript (streamed agent text, thoughts, tool calls, plans).
  • Right, bottom — the compose area: skill chips you've added plus a text input.
  • Bottom bar — status, current provider/mode, and the key hints.

Keys

KeyAction
type + Entersubmit the prompt (creates a session on first run)
/open the skill picker (↑/↓, Enter to add, Esc to close)
Tabcycle provider
Ctrl+Nnew session
Ctrl+Kcycle permission mode
Ctrl+C / Escquit

When a permission request arrives, a prompt overlay appears — press the number of the option to choose it, or Esc to cancel.

Notes

The document-style, block-based editing is a desktop feature; in the TUI you compose with a text input plus inline skill chips (the same skills, compiled the same way). The rich Source Control and browser panels are desktop-only today.

Apache-2.0 licensed.