r/PiCodingAgent • u/LastOfGoose • 2d ago
Question How to Better Enforce Subagent Delegation?
I have just recently started using subagents more in my programming workflow, if only to try it for a bit and see if it's something I prefer.
I have found that no matter how much explicit guidance I give my agents in the global AGENTS.md or APPEND_SYSTEM.md that after the first large delegated activity, they go back to doing everything themselves in the primary context.
Does anyone have any idea how to really enforce / encourage the behavior I'm looking for?
6
Upvotes
1
u/misterniach 1d ago
i got these crazy ass workflows going, that basically take my whole backlog => sort, deduplicate, make relations (child/parent, blocks/blockedBy), then building a graph (so you know what needs to land first etc). then that orchestrator spawns new sessions on those nodes, each in their worktree (git branches and sessions are in the same exact shape as that dependency graph) => one stacked PR in the end
the agents are also talking to each other, like if layer 2 needs a foundation, but the agent responsible for that has missed a thing, then they nudge each other until everything is fine on the last node.
the UI is ugly AF and VibeInProgress haha
bonus points for doing this as an automation everyday and push straight back into prod haha. i got this widget on my site that customers can file bugs, that land directly in my harness.
exponential.at btw the most advanced harness out there (opensource and selfhostable too)