Clone Commander Cody, also known as unit 2224, was a loyal
clone trooper serving the
Galactic Republic during the Clone Wars. Cody was often under the command of General
Obi-Wan Kenobi, and served with him and
Anakin Skywalker during a nearly disastrous campaign on Cato Neimoidia.
Cody developed a close and easygoing camaraderie with Kenobi, easily exchanging dry jokes with his Jedi General. This continued through to their mission to Utapau, to route out the entrenched Separatists forces commanded by General Grievous.
Cody was ultimately subservient to the orders of the Republic, and when Order 66 was enacted -- branding Kenobi an enemy of the state -- Cody willingly carried out the command to open fire on his former friend.