(Next / Chat)

Chat

Streaming conversations, tool calls and context management.

Updated Nov 5, 2026
On this page5

Chat is the default entry point. It streams model output, can call registered tools, and writes every turn to the local conversation store.

A conversation lifecycle

Build context

The server loads the system prompt, recent turns and any memory the user has enabled. Context is trimmed to the selected model's window.

Route the model

The model router resolves the selected provider and model. Local runtimes are preferred when configured.

Stream and call tools

Tokens stream to the browser. Tool calls pause the stream, execute through the tool registry, then resume with the result.

Persist

The final turn, tool calls and citations are written to SQLite. Nothing is sent to a hosted service.

Model selection

The composer lists every available model. Local models are grouped separately from cloud models, and the current context window is shown next to each entry.

Terminal
curl http://localhost:7000/api/models

Tool calls

Tools are declared with a name, description and JSON Schema. The model decides when to call them; the server validates arguments before execution.

Context management

  • Recent turns are always included.
  • Older turns are summarized when the window fills.
  • Memory results are injected only when memory is enabled for the conversation.
  • Uploaded documents are retrieved per query rather than pasted in full.

Keyboard shortcuts

ShortcutAction
EnterSend message
Shift + EnterNew line
Cmd/Ctrl + KSearch the workspace
EscStop streaming