The openness of social collaborative coding makes it possible to gather collective wisdom in the process of software development.Pull-request is the main way for developers to contribute code in GitHub.If developers cannot communicate and cooperate effectively,the whole development process will become slow and inefficient.In order to improve the efficiency of collaboration,the collaboration process between developers under the pull development model was modeled as an Agent collaboration model.Combined with the different roles played by developers in the actual development process and the relevant characteristics of each role,the collaboration mechanism that met the optimization goal was calculated based on the automatic mechanism design method,which could better promote the collaboration of developers and improve the development efficiency to a certain extent.