Abstract Various biological and synthetic media out of equilibrium can be viewed as many-ratchet systems that rectify environmental noise through local measurements and information processing, like Maxwell's prototypical demon. These systems pose a challenge to standard coarse-graining approaches because they are described in terms of decision-making protocols similar to computer programs rather than force laws. Here, we study a many-body generalization of the Maxwell demon problem: a fluid comp