Agent stream handler