dsh-swarm-router: DSH swarm plugin for routing heterogeneous tasks to the most suitable model

Introduction: In agent development, you often encounter task batches like this: one involving 17x23 arithmetic problems, another requiring code writing and prime number verification, and a third being long-form translation. Sending them all to the same model queues simple tasks on flagship models, wasting time and tokens; assigning difficult tasks to cheap models often leads to errors. Manually selecting a model for each task becomes unmaintainable as the workload increases. dsh-swarm-router addresses this problem: it organizes a batch of heterogeneous tasks into a "Sub-Agent Matrix Swarm"—tasks are rows, and candidate models are columns. The router selects one cell for each row, and then uses DSH's `ctx.subagents` to turn each cell into a process-bound sub-agent parallelized to the selected model. # What is dsh-swarm-router

Read More