What problem does it solve?
Engineering teams lose institutional knowledge buried in GitHub PR discussions and issue threads, causing contributors and AI agents to repeat mistakes and miss established conventions.
Core Features & Use Cases
- Incremental Crawling: Uses the GitHub CLI to fetch only new merged PRs and updated issues since the last run, capped at 50 PRs per execution.
- Insight Distillation: Extracts actionable design decisions, reviewer corrections, conventions, and acknowledged tech debt, each cited to its source PR or issue.
- Deduplication & Merging: Consolidates overlapping insights into a single structured REPO_CONTEXT.md document kept between 500-1000 lines.
- Use Case: A maintainer runs this periodically so that AI coding agents working on the repository read REPO_CONTEXT.md first and avoid repeating mistakes that reviewers previously corrected.
Quick Start
Ask the agent to run the build-repo-context workflow to crawl recent GitHub PRs and issues and update agent_artefacts/repo_context/REPO_CONTEXT.md with distilled repository conventions.