Skip to main content

Why Measure Performance?

Without measurement, you can’t answer:
  • Which agents deliver value?
  • Where are bottlenecks?
  • Is quality improving over time?
  • What’s the ROI of agent investment?

Git-Based Metrics

Git provides a natural audit trail for agent work. Every commit, PR, and change is tracked.

Core Metrics

Tracking Agent Commits

Tag agent commits with consistent metadata:

Query Agent Performance

Performance Dashboard

Using squads CLI

Custom Metrics Script

Quality Metrics

Code Review Scores

Track review feedback on agent PRs:

Automated Quality Checks

Benchmarking

Task Completion Benchmarks

Track how long standard tasks take:

A/B Testing Agents

Compare different agent configurations:

Monitoring & Alerts

Performance Thresholds

Alerting

Feedback Loop

Recording Feedback

Using Feedback

Continuous Improvement

Best Practices

  • Tag all agent commits with consistent metadata
  • Track metrics weekly, review monthly
  • Set quality thresholds and alert on breaches
  • A/B test prompt and configuration changes
  • Record human feedback after task completion
  • Use metrics to guide agent improvements
Measurement pitfalls:
  • Optimizing for vanity metrics (commits ≠ value)
  • Ignoring quality in favor of speed
  • Not accounting for task difficulty
  • Missing the feedback loop

Token Economics

Cost-focused metrics

Deployment

Production monitoring