What the TUI is for
The TUI is the fastest way to poke at the loop without writing extra code. It is useful for:- trying prompts
- watching streamed output
- seeing when tool calls happen
- checking that your saved provider configuration works
loop.RunLoop.
Starting a session
Run:~/.config/hrns/config.json. After that, it prints the active provider and model and waits for input.
Built-in commands
Change model
Reset conversation
Show help
List saved providers
Add a provider
What gets streamed back
The loop emits chunk types and the TUI renders them differently:- assistant text chunks
- reasoning chunks
- tool call start notifications
- error chunks
Session behavior
The TUI keeps amessages slice in memory and appends your prompts plus assistant/tool messages after each turn. That means later prompts in the same session include earlier context unless you run /new.
Provider state is slightly different:
- the provider client is built once when the TUI starts
/modelpersists a new model value for the current provider/connectsaves another provider, but the active session keeps using the client that was already created
Good prompts for exploration
Use prompts that make the model inspect the repo:Known limits
- The system prompt is hardcoded.
- Provider switching is not live; restart after
/connect. - There is no non-interactive
execmode. /modelexpects an argument.