Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 29, 2025

The Agent Performance Analyzer workflow needs explicit repository metadata access for comprehensive performance assessment, including analyzing agent outputs, calculating task completion rates, and detecting behavioral patterns.

Changes

  • Workflow configuration: Added repos to GitHub MCP toolsets array in agent-performance-analyzer.md
tools:
  github:
-   toolsets: [default, actions]
+   toolsets: [default, actions, repos]

Context

The default toolset already expands to include repos (along with context, issues, pull_requests), making this change technically redundant. However, explicit inclusion improves configuration clarity and documents the workflow's intended repository access capabilities.

Compiled lock file maintains correct toolsets: context,repos,issues,pull_requests,actions

Original prompt

This section details on the original issue you should resolve

<issue_title>[agent-performance] Enable GitHub MCP server for Agent Performance Analyzer</issue_title>
<issue_description>## Problem

The Agent Performance Analyzer workflow currently cannot access GitHub API data to analyze agent outputs, quality, and effectiveness. This severely limits its ability to:

  • Assess output quality (issues, PRs, comments created by agents)
  • Calculate task completion rates
  • Measure PR merge rates
  • Detect behavioral patterns (over/under-creation, duplication)
  • Map agent collaboration patterns
  • Generate meaningful performance scores

Current Limitation

The workflow documentation states:

The gh CLI is NOT authenticated. Do NOT use gh commands for GitHub operations.

Without GitHub API access, the analyzer can only perform configuration-based analysis, not actual performance assessment.

Solution

Add GitHub MCP server configuration to agent-performance-analyzer.md:

tools:
  agentic-workflows:
  github:
    toolsets: 
      - default      # Issues, PRs, discussions
      - actions      # Workflow runs, jobs, logs
      - repos        # Repository metadata
  repo-memory:
    branch-name: memory/meta-orchestrators
    file-glob: "**/*"

Expected Improvements

Once GitHub MCP server is enabled:

  1. Output Quality Analysis

    • Query issues/PRs with "AI generated by" attribution
    • Sample and rate clarity, accuracy, completeness
    • Calculate quality scores (0-100)
  2. Effectiveness Measurement

    • Track issue resolution rates
    • Measure PR merge rates
    • Calculate time-to-completion metrics
  3. Behavioral Pattern Detection

    • Identify over/under-creation patterns
    • Detect duplicate work
    • Flag scope creep instances
  4. Collaboration Mapping

    • Analyze cross-agent interactions
    • Find productive collaborations
    • Detect conflicts
  5. Data-Driven Rankings

    • Rank agents by quality scores
    • Identify top performers
    • Flag underperformers with evidence

Impact

High - Transforms the workflow from configuration analysis to comprehensive performance assessment

Acceptance Criteria

  • GitHub MCP server configured in workflow frontmatter
  • Workflow successfully queries GitHub API for agent outputs
  • Performance report includes quality scores
  • Behavioral pattern detection functional
  • Agent rankings based on actual data

Priority

High - Core functionality for meta-orchestrator effectiveness

Estimated Effort

30 minutes (configuration + testing)

Related

  • Part of Agent Performance Analysis infrastructure
  • Complements Metrics Collector workflow data
  • Enables #aw_fix_empty_engines validation

Testing

After implementation, verify:

  1. Workflow can query recent issues with agent attribution
  2. PR data accessible for merge rate analysis
  3. Workflow run data available for execution metrics
  4. Quality scoring logic produces reasonable results

AI generated by Agent Performance Analyzer - Meta-Orchestrator

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

The repos toolset is already included via the 'default' keyword, but
adding it explicitly makes the configuration clearer and matches the
expected workflow capabilities for repository metadata access.

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Enable GitHub MCP server for Agent Performance Analyzer Add explicit repos toolset to Agent Performance Analyzer workflow Dec 29, 2025
Copilot AI requested a review from mnkiefer December 29, 2025 06:09
@pelikhan pelikhan marked this pull request as ready for review December 29, 2025 09:44
@pelikhan pelikhan merged commit 1499e4a into main Dec 29, 2025
4 checks passed
@pelikhan pelikhan deleted the copilot/enable-github-mcp-server branch December 29, 2025 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[agent-performance] Enable GitHub MCP server for Agent Performance Analyzer

3 participants