Agent: add filter callback