Brandon Rush and the Golden State Warriors have agreed to a two-year contract.