Question 161
Scenario: Claude Code for Continuous Integration
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 lessonAn automated pipeline is using a PreToolUse hook to block unauthorized file reads by evaluating the requested file path. How does the hook command properly communicate to Claude *why* the action was blocked so the agent can adjust its behavior?