I've been seeing the same thing. Where agents are great solving the immediate task, but as changes compound they run into software & architectural design problems. I created https://github.com/andonimichael/arxitect to help at least have coding agents self reflect on their software design. But I really like your approach to self-modification and improving the agent itself instead of just teaching it another skill in it's context.
The layer you're solving (dependency graphs, shared state, upgradability) is exactly what breaks at scale when you compose agents. I've been tackling a different layer with GSEP: instead of evolving the agent's code structure, evolving the prompt genome itself — so the agent adapts without touching the scaffolding.
Curious if you've seen prompt drift as a problem in agent-os as agents compose over time?
Larger composition, though, starts to run into typical software design problems, like dependency graphs, shared state, how to upgrade, etc.
I've been working on this front for over two years now too: https://github.com/smartcomputer-ai/agent-os/