Agents in anonymous group

Proposed fix for #353 . Let's leave the discussion of this PR in the issue thread to avoid discussing in two places.