News for hackers. Stuff that matters.
Re:How to Use Claude Code Subagents to Parallelize Development by CharlesW on Saturday September 13, 2025 @12:30PM (#45233343)
> Subagents do not work well for coding at all

Subagents can work very well, especially for larger projects. Based on this statement, I think you're experiencing how I felt in my early experience with them, and that your mental model for how to use them effectively is still embryonic.

I've found that the primary benefit for subagents is context/focus management. For example, I'm doing auth using Stytch. What I absolutely don't want to do is load https://stytch.com/docs/llms.txt and instructions for leveraging it in my CLAUDE.md. But it's perfect for my auth agent, and the quality of the output for auth-related tasks is far higher as a result.

A recommended read: https://jxnl.co/writing/2025/08/29/context-engineering-slash...

Re:How to Use Claude Code Subagents to Parallelize Development by Razengan on Saturday September 13, 2025 @02:07PM (#45234066)
> your mental model for how to use them effectively is still embryonic.

Well

Re:How to Use Claude Code Subagents to Parallelize Development by johntash on Saturday September 13, 2025 @04:23PM (#45235024)
> I've found that the primary benefit for subagents is context/focus management. For example, I'm doing auth using Stytch. What I absolutely don't want to do is load https://stytch.com/docs/llms.txt and instructions for leveraging it in my CLAUDE.md.

> But it's perfect for my auth agent, and the quality of the output for auth-related tasks is far higher as a result.

What about just using a sub agent specifically to fetch llms.txt and find the answer to the question for the parent agent? Instead of handing a full task off to it

Re:How to Use Claude Code Subagents to Parallelize Development by GoatInGrey on Saturday September 13, 2025 @06:05PM (#45235698)
I'm unsure if this also qualifies as incompetence/embryonic understanding, though I've used LLMs for hundreds of hours on development tasks and have also found that sub-agents are not good at programming. They're more suitable for research tasks to provide informed context to the parent agent while isolating it from the token consumption which retrieving that context cost.

Zooming out, my findings on LLMs with programming is that they work well in specific patterns and quickly go to shit when completely unsupervised by a SME.

  * Prototyping

  * Scaffolding (i.e. write an endpoint that does X that I'll refine into a sustainable implementation myself)

  * Questions on the codebase that require open-ended searching 
 
  * Specific programming questions (i.e. "How do I make an HTTP call in ___ ?")

  * Idea generation ("List three approaches for how you'd ____" or "How would you refactor this package to separate concerns?")
The LLMs all fuck up on something in every task that they perform due to the intersection of operating on assumptions and working on large problem spaces. The amount of effort it takes to completely eliminate the presence of assumptions in the agent make the process slower than writing the code yourself. So people try to find the balance they're comfortable with.
Re:How to Use Claude Code Subagents to Parallelize Development by faangguyindia on Saturday September 13, 2025 @07:55PM (#45236284)
You didn't not bother reading my actual criticism against subagent model: https://www.reddit.com/r/ClaudeCode/s/weQIbVtAtG

Let me say it again, subagent model does not work for things which most developer do 90% of their time they want to implement a feature in their app.

Re:How to Use Claude Code Subagents to Parallelize Development by CharlesW on Saturday September 13, 2025 @08:38PM (#45236490)
> You didn't not bother reading my actual criticism against subagent model:

Nope, I did. It's why I was under the impression that you hadn't yet figured out how to use them successfully. That's why I posted a specific example where a subagent is useful and why, hoping you and others might benefit from that.

If the subagent model does not work 90% of the time, why does the workflow model you recommend in another Reddit post you linked to specifically recommend delegating work to sub-agents throughout?

Re:How to Use Claude Code Subagents to Parallelize Development by faangguyindia on Sunday September 14, 2025 @08:28PM (#45244773)
I've been using sub agents for long time now, see: https://www.reddit.com/r/ClaudeCode/comments/1nh75k2/3_phase...
Re:How to Use Claude Code Subagents to Parallelize Development by call-me-al on Saturday September 13, 2025 @11:23PM (#45237161)
I highly recommend to check how agents are used in this project: https://github.com/humanlayer/humanlayer/tree/main/.claude/a...

I found this out after this YouTube video that explains the rationale behind it: https://www.youtube.com/watch?v=IS_y40zY-hc