Revert "query filter for each agent type with changes"

This reverts commit b5f70b51a5e627f98a6f5d28aa5704afa9cdff6a.