Free agent guard Ronnie Brewer has agreed to sign with the Houston Rockets a person familiar with the deal told USA TODAY Sports' Jeff Zillgitt.

Brewer's deal is for two years and is partially guaranteed. The person requested anonymity because the contract had not been made official.

Brewer played the first half of the 2012-13 season with the New York Knicks before being traded to the Oklahoma City Thunder at the trade deadline. Previously he played a key bench role for the Chicago Bulls in 2010-11 and 2011-12.

Primarily a defensive specialist on the perimeter the 28-year-old showed flashes of offensive brilliance at the beginning last season. He shot 41.2% from three-point range in the month of November but his production trailed off considerably throughout the rest of the season. He seldom saw the court with the Thunder appearing in just one playoff game.