@dzhng: I found myself structuring the monorepo into microservices a lot more (even tho technically they are not microservices)…

X AI KOLs Following News

Summary

The author discusses the challenges of scaling monorepos with AI tools like Codex, noting increased token consumption as codebases grow and suggesting that loosely coupled modules may be needed to handle AI context limits.

Kanary's monorepo is growing by 100,000 lines every month, and it's already around 450,000 lines now. Meanwhile, Codex's token consumption is speeding up in parallel. In other words, as the number of files the agent explores increases, the token consumption per task also goes up— which, well, is obviously just a natural consequence, if you think about it. But having watched that growth process in fast-forward has made it hit hard on a gut level. I wonder what's the best way to handle this in huge projects. Even in my own projects, since macOS and iOS share some code, I can't completely separate the search space within the monorepo. Given that AI context doesn't scale up dramatically, it seems like the only option is to make modules more loosely coupled?
Original Article
View Cached Full Text

Cached at: 08/24/26, 10:03 PM

Kanary’s monorepo is growing by 100,000 lines every month, and it’s already around 450,000 lines now.

Meanwhile, Codex’s token consumption is speeding up in parallel.

In other words, as the number of files the agent explores increases, the token consumption per task also goes up— which, well, is obviously just a natural consequence, if you think about it.

But having watched that growth process in fast-forward has made it hit hard on a gut level.

I wonder what’s the best way to handle this in huge projects.

Even in my own projects, since macOS and iOS share some code, I can’t completely separate the search space within the monorepo.

Given that AI context doesn’t scale up dramatically, it seems like the only option is to make modules more loosely coupled?

Similar Articles

Is monolith AI the future?

Reddit r/ArtificialInteligence

A discussion on whether monolithic AI systems are sustainable, drawing parallels to software monoliths and suggesting that specialized micro-service-style agents working together might be the future.