[Feature Request] Subagents should inherit parent agent context to avoid redundant codebase scanning
Hey it would be really awesome if claude could spawn its subagents with the main agent's existing context. That way the subagents don't need to go around scanning the codebase for knowledge the main agent already has. Also means we won't have to do an expensive compact/compress to feed instructions and context into every agent.
This should be a frontmatter setting in each agent. Some agents would greatly benefit from this, for example test runner agents that prevent the main agent's context from being filled with junk.
Yes - need this big time. I have related, but opposite problem - i'm trying to save context in a planning agent by having it spawn subagents to straightforward stuff (like write documents, etc.). The idea being that file writing is context expensive. But the cost of transferring context to an agent eats up the savings from file writing. "Spawn" would solve this nicely.
BTW - anyone with a different workaround for my issue, let me know (i've reached the limits of my creativity on this one...)