Lesson 3: Metrics & Reporting
Why Measure?
Section titled “Why Measure?”Adopting AI agents is an investment. Metrics help you:
- Justify the investment to engineering leadership
- Identify bottlenecks in your workflow
- Optimise agent configuration based on real data
- Track improvement over time
The ReArch Dashboard
Section titled “The ReArch Dashboard”Access the team dashboard:
rearch dashboard open# Opens https://app.rearch.engineer/org/acme/dashboardThe dashboard has four main sections:
Overview
Section titled “Overview”High-level metrics at a glance:
| Metric | Description |
|---|---|
| Tasks completed | Total tasks successfully completed this period |
| Avg. completion time | Mean time from task creation to PR merge |
| Success rate | Percentage of tasks completed without manual intervention |
| Lines of code | Total lines added/modified/removed by agents |
| PRs created | Number of pull requests generated |
| Review pass rate | Percentage of agent PRs approved on first human review |
Activity Feed
Section titled “Activity Feed”A chronological stream of all agent activity across the organisation:
[Mar 08, 14:32] ✓ Task #412 completed — "Add pagination to /users endpoint" Agent: backend-agent | Pipeline: feature | Duration: 8m 12s PR #89 created → merged by @alice
[Mar 08, 13:15] ⚠ Task #411 needs review — "Migrate auth to OAuth2" Agent: backend-agent | Pipeline: migration | Duration: 22m 04s PR #88 created → 2 change requests from @bob
[Mar 08, 11:00] ✓ Task #410 completed — "Fix date formatting in reports" Agent: frontend-agent | Pipeline: bugfix | Duration: 3m 44s PR #87 created → merged by @carolTeam Breakdown
Section titled “Team Breakdown”Per-team and per-developer statistics:
Frontend Team├── Tasks: 45 completed / 3 failed├── Avg. time: 6m 30s├── Top user: Alice (28 tasks)└── Most used pipeline: feature (67%)
Backend Team├── Tasks: 62 completed / 5 failed├── Avg. time: 11m 15s├── Top user: Bob (41 tasks)└── Most used pipeline: bugfix (45%)Trends
Section titled “Trends”Charts showing progress over time:
- Tasks per week (with trend line)
- Average completion time (should decrease as prompts improve)
- Success rate over time
- Code quality metrics (lint errors, test coverage delta)
Custom Reports
Section titled “Custom Reports”Generate reports for specific time periods or audiences:
# Weekly engineering reportrearch report generate \ --period "last 7 days" \ --format markdown \ --output weekly-report.md
# Monthly executive summaryrearch report generate \ --period "2025-02" \ --format pdf \ --template executive \ --output feb-2025-report.pdf
# Per-team breakdownrearch report generate \ --period "last 30 days" \ --team frontend \ --format json \ --output frontend-metrics.jsonReport Templates
Section titled “Report Templates”| Template | Audience | Includes |
|---|---|---|
engineering | Dev team | Detailed metrics, task breakdown, failure analysis |
executive | Leadership | High-level ROI, time saved, adoption trends |
compliance | Security/audit | Agent access logs, code review coverage, security gate results |
Custom Templates
Section titled “Custom Templates”Create your own report template:
template: name: sprint-review sections: - title: "Sprint Summary" metrics: - tasks_completed - tasks_failed - avg_completion_time
- title: "Top Contributions" query: "top_tasks_by_lines_changed(limit=5)"
- title: "Quality" metrics: - review_pass_rate - test_coverage_delta - lint_errors_introduced
- title: "Recommendations" auto_generate: true # AI-generated suggestions based on dataTracking ROI
Section titled “Tracking ROI”The most common question from leadership: “Is this worth it?”
ReArch calculates estimated ROI based on:
Time saved = (tasks_completed × avg_manual_time) - (tasks_completed × avg_agent_time + review_time)Configure your baseline:
metrics: baseline: avg_manual_task_minutes: 120 # How long a task takes without AI developer_hourly_rate: 75 # For cost calculations (optional)Example ROI output:
February 2025 ROI Summary─────────────────────────Tasks completed by agents: 107Estimated manual time: 214 hoursActual agent + review time: 52 hoursTime saved: 162 hoursEfficiency gain: 75.7%Exporting Data
Section titled “Exporting Data”All metrics are available via API for custom dashboards:
# JSON exportcurl -H "Authorization: Bearer $REARCH_API_KEY" \ "https://api.rearch.engineer/v1/org/acme/metrics?period=30d" \ -o metrics.json
# CSV exportrearch metrics export --period "last 90 days" --format csv --output metrics.csvIntegrate with your existing tools:
- Grafana: Use the ReArch data source plugin
- Datadog: Forward metrics via the webhook integration
- Google Sheets: Import CSV exports on a schedule
Course Summary
Section titled “Course Summary”You have completed the Team Collaboration course. You now know how to:
- Set up a team workspace with roles and permissions
- Configure AI-assisted code review agents
- Track productivity metrics and generate reports for stakeholders
Recommended Next Steps
Section titled “Recommended Next Steps”- API Reference — Build custom integrations with the ReArch API
- CLI Reference — Full command reference for power users
- Environment Variables — Configuration reference for all settings