Core library for AgMIP development