Status (March 2026): PLANNED — Dashboard scaffolding was started in Feb 2026 but implementation is not yet complete. This spec remains the target design.
Define a terminal dashboard that shows live DEXBot2 status and provides controlled access to existing scripts/ utilities, without changing trading behavior.
- Runtime visibility for all configured/running bots
- Real-time status from
profiles/orders,profiles/logs,profiles/bots.json, and PM2 - Script execution panel for maintenance and diagnostics
- Safety controls for destructive operations
- No branch synchronization actions in the dashboard
The dashboard must not include or expose:
scripts/ptest.shscripts/pdev.shscripts/pmain.sh
These commands remain out of scope for UI-triggered operations.
profiles/bots.jsonfor bot definitions and active flagsprofiles/orders/*.jsonfor grid/fund/order state snapshotsprofiles/logs/*.logfor live event tailing- PM2 process list/status for runtime health
- Script stdout/stderr capture for action results
- Top status bar: branch, PM2 health, refresh timestamp, bot counts, warning count
- Left pane: bot list with state badges
- Center pane: selected bot detail (funds, grid, boundaries, fills)
- Right pane: action list (scripts)
- Bottom pane: log tail or command output
F1OverviewF2Bot DetailF3ScriptsF4Alerts
Badges shown in list/detail views:
RUNNING(PM2 online + recent updates)DRY(dry-run configuration)STALE(no recent file/log updates)ERROR(recent warnings/errors)STOPPED(configured but not running)
Maintenance:
node scripts/update.jsbash scripts/check-update.shbash scripts/create-bot-symlinks.sh
Diagnostics:
node scripts/validate_bots.jsnode scripts/analyze-orders.jsnode scripts/divergence-calc.jsnode scripts/print_grid.jsnode scripts/analyze-git.jsbash scripts/git-viewer.sh
Cleanup:
bash scripts/clear-logs.shbash scripts/clear-orders.shbash scripts/clear-all.sh
Wrappers:
./scripts/bots./scripts/keys
safe: read-only diagnostics and status checksconfirm: operational changes requiring y/n confirmationdanger: destructive actions requiring typed confirmation
confirmactions: explicity/nprompt in modaldangeractions: typed token confirmation (DELETE) plus target summary- All command runs show live stdout/stderr and final exit code
j/kmove selectionEnteropen selected bot/actionxexecute selected actionrrefreshltoggle logs/output pane:open command palette?help overlayqquit
- UI redraw: 4-10 FPS (adaptive)
- Core snapshots (
orders,bots): every 1-2 seconds - PM2 state: every 2-3 seconds
- Log tail updates: streaming/polling every 300-600 ms
- Heavy diagnostics: on-demand only
- Dashboard is read-mostly and sidecar-safe: bot engine keeps running if dashboard exits
- No direct mutation of core trading state except through existing script commands
- No force-push, branch sync, or irreversible git operations exposed via dashboard
- Overview + Bot Detail (read-only)
- Log/output panel with command execution plumbing
- Script action panel with safety classes
- Alerts tab (error/stale/invariant signals)
- UX polish and resilience hardening
- Shows live status for configured bots and PM2 runtime state
- Displays per-bot funds/grid/health data from current persisted files
- Executes included scripts and captures output/exit status
- Requires confirmations for cleanup actions
- Does not show or run
ptest.sh,pdev.sh, orpmain.sh