All workAndrew Cates.

Project 66 of 84

PR Bot

Self-hosted AI code-review platform that automatically reviews GitHub and Azure DevOps pull requests, learns from developer replies to its comments, and exposes its core operations to agents via MCP and a CLI.

Status
In progress
Area
AI Agent Tooling & MCP
Last activity
2026
Stack
  • TypeScript
  • Node
  • pnpm workspaces
  • Turborepo
  • Next.js
  • Next.js static site
  • Hono
  • Temporal

Highlights

  1. Fixed a silent review-quality bug where AI findings without structured file/line collapsed into one summary comment, adding a validated fallback that recovers the location from the finding text only when it resolves to a real file in the clone
  2. Cut the pr-bot API Docker image from 266MB to 153MB (-42%) with a production-only pnpm deploy stage, and fixed a latent tsconfig bug that blocked Prisma client generation in the build
  3. Brought pr-bot to the shared repo standard: release-please versioning, first-time ESLint/Prettier adoption across 340 files with real lint fixes (hook deps, query keys, form labels, explicit any), and a typecheck/lint/test/format CI gate
  4. Moved pr-bot CI, docs and macOS desktop builds from GitHub-hosted to self-hosted runner groups, replacing global git config with job-scoped settings so credentials cannot leak between repos on a shared runner
  5. Built and shipped a 46-page public marketing site for pr-bot (static Next.js, no auth, database or secrets) with a consent banner, validated contact route, link-crawl build check and tests that fail when tool pages drift from the MCP server and CLI source
  6. Designed a manual Vercel deploy path on an isolated release runner with a main-only environment and a deploy token scoped to two steps, so git activity never triggers builds or exposes the token to PR jobs
  7. Generated CODING_STANDARDS.md and a domain GLOSSARY.md for pr-bot from the actual code, including a counted inconsistency table and flagged ambiguities, to anchor agent and human contributions