Free-agent starting pitcher Andrew Heaney and the Pittsburgh Pirates are in agreement on a one-year, $5 million deal that includes additional performance-based incentives, a source told ESPN.