Getting Started - TUI¶
This guide walks through URSA's terminal user interface (TUI): starting it with
the ursa CLI command, chatting with the default assistant, and running the
planning and execution agents.
Prerequisites¶
- URSA is installed. See Getting started.
- You have access to an LLM endpoint.
- You have a dedicated workspace directory for files URSA may create or modify.
Be aware of your workspace
The execution agent can write files and run shell commands. Be careful using workspaces with source tree or data directory you cannot risk modifying. Good practice is to make backups or copies of directories before working.
1. Start with the default configuration¶
OpenAI works without a config file. Set the API key in your shell:
The built-in openai provider supplies the model and base URL. Use a persistent
user configuration
only when you need to change a default or select another provider.
2. Start URSA¶
You should see the full-screen URSA interface. Type / to browse app
commands, # to route a message to an agent, or @ to insert a workspace
path.
Use /status to see the context window and its 70% summarization threshold
(or the default fallback, which individual agents can override), plus the source
of the context limit. The Config tab shows the effective
tokens_before_summarize; comments preserve the configured fallback values.
Set tokens_before_summarize in your config or URSA_TOKENS_BEFORE_SUMMARIZE
to change the fallback, which defaults to 50,000 tokens.
These values refresh when you switch models. For Ollama,
the allocated window may only become available after the first response.
Full-screen interface controls¶
| Input | Action |
|---|---|
/ |
Browse application commands. Use /keymap for every keyboard shortcut. |
# |
Choose an agent and route the message to it. |
@ |
Insert a workspace file or directory into the message. |
| Enter | Submit the message. |
| Shift+Enter or Ctrl+J | Insert a newline. Some terminals cannot distinguish Shift+Enter, so Ctrl+J is the portable option. |
Ctrl+Q or /exit |
Exit gracefully, waiting for an active turn to finish. |
| Ctrl+D | Exit immediately without cleanup; reserve this for a stuck turn. |
3. Chat with the assistant¶
Plain text input is handled by the default chat behavior.
4. Use the planning agent¶
Run the planning agent with the #plan macro. Typing # opens the agent
picker and inserts the selected behavior at the front of the prompt:
#plan Write a plan for building a suite of surrogate models on data.csv and performing assessment of predictive capability and uncertainty quantification.
The leading # is required; plan ... without it is ordinary chat input.
5. Use the execution agent¶
The execution agent can write files and run commands in the configured workspace.
Review the actions and outputs carefully. For more safety guidance, see Sandboxing and information control.
6. Optional: use a named agent¶
A named agent stores state so you can return to it later:
For detailed commands to list, save, copy, share, import, and delete agents, see Persistence.
Useful ursa CLI commands¶
Web tools are opt in. Use --use-web or use_web: true only when you want URSA
to make network requests through its web-search tools.