Stan Cockpit GUI
The Stan Cockpit is a Tkinter-based graphical interface implementing all four phases of the Project Phoenix Agentic Framework. It provides visual plan preview, real-time execution tracing, and multi-modal output.
# Launch the Cockpit
cd domains/Stan/cockpit
python stan_cockpit.py
UI Components
Blueprint Panel (Phase 1: Glass Box)
Preview the execution plan before running. See each step, the tools that will be invoked, and their expected outputs.
| Feature | Description |
|---|---|
| Plan Preview | Visual breakdown of steps before execution |
| Tool Indicators | Each step shows the tool and parameters |
| Approve/Cancel | User control before execution begins |
Execution Trace (Phase 2: Human-in-Loop)
Real-time log of execution events with click-to-inspect functionality.
| Feature | Description |
|---|---|
| Live Logging | Events appear as execution progresses |
| Click to Inspect | Select any entry to see details |
| Pause/Resume | Control execution in real-time |
| Cancel | Abort execution at any point |
Inspector Panel (Phase 3: Progressive Disclosure)
Drill down into step details with JSON highlighting and expandable sections.
| Feature | Description |
|---|---|
| Step Details | Tool name, parameters, timing |
| JSON Viewer | Syntax-highlighted result data |
| Expandable | Show/hide nested data structures |
Artifact Workspace (Phase 4: Multi-Modal Output)
View and export results in multiple formats.
| Feature | Description |
|---|---|
| Results View | Formatted display of execution results |
| Chart Rendering | Matplotlib visualizations (if applicable) |
| Export JSON | Download results as JSON file |
| Export CSV | Download tabular data as CSV |
| Export PNG | Download charts as images |
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+N |
New query (clear and focus input) |
Ctrl+L |
Clear execution trace |
Enter |
Submit query (when input focused) |
Escape |
Cancel current operation |
Example Queries
Try these queries in the Cockpit to explore the Stan domain:
# Basic homework exploration
homework 1
homework 2
# Cross-homework comparison
compare 1 4
compare homework 1 and 3
# Search by technique
suggest classification
find KNN
# List resources
list scripts
show capabilities
# Chapter-based exploration
chapter 7
chapter 18
Menu Items
File Menu
- New Query - Clear and start fresh
- Export Results - Save current results
- Exit - Close the application
View Menu
- Clear Trace - Clear execution log
- Toggle Inspector - Show/hide inspector panel
Help Menu
- About - Version and credits
- Documentation - Open this page
CLI Alternative
For terminal-based interaction, use the Stan CLI:
# Interactive REPL mode
cd domains/Stan/cli
python main.py
Stan> list homeworks
Stan> info 1
Stan> scripts
Stan> techniques
Stan> compare 1 4
Stan> quit
# Single command mode
python main.py "homework 1"
python main.py "compare 1 4"