Free-agent left-hander Brett Anderson has agreed with the Cubs on a deal, pending a physical, according to Fox Sports.

Anderson spent the past two seasons with the Dodgers. He is just 28 but is coming off his second back surgery in three years, having undergone an arthroscopic procedure during spring training last year. He was limited to just four appearances, and three starts, with the Dodgers this past season, registering an 11.91 ERA in 11 1/3 innings.