Multi-agent PR review system with auto-fix, security scanning, and debate features.
- Initialize monorepo structure
- Set up Python package with pyproject.toml
- Set up TypeScript package with package.json
- Create docs/ROADMAP.md, PROGRESS.md, devlog/
- Create base provider interface (
providers/base.py) - Implement OpenAI provider
- Implement Anthropic provider
- Implement Ollama provider
- Add provider factory with config
- Parse git diff output
- Extract changed files and hunks
- Read file contents with context
- Create patch objects
- Single agent that reviews a diff
- Returns structured feedback (file, line, severity, message)
- Test on sample PRs
- Orchestrates multiple specialist agents
- Parallel execution support
- Aggregates and deduplicates findings
- Prioritizes issues by severity
- Consensus-based approval decision
- OWASP vulnerability detection
- Secrets/credential scanning
- Dependency vulnerability awareness
- Security-specific prompts and rules
- Define message format between agents (models.py)
- Implement handoff protocol via Coordinator
- Add logging for debugging agent interactions
- Create
cli.pywith Click -
codecourt review <diff-file>command -
codecourt review --stdinfor piped input -
codecourt review --repo <path>for local repos - Provider/model selection (
--provider,--model) - Output formats (
--format rich|json|markdown) -
codecourt providerscommand -
codecourt parsecommand - Config file support (.codecourtrc)
- Defender agent: argues FOR the code changes
- Prosecutor agent: argues AGAINST / finds problems
- Judge agent: synthesizes and makes final call
- Structured debate rounds (2-3 exchanges)
- Generate fix suggestions as patches
- Validate patches apply cleanly
- Run basic syntax checks on fixes
- Output unified diff format
- Aggregate all agent outputs
- Generate markdown summary
- Include confidence scores
- Format for PR comment
- REST API for triggering reviews
- Async processing with status polling
- Webhook support for GitHub
-
pr-review analyze <repo> <pr-number> -
pr-review review --local(for local diffs) - Config file support (.pr-reviewrc)
- action.yml with inputs
- Trigger on PR open/update
- Post comments via GitHub API
- Optional auto-fix commit
- Unit tests for each agent
- Integration tests with mock LLMs
- End-to-end test on real repo
- README with setup instructions
- Architecture documentation
- Demo GIFs/screenshots
- Deploy to a sample repo
- Record demo video
- Write blog post / case study