AI agent criticises human developer for rejecting its code