kcp-dashboard

command module
v0.31.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README ΒΆ

kcp-dashboard

🧾 See it run β€” interactive KCP playground Β· read the reveal

Live terminal dashboard for KCP (Knowledge Context Protocol) usage statistics.

Built with Bubble Tea + Lip Gloss. Auto-refreshes every 2 seconds.

🌐 Live guide & interactive demo

cantara.github.io/kcp-dashboard β€” a plain-language guide to the agent thought graph, plus an interactive, in-browser demo (no install).

The demo simulates an agent session and lets you flip between:

  • Steps β€” what the agent did (its tool calls, in order), and
  • Decisions β€” why KCP let it load the knowledge it did: task β†’ 13-gate cascade β†’ βœ“ selected / βœ— blocked-at-<gate>.

Pick a real-world scenario β€” Customer Support, Incident Response, Codebase Copilot, Financial Compliance, or Clinical Summary β€” across Starter β†’ Standard β†’ Advanced complexity, and watch which documents pass each rule.

The showcase lives in site/ and deploys via GitHub Actions on every push to main.

Panels

Overview (pinned)
  • kcp-commands: commands guided, unique tools, tokens of context delivered, manifest coverage percentage
  • kcp-memory: sessions indexed, projects tracked, search recall rate (N of M searches found results)
  • Projects: list of active project directories
Guidance Effects (scrollable)
  • Manifest coverage -- bar chart showing what percentage of Bash calls received guidance
  • Filtered retry rate -- same-command-within-90s retries, excluding iterative commands (ls, grep, cat, etc.)
  • Help-followup rate -- how often --help was run within 5 minutes after an inject
  • Quality alerts -- top 5 worst manifests ranked by composite score (retry + help rates), with call counts
Session Profile (scrollable)
  • Session count for the selected time window, with average turns and tool calls
  • Size histogram -- 5-bucket distribution: 1-5, 6-20, 21-50, 51-100, 100+ turns
Commands Guided (scrollable)
  • Bar chart of the top 10 most-guided commands with inject counts
Memory Searches (scrollable)
  • Recent kcp-memory searches with timestamps, queries, and result counts
  • Shows recall rate (sessions recalled per search)

Install

macOS (Apple Silicon)

curl -fsSL https://github.com/Cantara/kcp-dashboard/releases/latest/download/kcp-dashboard-darwin-arm64 -o ~/.local/bin/kcp-dashboard
chmod +x ~/.local/bin/kcp-dashboard

macOS (Intel)

curl -fsSL https://github.com/Cantara/kcp-dashboard/releases/latest/download/kcp-dashboard-darwin-amd64 -o ~/.local/bin/kcp-dashboard
chmod +x ~/.local/bin/kcp-dashboard

Linux (amd64)

curl -fsSL https://github.com/Cantara/kcp-dashboard/releases/latest/download/kcp-dashboard-linux-amd64 -o ~/.local/bin/kcp-dashboard
chmod +x ~/.local/bin/kcp-dashboard

Linux (arm64)

curl -fsSL https://github.com/Cantara/kcp-dashboard/releases/latest/download/kcp-dashboard-linux-arm64 -o ~/.local/bin/kcp-dashboard
chmod +x ~/.local/bin/kcp-dashboard

Windows Download kcp-dashboard-windows-amd64.exe and run it from Windows Terminal or PowerShell.

Usage

kcp-dashboard [--days N] [--project name]
Key Action
q Quit
d Cycle day range (1 -> 7 -> 30 -> 90 -> 365)
r Force refresh
Up/Down Scroll panels

Data sources

Database Written by Contains
~/.kcp/usage.db kcp-commands v0.20.0+ (RFC-0017) inject events, search logs, token estimates
~/.kcp/memory.db kcp-memory v0.20.0+ sessions, tool_events, manifest quality data

Both databases must exist for the dashboard to show all panels. The dashboard opens them in read-only mode.

Requirements

  • kcp-commands v0.20.0+ to populate ~/.kcp/usage.db with inject events
  • kcp-memory v0.20.0+ to populate ~/.kcp/memory.db with session and tool-event data

Releases

Version Notes
v0.5.0 Removed fabricated "tokens saved vs --help" metric. Replaced with honest "tokens of context delivered". Fixed state message.
v0.5.1 Patch: fixed "memory building" state message when sessions exist but no searches match.
v0.6.0 Added Guidance Effects panel (manifest coverage bar, filtered retry rate, help-followup rate, quality alerts). Added Session Profile panel (session size histogram + averages). Removed empty Top Units panel. Data sourced from memory.db tool_events.
v0.22.0 README rewrite β€” accurate panel descriptions, removed stale kcp-mcp bridge references. Version aligned with kcp-commands v0.22.0 and kcp-memory v0.22.0.
v0.23.0 Filter event counts in dashboard panels.
v0.24.0 Context Health panel with recent/top toggle.
v0.25.0 Focus/carousel mode for small terminals.
v0.26.0 Ecosystem alignment. Coordinated release with kcp-commands v0.26.0 and kcp-memory v0.26.0.

Part of the KCP ecosystem

Tool Role
kcp-commands Claude Code hook -- injects CLI knowledge before Bash tool calls
kcp-memory Episodic memory -- indexes Claude Code session history
knowledge-context-protocol Spec -- the KCP specification
kcp-dashboard Live stats -- visualises KCP guidance and memory activity

License

Apache 2.0 -- Cantara

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL