Skip to content

Chakshu Web Dashboard Guide

Chakshu ships with a Next.js 16 (React 19 + TypeScript) web dashboard compiled into static assets and embedded directly into the Go binary (internal/ui/dist/).


Launching the Dashboard

Start the dashboard together with the transcript watcher daemon and network monitor in a single command:

./chakshu start
# Listening on http://127.0.0.1:7777

Or launch only the UI server:

./chakshu ui
# Listening on http://127.0.0.1:7777

Customize the bind address or port with --host and --port:

./chakshu start --host 127.0.0.1 --port 9090

Tip: If you run ./chakshu ui separately, run ./chakshu daemon in another terminal (or use ./chakshu start instead) so the dashboard receives live transcript and network updates. The header displays a Daemon Active badge whenever the watcher daemon is running.


Global Header & UX Controls

  • Global Search (Cmd+K / Ctrl+K): Opens GlobalSearchModal for instant cross-agent SQLite FTS5 search across tool calls, commands, inputs, and outputs (/api/search).
  • Daemon & Connection Status: Shows whether the background watcher daemon is active and whether live polling is Live, Paused, or Offline.
  • Runaway Loop & Token Burn Alert Banner: Surfaces live guardrail warnings when sliding-window retry loops or token spikes are detected.
  • Live / Pause Toggle: Manually pause or resume automatic background polling.
  • Pause-on-Blur: Automatically suspends polling when the browser tab is hidden to conserve CPU and battery, resuming when you return.
  • Refresh: Triggers an immediate telemetry refresh (/api/refresh).
  • Export: Downloads the current telemetry view as JSON.
  • Theme Toggle: Switches between Dark Mode and Light Mode with system preference detection and localStorage persistence.
  • Scoped vs. Global Metrics: Selecting a session scopes the top KPI bar to that session's metrics; click Reset to All Sessions to return to global system rollups.

Views & Hash Routing

Chakshu uses client-side hash routing (web/lib/router.ts) so every view and subtab supports direct deep-linking and survives browser reloads on static file servers.

