Overview
Thehive tui command launches an interactive terminal user interface (TUI) for monitoring and controlling agent execution.
Options
LLM model to use (any LiteLLM-compatible name)
Features
Agent Picker
When you launch the TUI without specifying an agent, you get an interactive agent picker:- Browse available agents in
exports/ - See agent descriptions and metadata
- Select an agent to run
Live Execution Monitor
Once an agent is loaded: Execution View:- Real-time node execution status
- Current node being processed
- Execution path visualization
- Step count and timing
- Live LLM conversations
- Tool calls and results
- Decision reasoning
- Input/output for each node
- Current status (running, paused, completed, failed)
- Token usage
- Execution time
- Model being used
Interactive Input
The TUI includes a chat-style interface:- Enter input naturally (auto-formatted with Haiku)
- Support for JSON input
- Session memory across inputs
- Special commands (see below)
Session Management
- Resume from paused sessions
- Resume from checkpoints
- View session history
- Export session data
Keyboard Shortcuts
Cycle between panels (chat input, conversation history, node view)
Graceful shutdown (saves session state)
Exit TUI
Pause execution (at next node transition)
Resume paused execution
Clear screen
Navigate conversation history
Scroll conversation panel
Special Commands
While in the TUI, you can enter special commands in the input field:Show help and available commands
Show agent information (name, goal, nodes, edges)
List all nodes in the agent graph
Show current execution status
Pause execution at next node transition
Resume paused execution
Reset conversation state and agent session
List available sessions for this agent
List checkpoints for current session
Export current session data to file
Exit TUI (same as Ctrl+D)
Examples
Launch TUI with Agent Picker
Launch with Specific Agent
Resume from Session
Using Special Commands
Panels
The TUI is organized into several panels:Header
- Agent name
- Current status
- Model being used
Execution Path
- Visual representation of node flow
- Current node highlighted
- Completed nodes marked with ✓
Conversation History
- Scrollable conversation log
- LLM messages
- Tool calls and results
- Decision reasoning
- Timestamps
Input Field
- Chat-style input
- Command completion
- Input history (Up/Down arrows)
Status Bar
- Execution state
- Step count
- Token usage
- Elapsed time
- Model name
Color Scheme
- Green: Success states, completed nodes
- Yellow: Running, in-progress
- Red: Errors, failed nodes
- Blue: Information, node names
- Cyan: Tool calls, special commands
- Gray: Timestamps, metadata
Exit
To exit the TUI:- Ctrl+D or Ctrl+C: Graceful shutdown (saves session state)
- /quit command: Exit via command
Advanced Features
Multi-Panel Layout
PressTab to cycle focus between:
- Input field
- Conversation history (scrollable)
- Node view (if available)
Session Export
Export the current session data:- Conversation history
- Execution path
- Memory state
- Metadata
Real-Time Updates
The TUI updates in real-time:- Node transitions appear instantly
- Token usage updates live
- Streaming output shows as it’s generated
Troubleshooting
TUI doesn’t render correctly:- Ensure terminal supports 256 colors
- Minimum terminal size: 80x24
- Try resizing terminal window
- Disable verbose logging
- Reduce conversation history size
- Use
--quietmode
- Use PgUp/PgDn to scroll
- Increase terminal size
- Export session and view in editor