Free-agent quarterback Byron Leftwich has agreed to a two-year deal with the Tampa Bay Buccaneers, a source told ESPN's Michael Smith.