To build smart agriculture systems I think more needs to be known about the food chain. If you had a large inventory of the inputs and outputs for each organism then it would be possible to design miniature ecosystems which work cooperatively and minimize waste - like the fish and plants idea - while also producing whatever type of produce you want.