Integrated new apicommands module with agent