Automated Code Review Powered by OpenCode: an LLM Agent in CI/CD
summary
A Go-based CI/CD service uses OpenCode's HTTP API to run parallel LLM-agent review sessions on merge requests and publish comments to GitLab. It orchestrates session creation, messaging, SSE result collection, tool-calling across sub-agents, and discusses gaps they filled themselves (retry logic, fallbacks, context preparation). The talk focuses on practical integration of OpenCode agents into automatic code review pipelines.
AI-written summary · about
chapters (23)
- 0:00Introduction
- 2:27Code review bottleneck
- 6:39AI impact on merge time
- 7:00First AI review version
- 10:13Tool-calling agents
- 12:21First version problems
- 15:51GitLab API limits
- 20:04Second version requirements
- 21:07Second version pipeline
- 22:49OpenCode config
- 25:15Agent CMD vs cloud MD
- 26:16Custom tools and contracts
- 28:22Pre-check and validation
- 30:09Diff preparation
- 31:32Reviewer phases
- 33:40Sub-agents and parallel checks
- 35:06Two-phase review
- 36:08Publishing GitLab comments
- 37:09GitLab runner integration
- 38:11Agent cycle comparison
- 39:13Open questions and future
- 40:36Key takeaways
- 41:41Q&A
