You can and should have both smaller chunks and a larger time horizon. The AI should output code in a format that's easy to review.
The Linux kernel submission guidelines are one thing you can feed the AI to guide that. Work is submitted as a patch set, and each patch in the set must be small and self contained. Many patch sets are over 50 patches.