News for hackers. Stuff that matters.
Re:Claude Code's new hidden feature: Swarms by stavros on Saturday January 24, 2026 @05:20PM (#46748311)
What OpenCode primitive did you use to implement this? I'd quite like a "senior" Opus agent that lays out a plan, a "junior" Sonnet that does the work, and a senior Opus reviewer to check that it agrees with the plan.
Re:Claude Code's new hidden feature: Swarms by mafriese on Saturday January 24, 2026 @05:29PM (#46748377)
You can define the tools that agents are allowed to use in the opencode.json (also works for MCP tools I think). Here’s my config: https://pastebin.com/PkaYAfsn

The models can call each other if you reference them using @username.

This is the .md file for the manager : https://pastebin.com/vcf5sVfz

I hope that helped!

Re:Claude Code's new hidden feature: Swarms by stavros on Saturday January 24, 2026 @05:37PM (#46748438)
This is excellent, thank you. I came up with half of this while waiting for this reply, but the extra pointers about mentioning with @ and the {file} syntax really helps, thanks again!