The Command Code, pursuant to the Kamino Accords, was the set of guidelines that governed a clone trooper's behavior and every action.