Generate code tool