add entity filter for the agent