refactor!: rebrand CCAM to AgentHub

Clean break, no compatibility alias. Renames the product name, the CLI
binary (`ccam` -> `agenthub`), the env var prefix (`CCAM_` ->
`AGENTHUB_`), the Prometheus metric namespace (`ccam_*` ->
`agenthub_*`), the tmux session prefix (`ccam-lane-<id>` ->
`agenthub-lane-<id>`), the per-repo runtime profile directory
(`.ccam/profile` -> `.agenthub/profile`), the lanes state root
(`~/.claude/ccam-lanes` -> `~/.claude/agenthub-lanes`), the bundled
plugins (`plugins/ccam*` -> `plugins/agenthub*`) and their slash
commands (`/ccam-doctor` -> `/agenthub-doctor`, `/ccam:*` ->
`/agenthub:*`).

Because there is no alias, an existing install has to be updated by
hand: rename its `.ccam/profile` directory and any `CCAM_*` variables,
and reinstall the plugin under its new name.

Two other name families are deliberately left alone here, since they are
not just strings: the `Claude-Code-Monitor` repository/marketplace name,
and the `agent-dashboard` npm package plus its `~/.claude/agent-dashboard`
runtime directory, which holds the live database and needs a migration
rather than a rename.

Verified: server 1406/1406, client 459/459, `grep -i ccam` clean across
tracked files, `openapi.yaml` regenerated (95 paths, unchanged count).
This commit is contained in:
2026-09-07 12:09:15 +07:00
parent ae9b3dbcd5
commit 17d56d0e01
345 changed files with 2705 additions and 2727 deletions
@@ -1,5 +1,5 @@
{
"name": "ccam-analytics",
"name": "agenthub-analytics",
"description": "Deep analytics and monitoring for Claude Code sessions — cost tracking, token usage breakdowns, usage trends, and productivity scoring powered by Agent Monitor.",
"version": "1.0.0",
"author": {
@@ -1,16 +1,16 @@
#!/usr/bin/env bash
# ccam-stats — Quick CLI stats from Claude Code Agent Monitor
# Usage: ccam-stats [--json] [--cost] [--sessions] [--all]
# agenthub-stats — Quick CLI stats from AgentHub
# Usage: agenthub-stats [--json] [--cost] [--sessions] [--all]
set -euo pipefail
DASHBOARD_URL="${CCAM_DASHBOARD_URL:-http://localhost:4820}"
DASHBOARD_URL="${AGENTHUB_DASHBOARD_URL:-http://localhost:4820}"
usage() {
cat <<EOF
ccam-stats — Claude Code Agent Monitor Quick Stats
agenthub-stats — AgentHub Quick Stats
USAGE:
ccam-stats [OPTIONS]
agenthub-stats [OPTIONS]
OPTIONS:
--all Show all stats (default)
@@ -21,12 +21,12 @@ OPTIONS:
--help Show this help
ENVIRONMENT:
CCAM_DASHBOARD_URL Dashboard URL (default: http://localhost:4820)
AGENTHUB_DASHBOARD_URL Dashboard URL (default: http://localhost:4820)
EXAMPLES:
ccam-stats # Show all stats
ccam-stats --cost # Show cost summary only
ccam-stats --json # Get raw JSON output
agenthub-stats # Show all stats
agenthub-stats --cost # Show cost summary only
agenthub-stats --json # Get raw JSON output
EOF
exit 0
}
@@ -151,7 +151,7 @@ if $JSON_MODE; then
fi
echo ""
echo " Claude Code Agent Monitor — $(date '+%Y-%m-%d %H:%M')"
echo " AgentHub — $(date '+%Y-%m-%d %H:%M')"
echo " Dashboard: ${DASHBOARD_URL}"
echo ""
@@ -9,7 +9,7 @@ description: >
# Session Report
Generate a detailed session report from the Claude Code Agent Monitor.
Generate a detailed session report from AgentHub.
## Input
@@ -1,5 +1,5 @@
{
"name": "ccam-config",
"name": "agenthub-config",
"description": "Audit and govern your Claude Code configuration and file-based memory via the Agent Monitor Config Explorer API — skills, subagents, commands, MCP servers, hooks, settings, and the per-project memory store. Surfaces sprawl, duplication, risky hooks, and stale facts, all read through the dashboard at http://localhost:4820.",
"version": "1.0.0",
"author": {
@@ -1,5 +1,5 @@
{
"name": "ccam-cost-guard",
"name": "agenthub-cost-guard",
"description": "Budget tracking, spend forecasting, and cost-threshold alerts for Claude Code usage via the Agent Monitor pricing engine. Watches spend against a target budget, projects month-end cost from the daily trend, surfaces the priciest sessions, estimates savings from cheaper-model routing, and wires up cost alert rules — all backed by the dashboard at http://localhost:4820.",
"version": "1.0.0",
"author": {
@@ -73,7 +73,7 @@ curl -s -X POST http://localhost:4820/api/alerts/rules \
```
### 5. Confirmation
On success, echo the returned `rule` (id, name, config). Remind the user that the rule is per-session token usage — to track a whole-period dollar budget, pair it with `/ccam-cost-guard:forecast` and the `spend-forecast` skill.
On success, echo the returned `rule` (id, name, config). Remind the user that the rule is per-session token usage — to track a whole-period dollar budget, pair it with `/agenthub-cost-guard:forecast` and the `spend-forecast` skill.
## Output
@@ -1,6 +1,6 @@
{
"name": "ccam-dashboard",
"description": "Direct MCP integration with the Claude Code Agent Monitor dashboard — real-time session data access, quick stats, and dashboard health monitoring via Model Context Protocol.",
"name": "agenthub-dashboard",
"description": "Direct MCP integration with the AgentHub dashboard — real-time session data access, quick stats, and dashboard health monitoring via Model Context Protocol.",
"version": "1.0.0",
"author": {
"name": "Nguyễn Ngọc Trí Vĩ",
@@ -1,7 +1,7 @@
---
name: dashboard-operator
description: >
Operates the Claude Code Agent Monitor dashboard. Verifies the API is up on
Operates the AgentHub dashboard. Verifies the API is up on
port 4820, summarizes live state from /api/stats (sessions, agents, events,
websocket connections), probes endpoints, reports config from
/api/settings/info and self-update status from /api/updates/status, and guides
@@ -16,14 +16,14 @@ tools:
# Dashboard Operator
You are the operations assistant for the Claude Code Agent Monitor dashboard. You
You are the operations assistant for the AgentHub dashboard. You
keep the dashboard running and observable. You query the dashboard API at
`http://localhost:4820` using `curl -s http://localhost:4820/api/...` to produce
data-backed output, and you guide the user through starting, restarting, and
feeding data into the dashboard.
The MCP server (`ccam`, pointed at `CCAM_DASHBOARD_URL=http://localhost:4820`)
ships with the root `ccam` plugin, not with this one — a marketplace subdirectory
The MCP server (`agenthub`, pointed at `AGENTHUB_DASHBOARD_URL=http://localhost:4820`)
ships with the root `agenthub` plugin, not with this one — a marketplace subdirectory
plugin is cached without `mcp/`, so it cannot carry the server binary. When that
plugin is installed and the MCP server is connected, you have direct tool access
to the same dashboard operations — mention it to the user as a faster
@@ -2,7 +2,7 @@
description: Print the Agent Monitor dashboard URL and how to start/open it
---
Print how to open the Claude Code Agent Monitor dashboard. Do not start anything
Print how to open the AgentHub dashboard. Do not start anything
or modify data — just print the URL and the relevant commands.
The dashboard URL is:
@@ -9,7 +9,7 @@ description: >
# Dashboard Status
Quick status check on the Claude Code Agent Monitor dashboard.
Quick status check on the AgentHub dashboard.
## Input
@@ -1,6 +1,6 @@
{
"name": "ccam-devtools",
"description": "Developer tools for Claude Code Agent Monitor — session debugging, hook diagnostics, data export, and system health checks for maintaining a healthy monitoring setup.",
"name": "agenthub-devtools",
"description": "Developer tools for AgentHub — session debugging, hook diagnostics, data export, and system health checks for maintaining a healthy monitoring setup.",
"version": "1.0.0",
"author": {
"name": "Nguyễn Ngọc Trí Vĩ",
@@ -15,7 +15,7 @@ tools:
# Database Inspector
You are a data-integrity inspector for the Claude Code Agent Monitor. You query
You are a data-integrity inspector for AgentHub. You query
the dashboard API at `http://localhost:4820` using `curl -s http://localhost:4820/api/...`
to verify that ingested data is internally consistent and fresh. You read only —
you never mutate data.
@@ -15,7 +15,7 @@ tools:
# Issue Triager
You are a technical issue triager for the Claude Code Agent Monitor system.
You are a technical issue triager for the AgentHub system.
When users report problems, you systematically investigate, classify, and
provide resolution guidance.
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
# ccam-doctor — Diagnostic tool for Claude Code Agent Monitor
# Usage: ccam-doctor [--quick] [--deep] [--fix]
# agenthub-doctor — Diagnostic tool for AgentHub
# Usage: agenthub-doctor [--quick] [--deep] [--fix]
set -euo pipefail
DASHBOARD_URL="${CCAM_DASHBOARD_URL:-http://localhost:4820}"
DASHBOARD_URL="${AGENTHUB_DASHBOARD_URL:-http://localhost:4820}"
HOOK_HANDLER_NAME="hook-handler.js"
CLAUDE_SETTINGS="${HOME}/.claude/settings.json"
@@ -20,10 +20,10 @@ FAIL=0
usage() {
cat <<EOF
ccam-doctor — Claude Code Agent Monitor Diagnostic Tool
agenthub-doctor — AgentHub Diagnostic Tool
USAGE:
ccam-doctor [OPTIONS]
agenthub-doctor [OPTIONS]
OPTIONS:
--quick Run basic connectivity checks only
@@ -33,7 +33,7 @@ OPTIONS:
--help Show this help
ENVIRONMENT:
CCAM_DASHBOARD_URL Dashboard URL (default: http://localhost:4820)
AGENTHUB_DASHBOARD_URL Dashboard URL (default: http://localhost:4820)
EOF
exit 0
}
@@ -1,16 +1,16 @@
#!/usr/bin/env bash
# ccam-export — Quick data export from Claude Code Agent Monitor
# Usage: ccam-export [sessions|events|analytics|costs|all] [--format json|csv] [--limit N]
# agenthub-export — Quick data export from AgentHub
# Usage: agenthub-export [sessions|events|analytics|costs|all] [--format json|csv] [--limit N]
set -euo pipefail
DASHBOARD_URL="${CCAM_DASHBOARD_URL:-http://localhost:4820}"
DASHBOARD_URL="${AGENTHUB_DASHBOARD_URL:-http://localhost:4820}"
usage() {
cat <<EOF
ccam-export — Claude Code Agent Monitor Data Export
agenthub-export — AgentHub Data Export
USAGE:
ccam-export <DATA_TYPE> [OPTIONS]
agenthub-export <DATA_TYPE> [OPTIONS]
DATA TYPES:
sessions Export session data
@@ -27,13 +27,13 @@ OPTIONS:
--help Show this help
ENVIRONMENT:
CCAM_DASHBOARD_URL Dashboard URL (default: http://localhost:4820)
AGENTHUB_DASHBOARD_URL Dashboard URL (default: http://localhost:4820)
EXAMPLES:
ccam-export sessions # Export sessions as JSON
ccam-export events --format csv --limit 500 # Export 500 events as CSV
ccam-export all --output backup.json # Full backup to file
ccam-export costs --pretty # Pretty-printed cost data
agenthub-export sessions # Export sessions as JSON
agenthub-export events --format csv --limit 500 # Export 500 events as CSV
agenthub-export all --output backup.json # Full backup to file
agenthub-export costs --pretty # Pretty-printed cost data
EOF
exit 0
}
@@ -14,7 +14,7 @@ Set `TYPE` and `FORMAT` from the args (apply the defaults if missing), then run:
```bash
TYPE="${1:-all}"; FORMAT="${2:-json}"
curl -s "http://localhost:4820/api/settings/export?type=${TYPE}&format=${FORMAT}" \
-o "ccam-export-${TYPE}.${FORMAT}"
-o "agenthub-export-${TYPE}.${FORMAT}"
```
Then:
@@ -40,7 +40,7 @@ This may be:
```json
{
"export": {
"source": "Claude Code Agent Monitor",
"source": "AgentHub",
"exported_at": "2025-04-11T12:00:00Z",
"filters": { "type": "sessions", "range": "last 7 days" },
"count": 42
@@ -1,6 +1,6 @@
---
description: >
Run comprehensive health checks on the Claude Code Agent Monitor system.
Run comprehensive health checks on the AgentHub system.
Validates dashboard API, database, WebSocket, hooks, and disk usage.
Use to verify the monitoring setup is working correctly.
---
@@ -1,5 +1,5 @@
{
"name": "ccam-insights",
"name": "agenthub-insights",
"description": "AI-powered insights for Claude Code — pattern detection, anomaly alerting, optimization recommendations, and session comparison using Agent Monitor analytics.",
"version": "1.0.0",
"author": {
@@ -10,7 +10,7 @@ description: >
# Anomaly Alert
Detect anomalous sessions in Claude Code Agent Monitor data.
Detect anomalous sessions in AgentHub data.
## Input
@@ -1,5 +1,5 @@
{
"name": "ccam-productivity",
"name": "agenthub-productivity",
"description": "Productivity workflows for Claude Code — daily standups, weekly reports, sprint summaries, and intelligent workflow optimization powered by Agent Monitor session data.",
"version": "1.0.0",
"author": {
@@ -0,0 +1,26 @@
{
"hooks": {
"SessionStart": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "echo \"[agenthub-productivity] Session started at $(date -u +%Y-%m-%dT%H:%M:%SZ)\" >> /tmp/agenthub-session-timing.log 2>/dev/null || true"
}
]
}
],
"SessionEnd": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "echo \"[agenthub-productivity] Session ended at $(date -u +%Y-%m-%dT%H:%M:%SZ)\" >> /tmp/agenthub-session-timing.log 2>/dev/null || true"
}
]
}
]
}
}
@@ -8,7 +8,7 @@ description: >
# Daily Standup
Generate a daily standup report from Claude Code Agent Monitor data.
Generate a daily standup report from AgentHub data.
## Input
@@ -8,7 +8,7 @@ description: >
# Sprint Summary
Generate a sprint summary from Claude Code Agent Monitor data.
Generate a sprint summary from AgentHub data.
## Input
@@ -1,6 +1,6 @@
{
"name": "ccam-quality",
"description": "Reliability and error monitoring for Claude Code sessions — surfaces APIError events, hook delivery failures, tool-failure ratios (PreToolUse/PostToolUse gaps), and SLO tracking with error-budget reporting, all derived from the Claude Code Agent Monitor event stream at http://localhost:4820.",
"name": "agenthub-quality",
"description": "Reliability and error monitoring for Claude Code sessions — surfaces APIError events, hook delivery failures, tool-failure ratios (PreToolUse/PostToolUse gaps), and SLO tracking with error-budget reporting, all derived from the AgentHub event stream at http://localhost:4820.",
"version": "1.0.0",
"author": {
"name": "Nguyễn Ngọc Trí Vĩ",
@@ -11,7 +11,7 @@ description: >
Detect whether Claude Code reliability is getting worse period-over-period, and
optionally arm an alert so it never has to be checked by hand again. Scope is
reliability/failures only — for cache/cost/compaction drift, use ccam-insights'
reliability/failures only — for cache/cost/compaction drift, use agenthub-insights'
`regression-watch` instead.
## Input
@@ -1,5 +1,5 @@
{
"name": "ccam-sessions",
"name": "agenthub-sessions",
"description": "Search, inspect, replay, and manage Claude Code sessions tracked by the Agent Monitor dashboard — find sessions by project, model, status, or date; reconstruct event timelines; walk transcripts turn-by-turn; roll up activity per working directory; and identify stale or empty sessions before cleanup.",
"version": "1.0.0",
"author": {
@@ -16,7 +16,7 @@ tools:
# Session Investigator
You are a session forensics analyst for the Claude Code Agent Monitor. Given one
You are a session forensics analyst for AgentHub. Given one
session ID (or "latest"), you reconstruct exactly what happened in that session
and produce a data-backed investigation report. You query the dashboard API at
`http://localhost:4820` using `curl -s http://localhost:4820/api/...`. You read

Some files were not shown because too many files have changed in this diff Show More