{"id":50478388,"url":"https://github.com/gametimesf/prbuddy","last_synced_at":"2026-06-01T15:04:31.283Z","repository":{"id":349938815,"uuid":"1204001717","full_name":"gametimesf/prbuddy","owner":"gametimesf","description":"AI-powered PR review companion — authors train agents with context, reviewers ask questions with voice or text","archived":false,"fork":false,"pushed_at":"2026-04-08T07:18:26.000Z","size":257,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-08T08:30:02.997Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gametimesf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-07T15:41:08.000Z","updated_at":"2026-04-08T07:18:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gametimesf/prbuddy","commit_stats":null,"previous_names":["gametimesf/prbuddy"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/gametimesf/prbuddy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gametimesf%2Fprbuddy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gametimesf%2Fprbuddy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gametimesf%2Fprbuddy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gametimesf%2Fprbuddy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gametimesf","download_url":"https://codeload.github.com/gametimesf/prbuddy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gametimesf%2Fprbuddy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33780099,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-01T15:04:30.343Z","updated_at":"2026-06-01T15:04:31.274Z","avatar_url":"https://github.com/gametimesf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PR Buddy\n\nAn AI-powered review companion for pull requests. Authors train agents with context about their PR, and reviewers can then ask questions — getting answers grounded in author knowledge, code diffs, and team context.\n\n## How It Works\n\n```mermaid\nsequenceDiagram\n    participant Author\n    participant PRBuddy as PR Buddy\n    participant Weaviate as Knowledge Base\u003cbr/\u003e(Weaviate)\n    participant GitHub\n    participant Unblocked\n\n    Note over PRBuddy,Weaviate: Session Creation\n    PRBuddy-\u003e\u003eGitHub: Fetch diff, description, comments\n    GitHub--\u003e\u003ePRBuddy: PR content\n    PRBuddy-\u003e\u003eWeaviate: Auto-index diff chunks,\u003cbr/\u003edescription, comments\n\n    Note over Author,Weaviate: Author Training\n    Author-\u003e\u003ePRBuddy: \"Edgar likes this approach\"\n    PRBuddy-\u003e\u003eWeaviate: Index author_explanation\u003cbr/\u003e(preserves entity names)\n    PRBuddy--\u003e\u003eAuthor: Got it - Edgar approves\u003cbr/\u003ethe explicit access approach.\n\n    opt Research (team context, history, Slack)\n        Author-\u003e\u003ePRBuddy: \"What did the team discuss?\"\n        PRBuddy-\u003e\u003eUnblocked: Search team context,\u003cbr/\u003eSlack, historical decisions\n        Unblocked--\u003e\u003ePRBuddy: Relevant discussions\n        PRBuddy-\u003e\u003eWeaviate: Index findings\n        PRBuddy--\u003e\u003eAuthor: Team discussed via Envoy...\n    end\n```\n\n```mermaid\nsequenceDiagram\n    participant Reviewer\n    participant PRBuddy as PR Buddy\n    participant Weaviate as Knowledge Base\u003cbr/\u003e(Weaviate)\n    participant Unblocked\n\n    Note over Reviewer,Weaviate: Reviewer Q\u0026A (auto-injection)\n    Reviewer-\u003e\u003ePRBuddy: \"Is Edgar ok with this?\"\n    PRBuddy-\u003e\u003eWeaviate: 3 parallel queries:\u003cbr/\u003ehybrid + BM25 + vector\n    Weaviate--\u003e\u003ePRBuddy: Matching docs\u003cbr/\u003e(author explanations, diff, etc.)\n    Note over PRBuddy: Deduplicate, rank,\u003cbr/\u003einject as system context\n    PRBuddy--\u003e\u003eReviewer: Edgar reviewed and approves.\u003cbr/\u003eHe likes the explicit single-service access.\n\n    opt Research (when KB lacks context)\n        Reviewer-\u003e\u003ePRBuddy: \"How long has this been requested?\"\n        PRBuddy-\u003e\u003eUnblocked: Search Slack, Jira,\u003cbr/\u003ehistorical PRs\n        Unblocked--\u003e\u003ePRBuddy: Timeline + discussions\n        PRBuddy-\u003e\u003eWeaviate: Index findings\n        PRBuddy--\u003e\u003eReviewer: Requested for ~6 months,\u003cbr/\u003etracked in INFRA-432.\n    end\n```\n\n## Architecture\n\n```mermaid\ngraph TB\n    subgraph Frontend\n        WEB[Web UI\u003cbr/\u003eVoice + Text]\n        EXT[Chrome Extension\u003cbr/\u003eSide Panel + Diff Selection]\n    end\n\n    subgraph Server[\"FastAPI Server\"]\n        WS[WebSocket Handler]\n        TEXT[Text Session]\n        PIPE[Pipeline Session\u003cbr/\u003eSTT + Agent + TTS]\n        CI[Context Injection\u003cbr/\u003eMulti-query RAG]\n    end\n\n    subgraph Agents[\"Agent System (YAML-configured)\"]\n        AT[AuthorTraining]\n        RQ[ReviewerQA]\n        RE[Research]\n        AT \u003c--\u003e|handoff| RE\n        RQ \u003c--\u003e|handoff| RE\n    end\n\n    subgraph Storage\n        WV[(Weaviate\u003cbr/\u003eVector DB)]\n    end\n\n    subgraph External\n        GH[GitHub API]\n        UB[Unblocked MCP\u003cbr/\u003eTeam Knowledge]\n    end\n\n    WEB --\u003e WS\n    EXT --\u003e WS\n    WS --\u003e TEXT\n    WS --\u003e PIPE\n    TEXT --\u003e CI\n    CI --\u003e WV\n    TEXT --\u003e Agents\n    PIPE --\u003e Agents\n    Agents --\u003e WV\n    RE --\u003e GH\n    RE --\u003e UB\n```\n\n## Key Features\n\n- **Auto-indexed PR context** — Diff, description, and comments are fetched from GitHub and indexed into Weaviate on session creation. Agents start with full context immediately.\n- **Auto-context injection** — Before each reviewer question, 3 parallel RAG queries (hybrid, BM25, vector) surface relevant author knowledge automatically. The agent doesn't need to decide to search.\n- **Entity-aware indexing** — Author explanations preserve people, team, and system names for reliable keyword matching (e.g., \"Edgar\" stays \"Edgar\", not \"a stakeholder\").\n- **Voice + Text modes** — Text chat or voice (Whisper STT + Polly/OpenAI TTS).\n- **Diff selection** — Chrome extension lets reviewers highlight code and ask questions with that context.\n- **Research via Unblocked MCP** — Agents can search Slack, Jira, historical PRs, and team discussions.\n\n## Quick Start\n\n```bash\n# Setup\nmake setup\n\n# Edit .env and add your OPENAI_API_KEY\n\n# Start Weaviate + dev server\nmake dev\n```\n\nThen open http://localhost:8000 in your browser.\n\n### Chrome Extension\n\nLoad the extension for the side panel experience on GitHub PRs:\n\n1. Go to `chrome://extensions`\n2. Enable **Developer mode**\n3. Click **Load unpacked** and select the `prbuddy-extension/` directory\n\n### Voice Mode Requirements\n\nFor voice modes (Pipeline), you need:\n- **ffmpeg** — `brew install ffmpeg` (macOS) or `sudo apt install ffmpeg` (Linux)\n- **OPENAI_API_KEY** — For Whisper STT\n- **AWS credentials** or **ELEVENLABS_API_KEY** — For TTS\n\n## Session Modes\n\n| Mode | Description | Latency |\n|------|-------------|---------|\n| **Text** | Chat-based Q\u0026A | Instant |\n| **Pipeline** | Whisper STT + Agent + TTS | ~2-3s |\n\n## Configuration\n\nAgent behaviors are configured via YAML files in `config/agents/`:\n\n| Directory | Agents | Purpose |\n|-----------|--------|---------|\n| `common/` | Research | Context gathering from GitHub + Unblocked |\n| `author/` | AuthorTraining, AuthorEngagement | Author interview and knowledge capture |\n| `reviewer/` | ReviewerQA | Reviewer Q\u0026A with citations |\n\n## Development\n\n```bash\nmake setup    # Install dependencies\nmake dev      # Start Weaviate + server (hot reload)\nmake test     # Run unit tests (81 tests)\nmake eval     # Run evals (requires Weaviate + OPENAI_API_KEY)\nmake clean    # Clean up generated files\n```\n\n## Evals\n\nThe `evals/` directory contains end-to-end scenarios that verify author-to-reviewer knowledge sharing:\n\n| Scenario | Tests |\n|----------|-------|\n| `edgar_approval` | Author says \"Edgar likes this\" — reviewer can find it with 5 phrasings |\n| `technical_decision` | Author explains tradeoff — reviewer finds the reasoning |\n| `indirect_reference` | Author provides context — reviewer finds it with different wording |\n\n```bash\nmake eval  # Requires Weaviate running + OPENAI_API_KEY\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgametimesf%2Fprbuddy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgametimesf%2Fprbuddy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgametimesf%2Fprbuddy/lists"}