Monorepo vs Polyrepo for AI-driven development

Posted by PmMeCuteDogsThanks_@reddit | ExperiencedDevs | View on Reddit | 15 comments

Short background: our system has always been in a monorepo (15+ years), but over the last couple of years there has been a push toward a polyrepo approach. As a result, we now have about 10 repositories, with different test strategies and no shared resources. I consider it a total mess. While I’m sure everything can be improved with better tooling, I can’t help but think: why even bother?

More importantly, I feel that for AI-driven development, a monorepo is even more advantageous. Our monorepo is well documented, with Claude files at every relevant level—about 150 files in total. I can open Claude at the root and get strong system-wide support. If I want to focus on something more specific, I can open Claude at a deeper level. Common capabilities can be shared in the root .claude directory.

I recognize there may be some home bias here, but I really value the ability to create a single PR for system-wide changes, have centralized PR management, and rely on a single commit hash to represent the entire system state.

The main complaint I hear is essentially: “shared responsibility becomes no responsibility.” I’m not saying a monorepo is without problems—it’s a compromise. But as we move toward more AI-driven development, I feel it simplifies many aspects.

Technically, I could replicate this setup by cloning multiple repositories into a tree structure or by using submodules. But again—why bother?

Question: Does using a monorepo improve the effectiveness of AI?

Disclaimer: I used AI to proofread this post, English isn't my native language.