Engineering Environment-Mediated Multi-Agent Systems by