/stats - Telemetry Dashboard
"phi mesure tout, phi apprend de tout" - CYNIC
Execution
Run the telemetry dashboard script:
node scripts/lib/telemetry-dashboard.mjs
Display the output directly to the user. The dashboard shows telemetry with ANSI colors.
What It Shows
- Session Stats: ID, uptime, action count
- Events by Category: LLM, judgment, memory, tool, session, etc.
- Latencies: Average, p95, p99 for key operations
- Frictions: Recent errors, failures, timeouts
- LLM Usage: Token counts, cache hits, average latency
- Judgments: Verdicts, Q-scores, confidence levels
- System: Memory, CPU usage
Dashboard Sections
Session Overview
| Metric |
Description |
| Session ID |
Unique identifier for current session |
| Uptime |
Time since session start |
| Actions |
Total actions performed |
Events by Category
| Category |
Examples |
| LLM |
Token usage, cache hits |
| Judgment |
Verdicts, Q-scores |
| Memory |
Store/retrieve operations |
| Tool |
Tool calls (success/failure) |
| Session |
Start, end, events |
| System |
Memory, CPU |
Latency Metrics
| Metric |
Healthy Range |
| Avg |
< 500ms |
| p95 |
< 1500ms |
| p99 |
< 3000ms |
Friction Severity
| Severity |
Description |
| Low |
Minor inconvenience |
| Medium |
Noticeable issue |
| High |
Significant problem |
| Critical |
System failure |
Data Sources
The telemetry collector gathers data from:
- Hook executions (awaken, observe, sleep)
- MCP tool calls
- LLM API interactions
- Error/friction events
CYNIC Voice
When presenting stats:
Normal: *sniff* Telemetry nominal. phi sees all.
High Friction: *concerned sniff* ${count} frictions detected. Review needed.
High Latency: *ears droop* Latency elevated. System under load.
See Also
/health - CYNIC system health
/status - Development status
/psy - Human psychology dashboard
/patterns - Detected patterns
1---2name: stats3description: Display CYNIC telemetry dashboard with usage stats, latencies, frictions, and patterns. Use when asked about performance, usage statistics, benchmarks, or system metrics.4---5
6# /stats - Telemetry Dashboard
7
8*"phi mesure tout, phi apprend de tout"* - CYNIC
9
10## Execution
11
12Run the telemetry dashboard script:
13
14```bash
15node scripts/lib/telemetry-dashboard.mjs
16```
17
18Display the output directly to the user. The dashboard shows telemetry with ANSI colors.
19
20## What It Shows
21
221. **Session Stats**: ID, uptime, action count
232. **Events by Category**: LLM, judgment, memory, tool, session, etc.
243. **Latencies**: Average, p95, p99 for key operations
254. **Frictions**: Recent errors, failures, timeouts
265. **LLM Usage**: Token counts, cache hits, average latency
276. **Judgments**: Verdicts, Q-scores, confidence levels
287. **System**: Memory, CPU usage
29
30## Dashboard Sections
31
32### Session Overview
33
34| Metric | Description |
35|--------|-------------|
36| Session ID | Unique identifier for current session |
37| Uptime | Time since session start |
38| Actions | Total actions performed |
39
40### Events by Category
41
42| Category | Examples |
43|----------|----------|
44| LLM | Token usage, cache hits |
45| Judgment | Verdicts, Q-scores |
46| Memory | Store/retrieve operations |
47| Tool | Tool calls (success/failure) |
48| Session | Start, end, events |
49| System | Memory, CPU |
50
51### Latency Metrics
52
53| Metric | Healthy Range |
54|--------|---------------|
55| Avg | < 500ms |
56| p95 | < 1500ms |
57| p99 | < 3000ms |
58
59### Friction Severity
60
61| Severity | Description |
62|----------|-------------|
63| Low | Minor inconvenience |
64| Medium | Noticeable issue |
65| High | Significant problem |
66| Critical | System failure |
67
68## Data Sources
69
70The telemetry collector gathers data from:
71
72- Hook executions (awaken, observe, sleep)
73- MCP tool calls
74- LLM API interactions
75- Error/friction events
76
77## CYNIC Voice
78
79When presenting stats:
80
81**Normal**: `*sniff* Telemetry nominal. phi sees all.`
82
83**High Friction**: `*concerned sniff* ${count} frictions detected. Review needed.`
84
85**High Latency**: `*ears droop* Latency elevated. System under load.`
86
87## See Also
88
89- `/health` - CYNIC system health
90- `/status` - Development status
91- `/psy` - Human psychology dashboard
92- `/patterns` - Detected patterns