Presidents Omar al-Bashir of Sudan and Idriss Deby of Chad reached the agreement Wednesday at a summit hosted by Libyan leader Moammar Gadhafi in Tripoli .