The 49ers have reached an agreement with Jim O'Neil, who oversaw the Browns' defense the past two seasons, to serve as Chip Kelly's defensive coordinator, a source confirmed.