maybe we should have some kind of standard or library that all AI can share
Some high-quality work on providing a useful utility library was done by
aubergine during his work on his
wiki.
Pieces of NullBot should be reusable, but they are mostly too unrefined to be useful. One thing i definitely suggest re-using is the system of "rulesets" which abstracts the AI away from game rules/mods. In fact, it'd be great to have all AIs consume rulesets in the same format - this way modders could provide the rulesets themselves and porting all AIs to all mods becomes trivial. The current ruleset system is still not quite great though, it has some items hardcoded (eg. the hardcoded equivalence of "cyborgs" (droids that die against machineguns) and "cyborgs" (droids that are produced as fixed templates) and "cyborgs" (droids that are produced in the cyborg factory) really hurts the concept and in fact works for the default ruleset only).