Remix.run Logo
lucraft 4 days ago

Right - don’t make subagents for the different roles, make them to manage context for token heavy tasks.

A backend developer subagent is going to do the job ok, but then the supervisor agent will be missing useful context about what’s been done and will go off the rails.

The ideal sub agent is one that can take a simple question, use up massive amounts of tokens answering it, and then return a simple answer, dropping all those intermediate tokens as unnecessary.

Documentation Search is a good one - does X library have a Y function - the subagent can search the web, read doc MCPs, and then return a simple answer without the supervisor needing to be polluted with all the context

macrolime 4 days ago | parent | next [-]

This is my experience too.

Make agents for tasks, not roles.

I've seen this for coding agents using spec-driven development for example. You can try to divide agents into lots of different roles that roughly correspond to human job positions, like for example BMad does, or you can simply make each agent do a task and have a template for the task. Like make an implementation plan using a template for an implementation plan or make a task list, using a template for a task list. In general, I've gotten much better results with agents that has a specific task to do than trying to give a role, with a job-like description.

For code review, I don't use a code reviewer agent, instead I've defined a dozen code reviewing tasks, that each runs as separate agents (though I group some related tasks together).

redhale 4 days ago | parent | prev | next [-]

This!

Subagents open all the new metaphorical tabs to get to some answer, then close those tabs so the main agent can proceed with the main task.

Excellent article on this pattern: https://jxnl.co/writing/2025/08/29/context-engineering-slash...

csar 4 days ago | parent | prev [-]

This is exactly right.