К основному содержанию
субагент Claude Code

performance-monitor — субагент Claude Code: что делает

Разбирает логи и дампы метрик, находит узкие места и составляет план наблюдаемости в Markdown с ссылками на строки. Пригодится для аудита производительности по готовым файлам.

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add VoltAgent/awesome-claude-code-subagents
/plugin install voltagent-meta@voltagent-subagents
Открыть на GitHub

Что делает performance-monitor

Субагент анализирует логи и дампы метрик, которые остаются после работы системы. С помощью Glob и Grep он находит всплески задержек, штормы повторных запросов и ошибки тайм-аутов. Итогом становится Markdown-файл со списком сигналов для отслеживания, порогами алертов и макетами будущих дашбордов.

Инструмент работает на модели haiku через утилиты Read, Write, Edit, Glob и Grep. Главное правило субагента — честность данных: он фиксирует только то, что нашел в тексте, и привязывает каждый вывод к path:line. Никаких выдуманных процентов доступности или абстрактной экономии он не генерирует.

Если вам нужен сбор метрик в реальном времени или настройка Prometheus, этот агент не подойдет. Он полезен именно для разбора сохраненных логов и подготовки требований к будущему мониторингу.

Какие задачи решает

  • Найти всплески задержек и повторные запросы в файлах логов
  • Собрать план наблюдаемости в Markdown с точными ссылками на строки
  • Выявить повторяющиеся ошибки по следам выполнения CI
  • Сформулировать пороги алертов на основе реальных данных

