Live Dashboard
Rampart provides two ways to monitor agent activity in real time:- TUI (Terminal UI) โ Colored event stream in your terminal
- Web Dashboard โ Browser-based UI with filtering, approval buttons, and command testing
Terminal UI (TUI)
Watch live events as they happen:Event Indicators
| Icon | Decision | Color | Meaning |
|---|---|---|---|
| โ | allow | green | Command allowed and executed |
| ๐ด | deny | red | Command blocked by policy |
| ๐ก | watch | yellow | Command logged but allowed |
| ๐ค | ask | blue | Approval required |
TUI Features
- Live streaming: New events appear instantly
- Auto-scroll: Latest events always visible
- Color coding: Quickly identify denies and approvals
- Summary stats: Total events, breakdown by decision
- Lightweight: Runs in any terminal, minimal resource usage
Keyboard Controls
| Key | Action |
|---|---|
q | Quit |
Space | Pause/Resume auto-scroll |
โ/โ | Scroll through history |
r | Refresh |
Web Dashboard
Whenrampart serve is running, access the web dashboard at:
Dashboard Tabs
1. Active โ Live Event Stream
Real-time view of tool calls as they happen:- Live updates: Events appear instantly without page refresh
- Filtering: Filter by tool, decision, agent, session
- Approve/Deny: Click buttons to resolve pending approvals
- Copy commands: Click to copy command text for inspection
2. History โ Past Events
Browse and search historical audit logs:- Time range: Select date range with calendar picker
- Tool filter: Show only
exec,read,write,fetch, ormcp - Decision filter: Filter by
allow,deny,watch,ask - Session filter: Show events from specific git repos/branches
- Export: Download filtered results as JSON or CSV
3. Policy โ Loaded Rules
View and test your active policy:- Rule list: See all loaded policies and their priorities
- Try a command: REPL-style command tester
- Type a command:
rm -rf /tmp/build - See the decision:
deny(matched:block-destructive) - No execution โ pure dry-run evaluation
- Type a command:
- Policy reload: Manually reload after editing policy files
Dark and Light Themes
The dashboard automatically matches your system theme. Toggle manually:- Dark mode: Click moon icon
- Light mode: Click sun icon
Starting the Dashboard
Approval Workflow in Dashboard
When anaction: ask rule triggers:
- Event appears in Active tab with status
pending - Approve or Deny buttons are enabled
- Click Approve: Command executes immediately
- Click Deny: Command is blocked, error returned to agent
- Event updates to show resolution time and user
Example: Pending Approval
Example: Resolved Approval
Command Testing REPL
Test commands against your policy before they run:Filtering Events
By Tool
Show only exec commands:By Decision
Show only denies:By Session
Show events from a specific repo/branch:Exporting Dashboard Data
Export filtered events:- Apply filters (tool, decision, time range)
- Click Export
- Choose format: JSON or CSV
- File downloads with filtered events
Real-Time Updates
The dashboard uses Server-Sent Events (SSE) for live updates:- No polling: Events pushed from server instantly
- Low latency: Sub-100ms from policy decision to dashboard
- Auto-reconnect: Dashboard reconnects if connection drops
Authentication
By default, the dashboard runs onlocalhost with no authentication. For remote access, use authentication:
Authorization header.
Accessing from Remote Host
Use SSH port forwarding:http://localhost:9090/dashboard/ on your local machine.
Performance
- Event latency: < 50ms from decision to dashboard
- Max throughput: 1,000+ events/sec
- Resource usage: < 10 MB RAM, < 1% CPU
- Browser support: Chrome, Firefox, Safari, Edge (evergreen)
Mobile Support
The dashboard is responsive and works on mobile browsers:- Portrait mode: Single-column layout
- Landscape mode: Desktop-like layout
- Touch support: Swipe to scroll, tap to approve/deny
Accessibility
- Keyboard navigation: Tab through interactive elements
- Screen reader support: Semantic HTML, ARIA labels
- High contrast: Meets WCAG AA standards
Dashboard API
The dashboard consumes the same HTTP API available to all clients:| Endpoint | Method | Purpose |
|---|---|---|
/v1/events/stream | GET | SSE stream of live events |
/v1/approvals | GET | List pending approvals |
/v1/approvals/{id}/resolve | POST | Approve or deny |
/v1/preflight/exec | POST | Dry-run command test |
/v1/policy/reload | POST | Reload policy files |
Troubleshooting
Dashboard Not Loading
Check thatrampart serve is running:
Events Not Appearing
Verify agent integration:Slow Updates
Check network latency:{"status":"ok"} in < 10ms.
See Also
- Approval Flow โ Human-in-the-loop approvals
- Audit Trail โ Hash-chained audit logging
- Webhook Notifications โ Push notifications