How I got Claude to write code I could actually ship
Claude Code can generate thousands of lines of code quickly, but large AI-generated PRs are difficult to review safely. The solution is teaching Claude to create stacked pull requests using Graphite's gt CLI, breaking complex features into smaller, focused, reviewable chunks. By adding specific instructions about stacking workflows and requiring Claude to plan its approach before coding, developers can make AI-generated code more manageable and shippable. The GT MCP tool helps align Claude's internal planning with actual PR structure.