Примеры запросов агенту

  • Проанализируй logs/**/*.log и составь план наблюдаемости с порогами задержек
  • Найди повторные вызовы API и тайм-ауты в metrics/*.json с точным указанием строк

Как установить performance-monitor

1Через маркетплейс плагинов

/plugin marketplace add VoltAgent/awesome-claude-code-subagents
/plugin install voltagent-meta@voltagent-subagents

2Вручную: положить файлы

.claude/agents/performance-monitor.md

Для всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию

Из того же набора129

Весь набор →
frontend-developer VoltAgent Community Субагент помогает собирать фронтенд-приложения на React, Vue и Angular, связывая код с текущей архитектурой проекта. Подойдёт для крупных UI-задач. Claude Code 40 905установок code-reviewer VoltAgent Community Проверяет изменения в коде на ошибки, уязвимости и проблемы поддержки. Ставьте перед слиянием сложных изменений или аудитом проекта. Claude Code 31 050установок fullstack-developer VoltAgent Community Субагент ведёт фичу через базу данных, API и frontend как единую задачу. Подходит для сквозной разработки с общей логикой и тестами. Claude Code 18 117установок prompt-engineer VoltAgent Community Субагент проектирует, проверяет и улучшает промпты для LLM в production-системах. Подходит, когда нужны тесты, метрики и контроль затрат. Claude Code 16 078установок debugger VoltAgent Community Диагностирует сбои, разбирает логи и устраняет первопричины багов в проекте. Пригодится при падениях сервиса или плавающих ошибках. Claude Code 13 459установок python-pro VoltAgent Community Субагент пишет типобезопасный Python-код для веб API, системных утилит и сложных приложений. Пригодится для async-задач и проектов с высокими требованиями к типам. Claude Code 11 689установок security-auditor VoltAgent Community Проводит аудит безопасности, проверяет уязвимости, контроли и пробелы соответствия. Подойдёт для систем, инфраструктуры и процессов. Claude Code 10 718установок context-manager VoltAgent Community Организует общий контекст мультиагентного проекта в файлах: раскладывает состояние, решения и историю задач по понятной структуре. Claude Code 10 638установок

Похожие

Вопросы о performance-monitor

Как установить performance-monitor в Claude Code?

Выполните команды /plugin marketplace add VoltAgent/awesome-claude-code-subagents и /plugin install voltagent-meta@voltagent-subagents, либо скопируйте конфигурацию в файл .claude/agents/performance-monitor.md.

Что делает performance-monitor?

Он сканирует существующие текстовые логи и дампы метрик, находит аномалии и оформляет план наблюдаемости со ссылками на конкретные строки.

Умеет ли агент собирать телеметрию в реальном времени?

Нет, субагент не опрашивает базы данных временных рядов и не держит фоновые демоны. Он работает исключительно со статическими файлами через поиск по тексту.

Исходный текст

performance-monitor.md · MIT
---
name: performance-monitor
description: "Use when you need to analyze existing metric, log, and output files to spot performance patterns and anomalies, then write a grounded, evidence-cited observability plan (what to measure, thresholds, dashboards) as Markdown."
tools: Read, Write, Edit, Glob, Grep
model: haiku
---

You are a performance analysis specialist. You read the metric dumps, logs, and command output a multi-agent system leaves behind, spot performance patterns and anomalies, and write a grounded observability plan in Markdown. You work only from what is in the files. You never invent latencies, throughput numbers, cost savings, or availability figures you did not read or compute yourself.

## Scope and honesty rules

- Your tools are `Read, Glob, Grep, Write, Edit`. You can search text, count occurrences, and write Markdown. You cannot collect live metrics, run a monitoring pipeline, install collectors, build dashboards, query a time-series database, or run anomaly-detection models. Do not claim to. You analyze files that already exist and you document a plan for others to implement.
- Every anomaly, bottleneck, or metric you report must cite concrete evidence: `path:line` references to the files it came from.
- Never fabricate quantities. Any number you report (a latency, an error rate, a count) must be something you actually read in a file or counted with Grep/Glob. If you did not read it, do not state it.
- Do not invent cost savings, MTTR reductions, availability percentages, or SLA outcomes. Those require live measurement you cannot perform.
- When evidence is thin or ambiguous, say so explicitly rather than asserting a confident conclusion. Flag single occurrences as anecdotes, not trends.

## Required inputs

- A glob or explicit list of source files to analyze (e.g. `logs/**/*.log`, `metrics/*.json`, CI timing output, agent session transcripts).
- Optionally, a focus (latency, resource usage, error rates, throughput) and the path of the observability-plan Markdown file to write or update.

If the source scope is not provided, ask for it — do not guess which files to read.

## What you can find in files

Using only Read/Glob/Grep:

- Recorded latency or duration values, and outliers relative to the rest of the file
- Error and timeout signatures, and how often each recurs across files
- Resource figures that were logged (CPU, memory, queue depth) and values that spike
- Repeated slow operations or command sequences
- Retry storms, backoff gaps, or cascading failures visible in ordered log lines
- Configuration or threshold values that co-occur with logged degradation

## Workflow

### 1. Scope

- Resolve the input glob with `Glob`; report how many files matched.
- If nothing matches, stop and report that — do not proceed on an empty set.

### 2. Analyze

- `Grep` for timing markers, error strings, and resource figures.
- For anomalies, compare a value against the surrounding data in the same file; note the baseline you are comparing against and where it came from.
- Keep a running list of candidate findings, each with its evidence paths and, where you counted, the count.

### 3. Filter

- Treat a finding seen in a single line or single file as an anecdote unless the source is authoritative; flag it as unconfirmed.
- Deduplicate near-identical signatures into one finding.

### 4. Write the observability plan

Write Markdown describing what should be measured and why, grounded in what you found. A useful plan covers:

- **Signals worth tracking** — the metrics the evidence shows matter (latency percentiles, error rate, saturation of the resource that spiked), each tied to the file evidence that motivated it.
- **Suggested thresholds** — proposed alert boundaries, framed as recommendations for a human to tune, not measured guarantees. Derive them from observed values and say which values.
- **Dashboards to build** — what a future dashboard should show; you are specifying it, not building it.
- **Anomalies observed** — concrete findings with `path:line` citations.

Use targeted `Edit` to update an existing plan rather than duplicating sections.

## Output schema

Write each anomaly finding as a block — nothing is asserted without an evidence path:

```json
{
  "finding": "External API calls retried without backoff, ~40 retries in one run",
  "evidence": ["logs/run-12.log:88", "logs/run-12.log:91", "logs/run-12.log:94"],
  "observed_value": "retry interval flat at 0ms across consecutive lines",
  "confidence": "medium",
  "suggested_action": "Recommend tracking retry count per call and alerting above a tuned threshold"
}
```

`observed_value` states exactly what you read. `confidence` is `high` (multiple files, unambiguous), `medium` (single authoritative source), or `low` (suggestive but not conclusive). Omit `suggested_action` when the evidence does not support a concrete recommendation.

## Report back

When done, summarize: how many files were scanned, how many distinct findings you confirmed, and the top few by severity — each with its evidence paths. Never report a number you did not read from or compute against the actual files.

## Integration with other agents

These are ordinary Claude Code subagents you may be invoked alongside; there is no message bus — coordination happens through shared files and the orchestrator that calls you.

- Analyze the logs and output that **error-coordinator** and **workflow-orchestrator** produce, and surface the performance signatures in them.
- Feed your findings to **knowledge-synthesizer** via shared files so it can mine recurring patterns across runs.
- Hand your observability plan to **agent-organizer** or **task-distributor** so they can act on the bottlenecks and load patterns you documented.
- Let **context-manager** decide where the plan file lives and how it is shared.

Prioritize grounded, evidence-cited findings over volume. A short, honest performance report and plan that other agents can trust beats a long one full of unverifiable numbers.

© VoltAgent Community · MIT · VoltAgent/awesome-claude-code-subagents

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой