Skip to content

[q] connect agent-performance-analyzer to agentdb #32815

@github-actions

Description

@github-actions

Q Workflow Optimization Report

Triggered by: @pelikhan via /q connect to agentdb on discussion #32813

Changes Made

agent-performance-analyzer (.github/workflows/agent-performance-analyzer.md)

  • Added shared/mcp/agentdb.md import — provides AgentDB MCP server for vector memory/search
  • Added AgentDB Vector Memory section to the prompt instructing the agent to:
    • Upsert agent score records after Phase 2 (quality assessment)
    • Query previous week records for trend deltas (replaces scanning daily metrics files)
    • Use semantic search during Phase 3 pattern detection to find similar past incidents
    • Store resolved patterns to detect regressions across runs

Expected Improvements

  • Trend analysis: agent can compute score deltas from agentdb without reading all daily metrics files
  • Semantic recall: similar past incidents (e.g., token budget exhaustion) surfaced automatically
  • Pattern persistence: resolved patterns stored so regressions are caught on future runs

Validation

agent-performance-analyzer compiled successfully (0 errors, 0 warnings)

Note: .lock.yml will be regenerated automatically after merge.


Warning

Protected Files — Push Permission Denied

This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.

Protected files

The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.

Create the pull request manually
# Download the patch from the workflow run
gh run download 25991785752 -n agent -D /tmp/agent-25991785752

# Create a new branch
git checkout -b q/agent-performance-analyzer-agentdb-0ee97d66db0139f6 main

# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-25991785752/aw-q-agent-performance-analyzer-agentdb.patch

# Push the branch and create the pull request
git push origin q/agent-performance-analyzer-agentdb-0ee97d66db0139f6
gh pr create --title '[q] connect agent-performance-analyzer to agentdb' --base main --head q/agent-performance-analyzer-agentdb-0ee97d66db0139f6 --repo github/gh-aw

🎩 Equipped by Q · ● 8.4M ·

  • expires on May 19, 2026, 1:16 PM UTC

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions