Docs/Core concepts

Interactive mode

The Gray REPL: the composer, slash-command completion, keyboard shortcuts, clipboard paste, the Ctrl-C policy and what the footer is telling you.

Source: crates/gray/src/composer

Running gray with no arguments opens the REPL. The transcript scrolls in your terminal's normal history; the composer — input box, status line and footer — stays pinned to the bottom rows of the screen. Nothing takes over the alternate screen, so your scrollback stays yours.

Keys

KeyDoes
Entersend; on an empty prompt after an interrupt or error, continue the last turn
Shift+Enter · Alt+Enter · Ctrl-Jnew line
Tabinsert the highlighted completion for editing
Ctrl-Vpaste from the clipboard — an image first, text otherwise
Ctrl-C · Esccancel the running turn
Ctrl-C at the promptclear the draft; a second press on an empty prompt within 5 s exits
Ctrl-Dexit, on an empty line

Slash commands

Type / and the command list appears. Completion knows arguments too: /context r suggests reserve, /skills lists your skills, /model lists cached model ids. Enter completes and fires; Tab inserts so you can keep typing. The full list is in Slash commands.

  • —Model, context usage and session cost, updated as the turn streams.
  • —◷ 4m — the provider's prompt cache is warm for about four more idle minutes. It hides once the cache is cold.
  • —A transcript warning such as “Cache miss after 6m idle: 45.2k tokens re-billed” when a request paid for prompt tokens the previous one should have cached.

Handy commands

bash
$/copy # copy the last assistant response
$/new # fresh conversation (aliases /clear, /reset)
$/feedback # save feedback locally and open a prefilled GitHub issue
$/help # every command, with its aliases

Join the Discord

Chat with the people building and running Gray. Show what you made with it.

Join Discord →

Need help?

Open an issue on GitHub, run /feedback from the REPL, or ask in Discord.

Open an issue →