The SimpleTUI is now fully integrated into the real agent execution. No more demos - it's live!
cargo run --release -- agent --tui --agentic --goal "Your goal here"Or with a goal file:
cargo run --release -- agent --tui --agentic --goal-file path/to/goal.jsonWhen you run the agent with --tui, you'll get a real-time interactive terminal showing:
- Status Header - Agent state (Initializing → Running → Completed)
- Progress Bar - Current iteration and what action is being performed
- Live Activity Log - Real-time stream of:
→Actions being performed💭Reasoning stepsℹ️Info messages⚠️Warnings❌Errors
- Interactive Controls:
- P - Pause/Resume the agent
- Q - Quit
The TUI Manager now:
- ✅ Creates a
SimpleTUIby default - ✅ Spawns it in a background task
- ✅ Sends all agent updates through the
AgentControlChannel - ✅ Updates in real-time as the agent works
- ✅ Responds to human pause/resume commands
-
TuiManager (
tui/mod.rs)- Added
SimpleTUIsupport - Added
AgentControlChannelintegration - Modified
update_status()to broadcast to channel - Modified
update_iteration()to broadcast to channel - Modified
add_log()to broadcast to channel - Added
spawn_simple_tui()method
- Added
-
AgenticExecutor (
agentic.rs)- Spawns SimpleTUI as background task
- TUI runs independently of agent execution
Agent Executor
↓ calls tui.update_status()
TuiManager
↓ sends via channel.state_tx
AgentControlChannel
↓ receives via channel.state_rx
SimpleTUI (Background Task)
↓ renders at 30 FPS
Your Terminal
# Use old TUI (if you prefer the broken one for some reason)
export FLUENT_USE_OLD_TUI=1
# Then run
cargo run --release -- agent --tui --agentic --goal "test"# Simple goal
cargo run --release -- agent --tui --agentic --goal "write hello world to test.txt" --max-iterations 5- Start the agent
- Press P to pause
- Watch status change to "Paused"
- Press P again to resume
- Agent continues
Make sure:
- You're running in a real terminal (not piping output)
- You have the
--tuiflag - Your terminal supports ANSI colors
reset# Run without --tui flag
cargo run --release -- agent --agentic --goal "test"The SimpleTUI shows core functionality. To get the full collaborative features (approvals, modal input, etc.), the CollaborativeTUI needs similar integration - but the infrastructure is all there!
The TUI is now actually working in the real program, not just a demo!