Former Bears quarterback Caleb Hanie has agreed to a two-year deal with the Denver Broncos, according to a source familiar with the situation.