impl skeleton of C/C++ agent