Claude Code sub-agents impressions

"The meta-agent is now ready to systematically ensure complete test coverage across the entire project by discovering all specifications and delegating to the spec-test-coverage agent for each one".

Much like having the stack and being able to pack the reusable sets of operations into subroutines. Before it was all go to, now you can layer things on top. This is extremely useful - as it expectedly turns out, maintaining spec <=> code is a fairly laborious process, so being able to abstract it into a single "make sure they match" saves a lot of mental effort and context window - because the sub-task is entirely delegated.

This is fascinating, because the sub-agent functionality does allow us to model some organizational structure - rudimentary, but still. There is no simultaneity (although it's probably not that hard to add, just have a deeper wallet), and no "collaboration" in the standard workflow (it probably will be much harder to debug interaction of two contexts).

But there is most definitely a "delegation" mechanism - and what you delegate and how, will determine the success of the exercise.

I've already said earlier that LLMs - due to their limitations - will probably drive better software architectures - and I am sure the subagent abstraction is another push for that. In order to successfully split the concerns over the codebase, and do a good delegation, you must leak a little bit of context "upwards" - but not too much that the upper level is overwhelmed.

Right now I am experimenting with this in a "fun" project which implements a GUI for a llm-templated-coding approach, and naturally uses llm-templated-coding itself; but i see that purely spec => code approach is nice, but still a bit laborious when it breaks. So, I have added an agent which does spec => test transformations for a given spec, and ensures the adequate coverage. (So far it is only words, later to be looped by the feedback from the test coverage analysis).

And another agent, which ensures that the lower level agent is touching all of the spec-test pairs for a project.

This feels *remarkably* similar to building an organization.