[kimi] Generate daily/weekly agent scorecards (#712) #790

Merged
Timmy merged 3 commits from kimi/issue-712 into main 2026-03-22 01:41:53 +00:00
Collaborator

Fixes #712

Summary

Implements agent scorecard system that tracks and summarizes agent performance across issues, PRs, tests, and tokens.

Features

Core Functionality

  • Track issues touched, PRs opened/merged, tests affected, tokens earned/spent
  • Generate compact scorecards for daily or weekly periods
  • Pattern detection for interesting behaviors:
    • High merge rate with few failures → code quality focus
    • Lots of noisy PRs, low merge rate → may need review support
    • Silent workers (many issues, few comments)
    • Token accumulation/spend patterns

API Endpoints

  • GET /scorecards/api/agents - List tracked agents
  • GET /scorecards/api?period=daily|weekly - All scorecards (JSON)
  • GET /scorecards/api/{agent_id}?period=daily|weekly - Single agent (JSON)
  • GET /scorecards/panel/{agent_id}?period=daily|weekly - HTMX panel
  • GET /scorecards/all/panels?period=daily|weekly - All panels (HTMX)
  • GET /scorecards - Full dashboard page

UI

  • Scorecards dashboard with period selector
  • Auto-refresh every 5 minutes
  • Responsive grid layout
  • Added to main navigation (desktop + mobile)

New Files

  • src/dashboard/services/scorecard_service.py - Core scoring logic
  • src/dashboard/routes/scorecards.py - API routes
  • src/dashboard/templates/scorecards.html - Dashboard template
  • tests/dashboard/test_scorecards.py - Test suite

Modified Files

  • src/dashboard/app.py - Register new router
  • src/dashboard/templates/base.html - Add navigation links

Testing

All tests pass:

  • 42 new tests for scorecard functionality
  • 2760 total tests passing
  • tox -e format ✓
  • tox -e lint ✓
  • tox -e unit ✓
Fixes #712 ## Summary Implements agent scorecard system that tracks and summarizes agent performance across issues, PRs, tests, and tokens. ## Features ### Core Functionality - **Track** issues touched, PRs opened/merged, tests affected, tokens earned/spent - **Generate** compact scorecards for daily or weekly periods - **Pattern detection** for interesting behaviors: - High merge rate with few failures → code quality focus - Lots of noisy PRs, low merge rate → may need review support - Silent workers (many issues, few comments) - Token accumulation/spend patterns ### API Endpoints - `GET /scorecards/api/agents` - List tracked agents - `GET /scorecards/api?period=daily|weekly` - All scorecards (JSON) - `GET /scorecards/api/{agent_id}?period=daily|weekly` - Single agent (JSON) - `GET /scorecards/panel/{agent_id}?period=daily|weekly` - HTMX panel - `GET /scorecards/all/panels?period=daily|weekly` - All panels (HTMX) - `GET /scorecards` - Full dashboard page ### UI - Scorecards dashboard with period selector - Auto-refresh every 5 minutes - Responsive grid layout - Added to main navigation (desktop + mobile) ## New Files - `src/dashboard/services/scorecard_service.py` - Core scoring logic - `src/dashboard/routes/scorecards.py` - API routes - `src/dashboard/templates/scorecards.html` - Dashboard template - `tests/dashboard/test_scorecards.py` - Test suite ## Modified Files - `src/dashboard/app.py` - Register new router - `src/dashboard/templates/base.html` - Add navigation links ## Testing All tests pass: - 42 new tests for scorecard functionality - 2760 total tests passing - tox -e format ✓ - tox -e lint ✓ - tox -e unit ✓
kimi added 1 commit 2026-03-21 20:55:54 +00:00
feat: generate daily/weekly agent scorecards (#712)
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
66dfb353d7
Implements agent scorecard system that tracks and summarizes agent performance:

- Track issues touched, PRs opened/merged, tests affected, tokens earned/spent
- Generate compact scorecards for daily or weekly periods
- Pattern detection: high/low merge rates, silent workers, token accumulation
- API endpoints for programmatic access (/scorecards/api/*)
- HTML dashboard with HTMX-powered live updates
- Added navigation link in both desktop and mobile menus

New modules:
- dashboard/services/scorecard_service.py: Core scoring logic
- dashboard/routes/scorecards.py: API and HTML routes
- templates/scorecards.html: Dashboard UI
- tests/dashboard/test_scorecards.py: Comprehensive test suite

Refs #712
Timmy added 1 commit 2026-03-22 01:40:39 +00:00
Merge branch 'main' into kimi/issue-712
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
580c00cb5b
Timmy added 1 commit 2026-03-22 01:41:37 +00:00
Merge branch 'main' into kimi/issue-712
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
279f4e85d0
Timmy merged commit 447e2b18c2 into main 2026-03-22 01:41:53 +00:00
Timmy deleted branch kimi/issue-712 2026-03-22 01:41:53 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#790