Skip to main content

Admin Console (TUI)

The Admin Console is Neural Commander's interactive terminal dashboard. It provides real-time visibility into daemon operations, session tracking, intelligence extractions, and alerts - all from a single keyboard-driven interface.

Built on the Bubble Tea framework with Lipgloss styling.

Quick Start​

# Launch the console
ncmd admin

Press number keys to switch between views:

KeyViewWhat It Shows
1DashboardSystem overview, counts, recent activity
2MonitorLive event stream from NC daemon
3IntelligenceBrowse extracted intelligence
4SessionsClaude Code session tracking
5AlertsActive alerts from CLAUDE.md

Press q to exit.

Views​

Dashboard​

Bird's-eye view of NC operations showing event counts, intelligence extraction stats, active sessions, and alert summary.

╔══════════════════════════════════════════════════════════════╗
║ Neural Commander Admin Console ║
╠══════════════════════════════════════════════════════════════╣
║ ║
║ System Status: ✅ HEALTHY Memory: 12.3% [OK] ║
║ ║
║ Events: 1,247 Intelligence: 89 Sessions: 3 ║
║ Alerts: 1 (0 critical, 1 warning) ║
║ ║
║ Recent Events: ║
║ 14:32:15 INTELLIGENCE Pattern extracted: error handling ║
║ 14:32:10 FILE_UPDATE Modified: main.go ║
║ 14:32:05 HEALTH_CHECK System healthy ║
║ ║
╚══════════════════════════════════════════════════════════════╝

Monitor​

Live stream of NC daemon events with scrolling, pause/resume, and filtering.

╔══════════════════════════════════════════════════════════════╗
║ Monitor - Live Events ▶ STREAMING (Space) ║
╠══════════════════════════════════════════════════════════════╣
║ ║
║ 14:35:42 [INTELLIGENCE] neural-commander ║
║ Pattern extracted: error recovery in daemon.go ║
║ ║
║ 14:35:41 [FILE_UPDATE] neural-commander ║
║ Modified: internal/daemon/controller.go ║
║ ║
║ 14:35:38 [HEALTH_CHECK] system ║
║ CPU: 42% | Memory: 8.2GB | Goroutines: 18 ║
║ ║
║ Events: 1,247 | Buffer: 42% | Rate: 12/sec ║
╚══════════════════════════════════════════════════════════════╝

Controls: Space to pause/resume, Up/Down to scroll, End to resume auto-scroll.

Intelligence​

Browse intelligence extractions sorted by confidence score.

IconTypeDescription
PatternRecurring code patternsDetected in your codebase
DecisionArchitecture decisionsCaptured from sessions
PracticeBest practicesRecommended approaches
InsightObservationsContextual insights

Sessions​

Track Claude Code sessions across your projects with state filtering.

StatusMeaning
ActiveSession in use (< 2 min since activity)
IdleInactive (2-5 minutes)
CrashedTerminated unexpectedly (> 5 minutes, no process)

Press f to cycle filters: All, Active, Idle, Crashed.

Alerts​

View NC Active Alerts parsed from your project's CLAUDE.md file, showing severity, ID, title, and details.

Press f to filter by severity: All, Critical, Warning, Info.

Safety Controls​

The Admin Console includes built-in resource protection:

ControlSettingPurpose
Event Buffer1,000 events / 50 MBBounded storage with FIFO eviction
Batch Processor1-second windowAggregates high-volume events
Rate Limiter60 events/sec, 10 FPSPrevents UI overload
Memory Monitor200 MB maxHard limit with auto-GC on breach

These ensure the console never overwhelms your system, even with 1,000+ events per second.

Data Sources​

The console reads from four sources (all read-only):

SourceLocationView
Daemon events~/.neural-commander/daemon.logMonitor, Dashboard
Intelligence DB~/.neural-commander/intelligence.dbIntelligence
Claude sessions~/.claude/projects/Sessions
Alert sectionsProject CLAUDE.mdAlerts

All data sources are optional. The console gracefully handles missing sources with empty views.

Keyboard Reference​

Global Keys​

KeyAction
1-5Switch views
q / Ctrl+CQuit
KeyAction
Up / kMove up
Down / jMove down
HomeJump to top
EndJump to bottom
PgUp/PgDownScroll page

View-Specific​

KeyViewAction
SpaceMonitorPause/resume stream
fSessions, AlertsCycle filter
rSessions, AlertsRefresh data

Prerequisites​

  • NC daemon running: ncmd daemon start
  • Terminal with 256-color support

Troubleshooting​

No Events in Monitor​

  1. Check daemon is running: ncmd daemon status
  2. Verify log exists: ls ~/.neural-commander/daemon.log
  3. Trigger activity by modifying a file in a monitored project

High Memory Warning​

Header shows Memory: 85% [WARNING] - this is normal during high event volume. The console auto-manages memory at 95% (clears buffer + runs garbage collection).

Sessions Not Showing​

Verify Claude Code sessions exist: ls ~/.claude/projects/


The Admin Console is part of NC's observability layer. It pairs with Active Alerts for notifications and Session Intelligence for session management.