/help and /model while the agent streams responses in the TUI.
TUI CLI Commands
Complete reference for all TUI-related CLI commands.Quick Start
praisonai tui
Main TUI command group for interactive terminal interface.launch
Launch the interactive TUI.| Option | Short | Description |
|---|---|---|
--workspace | -w | Workspace directory |
--session | -s | Resume session ID |
--model | -m | Default model |
--debug | -d | Enable debug overlays |
--log-jsonl | Write events to JSONL file | |
--profile | Enable performance profiling |
simulate
Run a headless TUI simulation script for testing.| Argument | Description |
|---|---|
SCRIPT | Path to simulation script (YAML/JSON) |
| Option | Description |
|---|---|
--mock/--real-llm | Use mock provider (default) or real LLM |
--pretty/--jsonl | Output format |
--assert | Validate expected outcomes |
--timeout | Max execution time (default: 60s) |
snapshot
Print a TUI-like snapshot of current state.| Option | Short | Description |
|---|---|---|
--session | -s | Filter by session ID |
--run | -r | Filter by run ID |
--json | -j | Output as JSON |
trace
Replay events from persistence like a timeline.| Argument | Description |
|---|---|
ID | Session or run ID to trace |
| Option | Short | Description |
|---|---|---|
--follow | -f | Follow new events |
--limit | -n | Max events to show (default: 50) |
praisonai queue
Queue management commands.ls
List queued runs.| Option | Short | Description |
|---|---|---|
--state | -s | Filter by state (queued, running, succeeded, failed, cancelled) |
--session | Filter by session ID | |
--limit | -n | Maximum results (default: 20) |
--json | -j | Output as JSON |
cancel
Cancel a queued or running run.| Argument | Description |
|---|---|
RUN_ID | Run ID to cancel (partial match supported) |
retry
Retry a failed run.| Argument | Description |
|---|---|
RUN_ID | Run ID to retry |
clear
Clear all queued runs.| Option | Short | Description |
|---|---|---|
--force | -f | Skip confirmation |
stats
Show queue statistics.| Option | Description |
|---|---|
--session | Filter by session ID |
Environment Variables
| Variable | Description |
|---|---|
PRAISONAI_REAL_LLM | Set to 1 to enable real LLM in simulations |
PRAISONAI_TUI_DEBUG | Set to 1 to enable debug mode |
PRAISONAI_TUI_JSONL | Path for JSONL event logging |
Best Practices
Use simulation flags in CI
Use simulation flags in CI
Run
praisonai simulate with mock providers to avoid live API spend in pipelines.Enable JSONL logging for audits
Enable JSONL logging for audits
Set
PRAISONAI_TUI_JSONL when you need structured event replay after failures.Keep debug mode off in production
Keep debug mode off in production
PRAISONAI_TUI_DEBUG=1 is for local troubleshooting only — it adds verbose noise.Document slash commands for your team
Document slash commands for your team
Share a cheatsheet of
/context, queue, and simulate commands so operators behave consistently.Related
TUI Overview
Interactive terminal interface
TUI Simulation
Headless testing and CI

