Repository navigation
Closed
Description
Q Workflow Optimization Report
Issue Found (from live data)
weekly-blog-post-writer
- Blog post grep analysis:
auto-triage-issuesappeared 5 times as Agent of the Week across the 9 published blog posts - Root cause: Step 5-1 only read the wiki memory file (
/tmp/gh-aw/repo-memory/wiki/agent-of-the-week.md), which is ephemeral and resets between runs — so every run thoughtauto-triage-issueswas a fresh pick - Blog posts analyzed:
docs/src/content/docs/blog/2026-03-18-weekly-update.mdthrough2026-05-11-weekly-update.md
Changes Made
weekly-blog-post-writer (.github/workflows/weekly-blog-post-writer.md)
- Added Source B in Step 5-1: grep all blog posts for
Agent of the Week:headings to build a per-workflow feature countgrep -rh "Agent of the Week:" docs/src/content/docs/blog/ \ | grep -oP "Agent of the Week: \K[^\]\n]+" \ | sort | uniq -c | sort -rn
- Updated Step 5-2: choose the workflow with the lowest feature count from the blog-post grep (rather than just checking the wiki file). Among ties, prefer the one featured least recently.
- Wiki memory is still read as a secondary source — both are merged.
Expected Improvements
- Eliminates duplicate Agent of the Week selections by using the published blog posts as ground truth
- The blog post grep is robust to ephemeral wiki memory resets between workflow runs
Validation
✅ weekly-blog-post-writer compiled successfully with no errors or warnings.
Note: .lock.yml files will be regenerated automatically after merge.
References
- Triggered by comment on issue [blog] Weekly blog post – 2026-05-11 #31409 by
@pelikhan - Blog post feature counts extracted from
docs/src/content/docs/blog/
- expires on May 13, 2026, 4:30 AM UTC
Note
This was originally intended as a pull request, but the git push operation failed.
Workflow Run: View run details and download bundle artifact
The bundle file is available in the agent artifact in the workflow run linked above.
To create a pull request with the changes:
# Download the artifact from the workflow run
gh run download 25650191988 -n agent -D /tmp/agent-25650191988
# Fetch the bundle into a local branch
git fetch /tmp/agent-25650191988/aw-q-blog-post-writer-agent-dedup.bundle refs/heads/q/blog-post-writer-agent-dedup:refs/heads/q/blog-post-writer-agent-dedup-8100f8ce4f8a4e0e
git checkout q/blog-post-writer-agent-dedup-8100f8ce4f8a4e0e
# Push the branch to origin
git push origin q/blog-post-writer-agent-dedup-8100f8ce4f8a4e0e
# Create the pull request
gh pr create --title '[q] fix(weekly-blog-post-writer): grep blog posts to avoid duplicate Agent of the Week' --base main --head q/blog-post-writer-agent-dedup-8100f8ce4f8a4e0e --repo github/gh-awReacted by Copilot
Activity