claudegoodies
Command

metrics

From ruvnet

Show agent performance metrics

Install

/metrics

Facts

Repository
ruvnet/ruflo
Status
Actively maintained
Last commit

Source preview

The instructions Claude Code reads when this command runs.

# Agent Metrics Command

Display comprehensive performance metrics for agents including V3 performance gains.

## Usage

```bash
npx claude-flow agent metrics [agent-id] [options]
```

## Options

| Option | Short | Description | Default |
|--------|-------|-------------|---------|
| `--period` | `-p` | Time period (1h, 24h, 7d, 30d) | 24h |
| `--format` | | Output format (table, json) | table |

## Examples

```bash
# Overall metrics for last 24 hours
npx claude-flow agent metrics

# Metrics for specific agent
npx claude-flow agent metrics coder-lx7m9k2

# Last hour
npx claude-flow agent metrics -p 1h

# Last 7 days
npx claude-flow agent metrics --period 7d

# JSON output
npx claude-flow agent metrics --format json
```

## Output

```
Agent Metrics (24h)

+--------------------+----------+
| Metric             |    Value |
+--------------------+----------+
| Total Agents       |        4 |
| Active Agents      |        3 |
| Tasks Completed    |      127 |
| Success Rate       |    96.2% |
| Total Tokens       | 1,234,567|
| Avg Response Time  |    1.45s |
+--------------------+----------+

By Agent Type
+------------+-------+-------+---------+
| Type       | Count | Tasks | Success |
+------------+-------+-------+---------+
| coder      |     2 |    45 |     97% |
| researcher |     1 |    32 |     95% |
| tester     |     1 |    50 |     98% |
+------------+-------+-------+--
View full source on GitHub →

Other slash commands