You're talking about a "mining pool".
Originally in major coin blockchain's design, the block reward will be generated in the block discoverer's address in whole.
Pools are designed to "gather" multiple miners and mine using their total Hashrate.
In pools, they have an API which "mince" the reward, split it among the miners who joined the pool, the amount they will receive will be based depending on their share (individual hash rate).
How pool automatically deal that process? Are there coin daemon has that pool related function? Automatic send to multiple addresses.