Nestle and Singapore-listed cocoa ingredients maker Petra Foods have agreed to work together on improving cocoa production in Indonesia.