claude-memory/graph/configurations/pr-reviewer-agent-definition-and-dispatcher-system-b79abd.md
2026-03-02 15:57:50 -06:00

3.0 KiB

id type title tags importance confidence created updated relations
b79abde1-7076-4448-aa8e-65a08f354d93 configuration PR Reviewer Agent Definition and Dispatcher System
pr-reviewer
claude-scheduled
gitea
automation
code-review
configuration
systemd
dotfiles
0.9 0.8 2026-03-02T21:57:02.397771+00:00 2026-03-02T21:57:50.004912+00:00
target type direction strength edge_id
4321bee8 RELATED_TO outgoing 0.92 f0c8fa50-eb42-4781-8c48-cc8af41062a0
target type direction strength edge_id
4321bee8-105e-4fc8-b645-964d1234c966 RELATED_TO outgoing 0.91 d0f4bd86-8cd5-4015-89bb-36391b1c3c1b
target type direction strength edge_id
b27fb831-811e-4103-b5f1-3c36d5b1ad20 RELATED_TO outgoing 0.87 2a9cc198-e0e4-43bf-ab4d-55dc76e1205a
target type direction strength edge_id
231645fd-79ae-4e01-b251-7720c16dc998 REQUIRES outgoing 0.9 6e79537d-bc7c-4822-975b-de2b72a85649
target type direction strength edge_id
bb05e13c-d0dd-422e-a7b2-d5eaa891f0b3 RELATED_TO outgoing 0.8 56d0f059-acd5-4084-adc0-8f80bd5fc274
target type direction strength edge_id
1c58a8f4-ad77-4dd7-aa1a-f6e3b7f628de RELATED_TO outgoing 0.8 27770af7-81d7-461b-a841-638de9e2cc61
target type direction strength edge_id
3e0406ac-549d-4509-b918-ad638c883448 RELATED_TO outgoing 0.9 0d354e0b-dcf7-4495-9b3e-b06ca41527c2
target type direction strength edge_id
4321bee8-105e-4fc8-b645-964d1234c966 FOLLOWS outgoing 0.9 9c241433-4eb2-4a0b-a5ee-41ab4e923ade
target type direction strength edge_id
cb5e8814 BUILDS_ON outgoing 0.9 f6870575-62b6-4209-b90b-f78dc9a95c3b

PR Reviewer Agent Definition and Dispatcher System

Built a complete automated PR review system using Claude Code.

Components

1. Agent Definition

  • File: ~/.claude/agents/pr-reviewer.md
  • Read-only agent that:
    • Fetches PR diff via gitea-mcp
    • Reads project CLAUDE.md for conventions
    • Checks cognitive memory for context
    • Evaluates correctness, security, and style
    • Posts formal Gitea PR review via create_pull_request_review

2. Dispatcher Script

  • File: ~/dotfiles/claude-scheduled/pr-reviewer-dispatcher.sh
  • Symlinked to: ~/.config/claude-scheduled/
  • Polls all tracked repos for open PRs without ai-reviewed labels
  • Spawns reviewer agents per PR
  • Updates labels after review
  • Sends Discord notifications

3. Task Config

  • Location: ~/dotfiles/claude-scheduled/tasks/pr-reviewer/
  • Symlinked to: ~/.config/claude-scheduled/tasks/pr-reviewer/
  • settings.json: $1/PR budget, sonnet model, max 5 PRs
  • prompt-template.md: review instructions
  • mcp.json.template: MCP server config template
  • repos.json: symlinked from issue-worker's copy

4. Systemd Timer/Service

  • Files: ~/dotfiles/systemd/claude-pr-reviewer.{timer,service}
  • Symlinked to: ~/.config/systemd/user/
  • Schedule: every 30 min, Mon-Fri 9am-5pm
  • Timer not yet enabled — waiting for first real PR test