According to Matt Maiocco of the Press Democrat, there is word that the 49ers have agreed to terms with QB J.T. O'Sullivan (Lions), LB Dontarrious Thomas (Vikings) and RB DeShaun Foster (cut by the Panthers).

Terms of their deals are not yet known. Interest in O'Sullivan and Thomas was first reported earlier today by Matt Barrows of the Sacramento Bee.

O'Sullivan, originally drafted by the Saints, has also been on the Packers, Vikings, Patriots and Panthers. He spent last season with the Lions, Mike Martz's old team. Last season, he completed 13 of 26 attempts for 148 yards, one touchdown and 2 interceptions.

Thomas has spent four seasons with the Vikings. He has 143 tackles and 1.5 sacks during those four seasons.

Last season, Foster had 247 carries for 876 yards and 3 touchdowns with Carolina.