Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is there a way to get persistent sub-agents? I'd love to have a bunch of YAML files in my repository, one for each sub-agent, and have those automatically used across all Claude Code instances I have on multiple machines (I dev on laptop and desktop), or across the team.



Thanks!


In my experience the best use for subagents is saving context.

Example: you need to review some code to see if it has proper test coverage.

If you use the "main" context, it'll waste tokens on reading the codebase and running tests to see coverage results.

But if you launch an agent (a subprocess pretty much), it can use a "disposable" context to do that and only return with the relevant data - which bits of the code need more tests.

Now you can either use the main context to implement the tests or if you're feeling really fancy launch another sub-agent to do it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: