Clarx

Interactive TUI

Keyboard-driven dashboard for exploring scores, issues, and rule details in the terminal.

Interactive TUI

In a TTY, clarx score defaults to an interactive terminal UI (--ui tui). The TUI is built from pure ANSI string components — no React, no Ink, no browser. Rendering lives in packages/cli/src/presentation/tui/.

Machine-readable formats (--format json, markdown, or sarif) always use plain text output and skip the TUI.


Layout

┌─ Score header + pillar summary ─────────────────────────────┐
│  Scrollable body: pillars, issue cards, migrations          │
├─────────────────────────────────────────────────────────────┤
│  › command prompt (main view only)                          │
│  context-aware keyboard hints                               │
└─────────────────────────────────────────────────────────────┘

The body scrolls; the prompt and hints stay pinned to the footer.


Main dashboard

The main view shows:

  • AI-readiness score and pillar breakdown
  • Selectable pillar rows with inline WARN / REC issue cards
  • Optional migration opportunities and verbose rule output (--verbose)
  • Command transcript after running text commands (e.g. show all, copy all)

Keyboard shortcuts — main view

KeyAction
/ Scroll the body when content is clipped; at the scroll edge, move between pillars
PgUp / PgDnPage-scroll the body
TabNext issue in the selected pillar (only when 2+ issues)
EnterOpen rule detail view for the selected issue
/Start filtering issues by rule ID or message
cCopy fix text for the selected issue
rRescan the repo
qQuit

Enter opens a formatted detail screen — it does not launch $EDITOR.

Filter mode (/…)

KeyAction
typeNarrow pillars and issues
EnterApply filter and return to main view
EscCancel filter

Command prompt

Type rule IDs (C3), section letters (C), or commands (show all, copy all, r). History is available with / while typing.

KeyAction
EnterRun command
/ Command history
EscClear buffer

A rule ID like C3 opens the detail view directly instead of dumping plain text into the transcript.


Rule detail view

Press Enter on an issue, or type a rule ID at the prompt, to open a colored detail screen:

  • Rule ID, severity badge, and title
  • Pillar and severity
  • Engine finding message (when the rule failed)
  • File locations
  • Why this matters and How to fix it

Keyboard shortcuts — detail view

KeyAction
EscReturn to main dashboard
/ Scroll detail content
PgUp / PgDnPage scroll
cCopy fix text
TabNext issue in the pillar (only when 2+ issues)

Esc priority: detail → main, then clear command buffer, then quit.


Watch mode

Pair with --watch (or -w) to rescan on file changes:

clarx score --watch

The TUI shows refresh status and the last changed file path.


Text mode

Use --ui text for a readline-style prompt (no dashboard):

clarx score --ui text

Non-TTY environments (CI, pipes) default to text mode automatically.

The legacy --ui ink alias is still accepted and maps to tui.