cortex-tms dashboard
The cortex-tms dashboard command launches a full-screen interactive terminal UI showing real-time governance health for your TMS project β file tiers, staleness, sprint progress, validation status, and Guardian results in one place.
Synopsis
Section titled βSynopsisβcortex-tms dashboard [options]Description
Section titled βDescriptionβThe dashboard is built with React + Ink β it runs entirely in your terminal, no browser required. Navigate between three views using the 1, 2, 3 keys and quit with q or Ctrl+C.
Options
Section titled βOptionsβEnable auto-refresh. The dashboard re-runs collectTMSStats() every 5 seconds and updates all cards.
cortex-tms dashboard --live--cwd <path>
Section titled β--cwd <path>βRun the dashboard against a different project directory instead of the current working directory.
cortex-tms dashboard --cwd /path/to/projectNavigate with number keys:
| Key | View | What you see |
|---|---|---|
1 | Overview | Governance score, staleness, sprint progress |
2 | Files | HOT files list, tier distribution, file size health |
3 | Health | Validation status, Guardian violations |
q | β | Quit the dashboard |
Overview View
Section titled βOverview ViewβGovernance Health Score
Section titled βGovernance Health ScoreβA composite 0β100 score calculated from validation status, Guardian results, and staleness data.
| Deduction | Reason |
|---|---|
| β40 pts | Validation errors |
| β20 pts | Validation warnings |
| β30 pts | Guardian major violations |
| β15 pts | Guardian minor issues |
Color coding: π’ green (80+) Β· π‘ yellow (60β79) Β· π΄ red (below 60)
Staleness Card
Section titled βStaleness CardβShows git-based doc freshness when staleness detection is configured.
- Stale docs β count of docs flagged as outdated
- Total checked β how many governance docs were scanned
- Freshness % β percentage of docs still current
- Oldest doc β days since the least-recently-updated doc was touched
Only shown when staleness data is available (requires full git history).
Sprint Progress Card
Section titled βSprint Progress CardβReads your NEXT-TASKS.md sprint header and task markers:
- Sprint name and focus area
- Visual progress bar
- Done / In Progress / Todo task counts
Shows a βNot Configuredβ card if no sprint is detected in NEXT-TASKS.md.
Files View
Section titled βFiles ViewβHOT Files Card
Section titled βHOT Files CardβLists all files currently tagged as HOT tier β the files your AI agents will always read.
File Distribution Card
Section titled βFile Distribution CardβBar chart breakdown of HOT / WARM / COLD file counts across your project.
File Size Health Card
Section titled βFile Size Health CardβHighlights any docs that are approaching or exceeding line limits (Rule 4). Only shown when oversized files are detected.
Health View
Section titled βHealth ViewβValidation Card
Section titled βValidation CardβMirrors the output of cortex-tms validate:
- Status β Healthy / Warnings / Errors / Unknown
- Violation count β number of issues found
- Last checked β relative timestamp of last validation run
Guardian Status Card
Section titled βGuardian Status CardβShows the result of the last cortex-tms review run:
- Status β No violations / Minor issues / Major violations / Unknown
- Total violations β full count
- High-confidence violations β filtered to β₯70% confidence
- Last checked β relative timestamp
Examples
Section titled βExamplesβ# Open the dashboard and browse manuallycortex-tms dashboard# Auto-refresh every 5 secondscortex-tms dashboard --live# Dashboard for a project in another directorycortex-tms dashboard --cwd ~/projects/my-apiKeyboard Controls
Section titled βKeyboard Controlsβ| Key | Action |
|---|---|
1 | Switch to Overview view |
2 | Switch to Files view |
3 | Switch to Health view |
q | Quit |
Ctrl+C | Force quit |
How It Works
Section titled βHow It WorksβThe dashboard calls the same collectTMSStats() pipeline used by cortex-tms validate and cortex-tms status. All data is read from:
.cortexrcβ project configurationNEXT-TASKS.mdβ sprint detection- Git history β staleness detection (requires
fetch-depth: 0in CI) - Last validation/review results β validation and Guardian cards
No external API calls are made. All data is local.
Related Commands
Section titled βRelated Commandsβcortex-tms validateβ run health checks (feeds the Health view)cortex-tms statusβ text-only health summary (no interactive UI)cortex-tms reviewβ Guardian pattern review (feeds the Guardian card)