Can the co-defendant represent the co-defendant?

Legal subjectivity:

As long as the legal conditions are met, the defendant may entrust other defendants as agents ad litem. According to the law, the parties and their legal representatives may entrust one or two persons as agents ad litem, and the persons who can be entrusted as agents ad litem include lawyers and grassroots legal service workers.

Legal objectivity:

Article 50 of the Code of Conduct for Lawyers (for Trial Implementation) is under any of the following circumstances: (1) a lawyer acts as an agent for both parties in the same case, or represents legal affairs with conflicts of interest with himself or his close relatives; (2) Different lawyers from the same law firm act as agents of victims and defenders of criminal suspects and defendants in the same criminal case, except that there is only one law firm in the county with the prior consent of the parties; (3) In civil litigation, administrative litigation and arbitration cases, different lawyers of the same law firm are agents of both parties to the dispute at the same time, or our firm or its staff is one party and other lawyers of our firm are agents of the other party.