At Google, working in a shared codebase was part of everyday engineering. Code search, dependency management, testing and ownership were integrated into the development workflow. It was easy to discover existing implementations and make changes across components.
It's easy to take that for granted until you work somewhere without the same infrastructure.
In many organizations, teams start new projects in separate repositories. That gives them freedom to experiment, choose dependencies and move independently. As the organization grows, though, discovering and reusing work becomes harder. Shared libraries need versioning, standards diverge and changes spanning teams require coordination.
Coding agents add a new dimension: repository boundaries can also become boundaries around the context an agent can discover.
The question I find interesting is no longer simply monorepo or multiple repositories? It is what needs to be shared—code, knowledge or capabilities—and how do we do that without losing team autonomy?
A monorepo is more than one repository
Google's shared codebase works because of extensive supporting infrastructure: dependency analysis, large-scale builds, presubmit tests, code ownership, search and automated recovery from broken changes. The repository structure is only one part of that system. The Google monorepo paper explains how much tooling and coordination sit behind it.
Moving everything into one repository without comparable infrastructure can create slow builds, dependency conflicts and unclear ownership. Keeping everything separate has its own cost in discoverability and reuse.
Neither layout solves the problem by itself.
Coding agents need shared context
Consider a coding agent working on a model-training pipeline. The evaluation service, a feature transformation library and deployment tooling may all live in different repositories.
The agent may need to know what exists, who owns it, how to use it and which dependencies a change affects. It does not necessarily need every source file.
This suggests an engineering knowledge graph across repositories, connecting code, dependencies, tests, models, documentation, design decisions and ownership. An agent could follow those relationships to understand how a change affects other systems, even when the code lives elsewhere.
Not everything needs to be shared as source code. Some things are better shared as knowledge, while stable functionality can be exposed through APIs, skills or MCP tools. An agent may need to discover an evaluation service and understand its contract without accessing its entire implementation.
I think of this as a Team OS: a common engineering environment that connects work across GitHub, documentation, issue tracking and development tools while leaving teams in control of their implementations.
For example, an agent handling a Jira issue could find the relevant design document, identify existing code, check engineering standards and suggest a change plan. A pull-request agent could identify affected dependencies and appropriate reviewers.
Agents can help connect these systems, but they do not replace deterministic builds, tests or permission controls.
Shared standards, different needs
Research and production ML teams have different constraints. Experimental projects may need rapidly changing versions of Python, PyTorch or CUDA. Production services need compatibility and stable interfaces.
Sharing a repository does not require sharing a runtime environment. Projects can maintain separate environments while exposing carefully managed shared packages.
I would make shared standards a contract for code that others depend on, not a requirement that every experiment follow production rules from day one. Teams should have a clear path to promote useful work into reusable libraries when the interfaces are stable enough.
Participation should be attractive, not just mandatory. Teams are more likely to adopt shared conventions when they gain better discoverability, reuse, automated testing and access to common agent tools. The standards become part of the value of contributing reusable code rather than simply another hurdle.
That also requires ownership. A shared library, skill or MCP tool needs a maintainer, compatibility expectations and a clear answer to who handles breakages, permissions and reliability. An engineering guild or cross-team forum can steward shared standards and resolve boundary decisions without reviewing every local experiment. Making a capability discoverable is easier than making it trustworthy for others to depend on.
What I would carry forward
Looking back at my experience at Google, much of what I valued came from the infrastructure around the repository: finding existing code, understanding dependencies and getting feedback when a change broke something elsewhere. In another organization, I would start by asking which of those capabilities teams need most and what they can realistically maintain.
Shared standards become easier to adopt when they make everyday work easier. Reusing a library or running an existing test suite gives a team a concrete reason to participate, while separate environments can preserve room for experimentation. As more teams depend on that shared work, maintenance and compatibility become responsibilities that need time and clear ownership.
Coding agents make these connections useful in another way. Dependency metadata, ownership records and documented interfaces can help an agent follow a change across systems, even when those systems live in separate repositories. I am interested in how far that shared context can take us. Code that changes together may benefit from living together; components with stable interfaces and different release cycles may work well independently. The boundaries would follow those patterns of work.