# TUI Command Reference

This is the operator-facing command surface behind `/help`.

## Modes

The fullscreen TUI now has two distinct modes:

- `chat`
  - normal conversation and command composition
  - fixed runtime status rail for task, analyst/model, artifact/dataset, delegation, checkpoint, and repair state
- `audit`
  - inspection workspace for delegated work
  - task tree, child-session detail, checkpoint trail, and interrupt state

## Session commands

- `/help`
  - list available commands
- `/new`
  - start a fresh session
- `/fork`
  - branch into a new session while keeping current conversation context
- `/compact`
  - summarize older history into a fresh session and keep the recent tail

## Context and memory

- `/memory`
  - open the memory palette
  - type to search indexed observations

## Analyst and model controls

- `/analyst`
  - switch analyst role
- `/provider`
  - switch provider
- `/model`
  - open the model picker
  - can also narrow by typed prefix

## Dataset commands

- `/dataset`
  - inspect registered datasets
- `/dataset register`
  - register a typed dataset binding
- `/dataset show`
  - inspect the selected dataset

Supported dataset binding families:

- `tabular_csv`
- `chat_jsonl`
- `completions_jsonl`
- `text_jsonl`

## Actuarial artifact commands

- `/actuarial`
  - open the actuarial artifact picker
- `/actuarial list`
  - inspect available artifacts
- `/actuarial show`
  - inspect the active artifact
- `/actuarial create`
  - create a new artifact
- `/actuarial validate`
  - validate the active artifact
- `/actuarial compare`
  - compare artifacts
- `/actuarial use`
  - activate an artifact for the current session

## Actuarial job commands

- `/actuarial jobs`
  - inspect available workspaces for the active artifact
- `/actuarial job create`
  - create a new workspace copy
- `/actuarial job show`
  - inspect a workspace
- `/actuarial job run`
  - run a workspace and promote improvements
- `/actuarial leaderboard`
  - rank jobs by the active artifact metric

## How the slash flow should work

- type `/` to open live command suggestions
- use arrow keys to move through suggestions
- press `Enter` to execute the selected command
- commands that require structured choice open a picker
- `Esc` cancels the picker and returns to the composer

## Chat mode keys

- `F2`
  - switch to audit mode
- `Ctrl-j`
  - insert a newline in the composer
- `Up` / `Down`
  - history recall for single-line drafts
  - vertical cursor movement for multiline drafts
- `Left` / `Right`
  - move the cursor
- `Alt-b` / `Alt-f`
  - move by word
- `Ctrl-a` / `Ctrl-e`
  - move to line start / line end
- `Ctrl-u` / `Ctrl-k`
  - delete to line start / line end
- `Ctrl-w`
  - delete the previous word
- `Alt-d`
  - delete the next word

## Audit mode keys

- `F2`
  - return to chat mode
- `?`
  - open audit help
- `/` or `Ctrl-p`
  - open the audit jump/filter overlay
- `j` / `k` or `Down` / `Up`
  - move across sibling tasks
- `h` / `l` or `Left` / `Right`
  - drill toward parent / child task context
- `g` / `G`
  - jump to first / last task
- `-` or `Ctrl-o`
  - backtrack task focus history
- `[` / `]`
  - move focus to previous / next task
- `1` / `2` / `3` / `4`
  - switch detail focus
- `d`
  - toggle raw detail for the focused task

## Recommended operator flow

For a fresh machine:

```text
/help
/dataset register
/actuarial create
/actuarial job create
/actuarial job run
/actuarial validate
```
