Skip to content

feat: cross-project learning — global agent leaderboard and pattern library #42

@rlaope

Description

@rlaope

Summary

Store global agent performance in ~/.bestwork/ so new projects benefit from accumulated experience across all projects.

Requirements

  • src/observe/global-leaderboard.ts — aggregate agent scores across all projects
  • src/observe/pattern-library.ts — extract reusable patterns (task → agent mapping)
  • ~/.bestwork/leaderboards/agents.json — global per-agent stats
  • ~/.bestwork/leaderboards/patterns.jsonl — reusable task patterns + best agents
  • Modify src/harness/orchestrator.ts — look up global leaderboard before static mapping
  • bestwork leaderboard and bestwork patterns CLI commands

Acceptance Criteria

  • Global agent rankings across all projects
  • New project bootstraps with best-known agents from global data
  • Pattern library: "TypeScript refactor → sr-backend 85% success"
  • bestwork leaderboard shows cross-project rankings
  • Tests for aggregation and pattern extraction

Complexity

4/5 — cross-project file I/O, deduplication, pattern extraction

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions