# AI Coding Tip 023 - Shrink your AI's Pull Request

DevFeed: [AI Coding Tip 023 - Shrink your AI's Pull Request](<https://devfeed.tech/articles/ai-coding-tip-023-shrink-your-ai-s-pull-request-18213.md>)

Original publisher: [Read original article](<https://maximilianocontieri.com/ai-coding-tip-023-shrink-your-ai-s-pull-request>)

Author: Maxi Contieri

Published: 2026-06-06T16:06:11Z

Content type: tutorial

Language: en

Sources: [Maximiliano Contieri - Software Design](<https://devfeed.tech/sources/maximiliano-contieri-software-design.md>)

Topics: [Pull Request](<https://devfeed.tech/topics/pull-request.md>), [Code review](<https://devfeed.tech/topics/code-review.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [stacked pull requests](<https://devfeed.tech/topics/stacked-pull-requests.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [codex](<https://devfeed.tech/topics/codex.md>)

Tags: [1-7](<https://devfeed.tech/tags/1-7.md>), [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [attention](<https://devfeed.tech/tags/attention.md>), [backend](<https://devfeed.tech/tags/backend.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [branch](<https://devfeed.tech/tags/branch.md>), [build](<https://devfeed.tech/tags/build.md>), [change](<https://devfeed.tech/tags/change.md>), [ci](<https://devfeed.tech/tags/ci.md>), [cli](<https://devfeed.tech/tags/cli.md>), [code](<https://devfeed.tech/tags/code.md>), [code-review](<https://devfeed.tech/tags/code-review.md>), [feature](<https://devfeed.tech/tags/feature.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [pull-requests](<https://devfeed.tech/tags/pull-requests.md>), [small](<https://devfeed.tech/tags/small.md>), [split](<https://devfeed.tech/tags/split.md>), [work](<https://devfeed.tech/tags/work.md>)

## AI overview

The article recommends planning AI coding work as a sequence of small, independently reviewable pull requests before implementation begins. Write a short spec, have the agent propose a plan, set a concrete size cap (such as 100 lines per PR), and require each PR to do one logical thing; review the plan and separate refactoring from new behavior. Open PRs early so CI can run, provide related PRs as context, and ask the agent to split any PR that exceeds the cap. The stated benefits include focused human review, earlier CI feedback, simpler rollbacks, and fewer merge conflicts. The excerpt argues that oversized diffs can invite skimming and hide defects, but does not provide evidence for the claimed benefits or describe the referenced workflow in full.

## Source excerpt

TL;DR: Tell your AI to split work into small reviewable pull requests before it writes any code. Common Mistake ❌ You ask your AI agent to build a feature. The agent opens a 2,000-line pull request t