1. Sessions (#/sessions and #/sessions/:id/:subtab)

Browse all recorded agent sessions with auto-generated titles from user prompts, active in-flight status indicators (5-minute calibration window), session reliability badges (0–100 clean | moderate | fragile), total duration, and token/cost summaries.

Chakshu Workspace & Session Cockpit

Selecting a session opens the Session Cockpit with 6 deep-dive subtabs:

Subtab Hash Route What It Shows
Execution Trace #/sessions/:id/trace Step-by-step accordion of tool calls & skills with duration badges, parallel batch grouping, model tags, exit codes, unwrapped command previews, and one-click copy for payloads and outputs.
Performance & Tokens #/sessions/:id/metrics Session-level KPIs and Model-Wise Analysis (call share %, prompt/completion tokens, duration, and subtotal cost per model), distinguishing API-measured vs. estimated tokens.
Touched Files & Safety #/sessions/:id/files Workspace files created/read/modified during the session alongside flagged security anomalies and one-click pre-execution snapshot rollback.
Security & Secrets #/sessions/:id/security Security findings, risk severities, and redacted secret variable accesses within the session.
Context & Memory #/sessions/:id/memory 3-tier memory analytics: working context saturation gauge, turns-to-exhaustion forecast, growth curve, bloat hotspots, persistent rule token tax, Decision & Constraint Ledger (Pin/Verify/Dismiss), and OS process RAM.
Human Approvals #/sessions/:id/approvals Session-level timeline of permission requests, human decisions, approval latency, independent risk classification, and post-decision execution outcomes.

2. Tool Calls (#/calls)

Global, filterable table of all tool calls across sessions and agents. Clicking any row opens the Call Detail Modal (CallModal) with full arguments, outputs, model attribution, and timing.

Chakshu Global Tool Calls Table

3. Global Memory (#/memory)

Cross-session memory cockpit (GlobalMemoryView) aggregating the Decision & Constraint Ledger (session_memories, stale/superseded/contradicted reconciliation, Pin/Verify/Dismiss controls), persistent rule bank inventory, and token tax analytics.

4. Skill Intelligence (#/skills/:tab)

Dedicated workspace for skill revision tracking, repeatable benchmarks, and execution evaluation (see Skill Intelligence & Benchmarking). Supports 7 subtabs:

  • #/skills/overview — Global skill intelligence KPIs and recent activity
  • #/skills/catalog — Content-addressed skill inventory & SHA-256 revisions
  • #/skills/studio — Benchmark Studio (suites, scenarios, built-in templates, JSON/YAML import & export)
  • #/skills/executions — Observed skill execution windows & 1-click evaluation
  • #/skills/comparisons — Paired version/baseline comparison & regression detection
  • #/skills/profiles — Evaluation profiles & declarative rules
  • #/skills/reports — Explainable evaluation reports & JSON export

5. Approvals (#/approvals)

Cross-session Human Approval & Intervention analytics (ApprovalsAnalyticsView), showing approval/rejection rates, P95 decision latency, agent intelligence, tool & MCP hotspots, repeated requests, and high-risk approvals (see Human Approval & Intervention Tracking).

6. Security Audit (#/audit)

Unified security cockpit (AuditView) surfacing real-time tool-call anomalies, SHA-256 hash-chained security_events, tracked incidents, MCP server audit & config drift results, local skill package audits, and running agent processes with emergency process controls.

7. Plugins (#/plugins)

Interactive App-Store-style inventory (PluginStoreView) of installed agent plugins across Antigravity, Claude Code, Gemini CLI, and Cursor, displaying bundled Skills, Rules, MCP servers, Lifecycle Hooks, and supply-chain audit findings.


Local REST API Reference

The embedded HTTP server (internal/ui/) exposes the following JSON endpoints locally:

Core Telemetry & Sessions

  • GET /api/meta — Daemon status, database metadata, and UI configuration
  • POST /api/refresh — Trigger an immediate transcript scan
  • GET /api/stats — Global or session-scoped telemetry metrics
  • GET /api/calls — Filtered list of recent tool calls
  • GET /api/search — Cross-agent FTS5 full-text search across tool calls
  • GET /api/sessions — List of sessions with summaries and reliability scores
  • GET /api/session — Detailed session payload (calls, files, risks, memory, approvals count)
  • GET /api/memory — 3-tier memory analytics (memory bank, context report, OS processes)
  • GET /api/memory/decisions — List extracted decisions, constraints, workarounds, and dead ends
  • POST /api/memory/decisions/state — Update decision user state (pinned, verified, dismissed, unreviewed)
  • GET /api/snapshots — List pre-execution file snapshots
  • POST /api/rollback — Restore a file from a pre-execution snapshot

Security, Supply-Chain & Process Controls

  • GET /api/audit — Security audit findings across tool calls
  • GET /api/security/events — Structured security events
  • GET /api/incidents — List and manage security incidents
  • GET /api/processes — Active AI agent OS processes (ps)
  • POST /api/kill — Execute validated process control (terminate, kill, pause, resume)
  • GET /api/mcp — Discovered MCP servers and audit findings
  • GET /api/skills — Discovered local skills and audit findings
  • GET /api/plugins, GET /api/plugins/detail — Installed plugins and bundle details

Human Approvals

  • GET /api/approvals, GET /api/approvals/{approvalId}
  • GET /api/sessions/{sessionId}/approvals
  • GET /api/analytics/approvals, /api/analytics/approvals/agents, /api/analytics/approvals/tools

Skill Intelligence & Benchmarking

  • GET /api/skill-intel/overview
  • GET /api/skills/{skillId}, /versions, /executions
  • GET/POST /api/benchmarks/templates, /suites, /suites/import, /suites/{suiteId}, /suites/{suiteId}/export, /suites/{suiteId}/runs, /suites/{suiteId}/scenarios, /scenarios/{scenarioId}
  • GET/POST /api/evaluation/executions, /auto-evaluate, /profiles, /rules, /runs, /runs/{runId}/feedback, /runs/{runId}/export, /compare, /regressions, /judge/config, /judge/test

Frontend Development (web/)

To iterate on the Next.js frontend with hot-reloading:

cd web
npm install
npm run dev        # Dev server on http://localhost:3000

To rebuild the static export and embed it into internal/ui/dist/:

cd web
npx tsc --noEmit && npm run build
cd ..
go build -o chakshu ./cmd/chakshu