# Agent Traffic Analyzer

> Analyzes and visualizes communication patterns between OpenClaw agents to identify bottlenecks and suggest optimization strategies.

- Skill: `modbender/agent-traffic-analyzer` (Agent Skill, multi-file: 18 files)
- Install (CLI): `npx skillmds@latest add modbender/agent-traffic-analyzer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/modbender/agent-traffic-analyzer/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: modbender (https://skillmd.com/u/modbender)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/modbender/agent-traffic-analyzer

---


# Agent Traffic Analyzer

Analyzes and visualizes communication patterns between OpenClaw agents to identify bottlenecks and suggest optimization strategies.

## Installation

```bash
npm install
```

## Usage

```bash
# Analyze a communication log file
agent-traffic-analyzer analyze <logfile.json>

# Generate a network visualization
agent-traffic-analyzer visualize <logfile.json> --format dot

# Generate a full report
agent-traffic-analyzer report <logfile.json> --output report.json

# Show summary statistics
agent-traffic-analyzer summary <logfile.json>

# Find bottlenecks
agent-traffic-analyzer bottlenecks <logfile.json>
```

## Input Format

The tool expects JSON files containing an array of agent communication messages:

```json
[
  {
    "id": "msg-001",
    "from": "agent-alpha",
    "to": "agent-beta",
    "timestamp": "2026-01-15T10:30:00Z",
    "type": "request",
    "payload_size": 1024,
    "latency_ms": 45,
    "status": "delivered"
  }
]
```

## Output Formats

- **JSON** — Structured analysis results
- **CSV** — Tabular data for spreadsheet import
- **DOT** — Graphviz network graph definition

## Capabilities

- Extract and analyze message flow patterns between OpenClaw agents
- Generate visualizations of communication networks and traffic volumes
- Identify bottlenecks and inefficiencies in agent interactions
- Suggest optimization strategies for improved agent coordination
- Export analysis reports in multiple formats (JSON, CSV, DOT)
- Compare historical communication patterns over time

