Chelsea and Middlesbrough have reached an agreement for a permanent transfer for on-loan attacking midfielder Leo Castledine, according to reports.