Fundation code for RightNet agents