Question 129
Claude Code runs headless inside a CI/CD pipeline: automated code reviews, test generation and pull-request feedback — with prompts designed for actionable findings and few false positives.
Read the full scenario lessonYou are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs automated code reviews, generates test cases, and provides feedback on pull requests. You need to design prompts that provide actionable feedback and minimize false positives.
Your automated reviewer uses a single prompt covering security issues, API design, and business logic correctness. Your evaluation suite shows strong recall for API design findings (82%) but poor recall for business logic edge cases in quiz scoring (34%). When you add few-shot examples of logic bugs to the prompt, logic recall improves to 41% but API design recall drops to 68%.
How should you address this trade-off to improve detection across both categories?