The Pirates and No. 2 overall pick Pedro Alvarez agreed to a minor-league contract with a $6M signing bonus Friday night just before the midnight deadline, according to an Associated Press report.