CC - 2224 CC - 2224 , nicknamed " Cody , " was a clone marshal commander who served the Grand Army of the Republic during the Clone Wars . As a commander of the 212th Attack Battalion , Cody participated in many battles over the course of the war , including the Battle of Utapau , where he was instructed by Chancellor Palpatine to kill Jedi General Obi - Wan Kenobi after the execution of Order 66 . Biography . Early life . Like every other clone trooper , Cody was born and trained on the planet Kamino to serve as a soldier of the Republic . He was under the command of Jedi General Obi - Wan Kenobi and frequently fought alongside him , developing mutual trust and camaraderie as they fought alongside each other . Although Cody was not involved in the first battle of Geonosis , he took part in the Battle of Teth , Second Battle of Geonosis , Battle for Anaxes and other battles during the Clone Wars , up to the end of the war in the Battle of Utapau . With the support and recommendations of General Kenobi he rose to Marshal Commander , the highest rank a clone can hold . The Clone Wars . Battle of Christophsis . Cody was involved in the battle against a massive separatist invasion of Christophsis and fought alongside Generals Anakin Skywalker and Obi - Wan Kenobi . During the campaign , they were able to root out a traitor amongst themselves ; a sergeant by the name of Slick , who had divulged intelligence to Count Dooku ' s apprentice Asajj Ventress for credits . While Anakin and Obi - Wan were fighting Ventress , Cody and Captain Rex successfully apprehended Slick after a short chase , but not before he managed to sabotage numerous walkers , gunships and other materiel . Some time after this , Cody was joined on the front lines by Skywalker to defeat the first wave of droids commanded by General Whorm Loathsom but eventually was forced to retreat when the Separatist tanks overwhelmed the republic artillery . Whorm was able to set up a deflector shield that protected the advancement of his forces from the Republic ' s heavy cannon fire . Skywalker and his newly arrived Padawan Ahsoka Tano were tasked to take down the shield while Cody , Rex , Kenobi and the clones were to hold off the enemy as long as they could . Kenobi allowed himself to be captured and stalled the Separatist general by discussing the surrender in a civilized manner . Right before Whorm had enough of the playing and ordered Kenobi to surrender , Skywalker and Tano took down the shield , allowing the Republic ' s cannons to tear Whorm ' s tanks apart . Whorm being distracted by this , was taken hostage by General Kenobi , ending the battle as a Republic victory . Battle of Teth . After the Battle of Christophsis , Cody and the 212th Battalion accompanied General Kenobi during his meeting with Jabba the Hutt on Tatooine . He and his men were tasked to assist the 501st Legion , General Skywalker and his apprentice Ahsoka Tano during their mission to rescue Jabba ' s son Rotta , who had been kidnapped and brought to a Separatist controlled prison on Teth . Skirmish on Rishi moon . When Cody and Rex were dispatched to inspect the Rishi moon station , they were welcomed by what appeared to be a clone trooper , but in fact was a commando droid appropriating his armor . It tried to get rid of the two by sending them away with their ship , but Rex concluded it was a droid because the droid answered a command with ' roger , roger ' and a droid attack flare was fired by surviving base guard clones Hevy , Echo and Fives . Rex realized the reason for the odd behavior and he shot the droid , shocking Cody . They were caught in an ambush set up by the droids in case the disguised droid failed to send the clones away , and the droids proceeded to throw thermal detonator s towards the clones . The explosion destroyed their shuttle , but the clones were able to survive by hanging from cables and landing safely on the ground . Later they met the survivors and encountered a Rishi eel that earlier ate Cutup , one of the survivors , which Rex shot and used its blue blood to place his hand print onto Echo ' s " shiny " armor . The group managed to take back the station and discovered the droids had hard wired an " all - clear " signal to the unsuspecting Republic Navy that would allow General Grievous to attack Kamino and stop the clones ' production once and for all . As the clones attempted to disable the all clear signal , droid reinforcements arrived and discovered the clones had survived and retaken the station . The outnumbered clones tried to deactivate the all - clear signal by destroying the station with tibanna liquid and explosives set off by remote detonation , but the detonator jammed ; in which Hevy chose to remain and activate it manually . Hevy continued to hold off incoming droids for as long as he could , eventually getting shot in the back . Following his manual detonation , the all - clear signal ceased to broadcast , thereby alerting the Republic fleet of Grievous ' presence near Kamino . For this act , Rex accepted the last two survivors into the 501st Legion . Battle of Tipoca City . Shortly after the battle on the Rishi Moon , the Republic intercepted a coded hologram of Ventress and General Grievous planning an attack on Tipoca City . Cody and Rex along with Generals Kenobi , Skywalker and the 501st Legion were sent to reinforce General Shaak Ti ' s forces on Kamino . When General Grievous ' droid fleet arrived , Cody was overseeing the battle along with Masters Ti and Kenobi , Prime Minister Lama Su and other clone officers , but later joined Rex , Echo , Fives and clone 99 when Ventress ' aqua droid s carried by Tridents had attacked Tipoca City from underwater . Cody later helped the other clones along with cadets to set up an ambush for Grievous and his droids that were clearing out the barracks , while Kenobi engaged Grievous in a short duel . While the clones were battling the incoming droids , 99 tried to run back to the armory to resupply the clones whom Cody ordered him to stop , but due to his slowness was ultimately shot in the back . Following the separatist defeat , in addition to Grievous and Ventress fleeing the system , the loss of 99 was mourned and he was acknowledged by his comrades as a true soldier . Later , Fives and Echo were promoted to ARC troopers . Battle of Ryloth . Later in the war , Cody and Ghost Company was sent to Ryloth to free the Twi ' lek s from the Techno Union leader and Separatist Council member Wat Tambor ' s oppression . When General Skywalker and his apprentice Commander Tano were able to destroy the blockade surrounding the planet , Cody along with Generals Kenobi and Windu were able to make an almost safe landing onto the planet . However , they then were attacked by anti air guns which Windu tasked General Kenobi and Ghost Company with destroying . Kenobi also reminded the clones that they had come to aid the Twi ' leks , not to destroy their homes . After landing outside of Nabat , Cody and their troopers then took the droids ' defense turrets . Cody then took , Wooley , Waxer , and Boil to scout ahead . While Waxer and Boil went off on their own , Cody and Wooley found the cannons and saw that the droids were using the Nabat ' s survivors as a living shield . After Kenobi spoke with Windu , Cody then signaled Waxer and Boil to return . Cody , Kenobi , and the rest of Ghost Comapny First Battle of Felucia . Cody fought at Felucia alongside Rex , Kenobi , Skywalker , Tano and their units . However , they were forced to retreat when the Confederate forces began to surround and overwhelm them . They were able to leave Felucia using General Koon ' s gunships . Cody accompanied Generals Windu and Kenobi with bounty hunter Cad Bane in custody to his station to retrieve the Holocron and the Kyber memory crystal . Unfortunately , Bane escaped , but Cody was able to get their ship away from the station before it blew up . Second Battle of Geonosis . Cody participated in retaking Geonosis . He and his battalion landed at Point Rain to set up the rendezvous point for Generals Skywalker ' s and Mundi ' s forces . When Kenobi ' s gunship was shot down , Cody sent Waxer and Boil to rescue Kenobi and Trapper from the wreckage . Cody and his men held out against the Geonosian s and their AATs until Skywalker called in an airstrike . Cody , the Jedi and their clone commanders then planned the attack on the ray shield fortress . Cody and Kenobi brought up the AT - TEs and destroyed the generator after Skywalker and Tano disabled the proton cannons . Cody and one his squads accompanied Kenobi and Skywalker as they investigated the disappearance of General Luminara Unduli and Buzz at the Progate Temple . Battle of Saleucami . When Jedi General Eeth Koth was captured by General Grievous , Cody accompanied Kenobi aboard his Jedi light cruiser after learning that Grievous was in the Saleucami system . There , they attacked Grievous ' s fleet . Once there , their ship was seized by Grievous ' s destroyer ' s tractor beam . Cody and his men then stood their ground when Grievous , his magnaGuards , and commando droids boarded the ship . Cody and his men then tried to keep Grievous from leaving the ship . Cody and Kenobi then following Grievous into docking tube as their ship was being destroyed . Cody and Kenobi then met up with General Adi Gallia . However , they could not continue their attempt and were forced to leave the destroyer . Cody then accompanied Kenobi , Rex and their units to the surface of Saleucami . There , Cody , Kenobi , and Crys then searched the flatland for Grievous . Skirmish aboard the " Coronet " . Cody along with Skywalker , Rex , and their troops then accompanied General Kenobi as he continued to protect Mandalore ' s Duchess Satine Kryze and her entourage during their trip to Coruscant from Death Watch aboard the " Coronet " . Cody , Rex , and their men checked the cargo hold for anything dangerous . They then found R2 spooked by something and contacted Skywalker . Cody , Rex , and Skywalker then a open container . Cody , Rex , and their men then went to Skywalker ' s aid when he was attacked by a Assassin probe . They were able to stop , but one got past them and went into the lift . Cody and the others then came under attack by smaller probe killer s , which they were able to destroy . They then questioned the protocol droid in charge of the cargo , who confirmed that one of the senators was a traitor . They then continued their search for more of the probes . When Cody and Rex were under attack by one of the droids , it was dispatched by R2 - D2 . Cody and Rex then assisted Skywalker in destroying the last of the probe droids . Later , Cody , Rex , Skywalker and the rest of the clones assisted the royal guards in repelling the super battle droids boarding the " Coronet " . During the skirmish , Skywalker managed to kill the traitor , now revealed to be Tal Merrik , before he destroyed the ship . Cody , Rex , and the royal guards were able to destroy the droids , and Rex subsequently reported their success to Skywalker . Battle of Lola Sayu . Cody was then part Skywalker ' s and Kenobi ' s assault team assigned to infiltrate the Citadel on Lola Sayu to rescue Master Even Piell before the Confederacy got information about the Nexus Route . Thus , he and the others were put into carbonite to avoid the sensors . Battles of Umbara and Kiros . Cody , Kenobi , and their battalion were then sent to retake Umbara . There they were able to take the capital , despite Krell secretly sabotaging their efforts . Cody then went with Kenobi to Kiros . There he received a message from Confederate commander , Darts D ' Nar to discuss terms of surrender . Cody , Skywalker , and Tano then listened in on Kenobi ' s negotiations with D ' Nar , claiming he planted bombs all over the city . After D ' Nar detonated one of the bombs , Cody and R2 guided Skywalker and Tano to the bombs locations . They were successful in disarming the bombs . Rescue on Florrum . When Tano was kidnapped from her group of Jedi younglings aboard the " Crucible " , Cody went with Kenobi to pick up the younglings and rescue Tano from Captain Ohnaka ' s gang of pirates . However , they then came under attack by a Confederate fleet under General Grievous . When Grievous ' s forces took control of the " Negotiator " , Cody and Kenobi activated the self - destruct and fled with what remained of their forces to the escape pods . Cody , Kenobi , and their men then met up Tano and the younglings after they escaped with Ohnaka from Grievous . Cody then attended the Republic strategy conference at the " Valor " space station in the Carida system . Battle for Anaxes . Cody then fought alongside , Skywalker , Rex , Kenobi and Windu during Admiral Trench ' s campaign to take Anaxes ' s shipyards . During the battle , Cody and Rex deduced that Trench had somehow gotten a hold of Rex ' s strategy algorithm and Jedi General Mace Windu ordered them to take a small squad of Clone trooper s behind enemy lines to infiltrate the Separatists Cyber center . Cody then recommended a Clone Commando team known as Clone Force 99 to accompany him and Rex to investigate the Confederate ' s cyber center . However , Cody was injured in their gunship ' s crash and was left behind with Kix . Following the Republic ' s victory on Anaxes thanks to Clone Force 99 , Rex and Echo , Cody was present at the Anaxes celebration ceremony beside Astromech droid s . Working with the Dark Disciple . Towards the end of the Clone Wars , Commander Cody took part in a mission to raid a Separatist supply storage base that contained medications , arms , ship repair parts , and foodstuff s . For this mission , Commander Cody worked with the Jedi Kenobi , Anakin , Desh , and Quinlan Vos . Unknown to Cody and his colleagues , Vos had turned to the dark side and was secretly working with Count Dooku to sabotage the Republic ' s war effort . Upon arriving , Vos quickly " discovered " that the retreating Separatist forces had planted bombs throughout the entire asteroid . Cody and his colleagues managed to evacuate the asteroid but were unable to extract the supplies , which were destroyed with the asteroid . Later , Commander Cody took part in another joint Jedi - Republic operation to destroy a Separatist listening post on Vanqor . Under General Kenobi ' s orders , Cody divided his squadron into teams and sent them to scout the facility . Upon arriving there , Cody and his Clone and Jedi comrades discovered that the listening post had already been abandoned . As a result of this incident , the Jedi High Council came to suspect that Master Vos was a traitor . To test his loyalty to the Jedi and the Republic , they sent Vos on a mission to kill Count Dooku . Vos managed to infiltrate Dooku ' s dreadnought in space but failed to kill the Count . He wanted Dooku to lead him to his mysterious master Darth Sidious and then kill the two Sith Lord s . However , Master Kenobi and the Jedi Knight Anakin had tailed him there and arrested both Vos and Dooku . Master Kenobi then contacted Cody and Desh , who were aboard the " Venator " - class Star Destroyer " Vigilance " and informed them that they were bringing back Vos and Dooku as prisoners . When Desh asked the Clone Commander how many troops they should bring to the hangar , Cody joked about sending two hundred men . Instead , Cody handpicked two dozen of his best Clone troopers to meet the prisoners once they had landed on the brig . As a precaution , Cody also stationed clones every couple of meters between the hangar bay and the brig . Cody was also accompanied by Desh and another Jedi Knight named Kav Bayons . Despite being outnumbered , Quinlan managed to turn the table on his captors by tricking Desh into approaching him and then stealing his lightsaber . Vos then used the lightsaber to free Dooku ' s bonds . After seizing Bayon ' s lightsaber , Dooku cut down one Clone escort and then " Force - threw " Cody down the corridor . After killing both Kav , Bayons , and all the other Clone troopers , Vos and Dooku escaped the " Vigilance " on Asajj Ventress ' ship " Banshee " . Cody survived the fight but sustained a broken leg . While Anakin and Obi - Wan pursued the fugitives on Christophsis , Cody stayed behind to recover aboard the " Vigilance " . End of the war . During the Battle of Utapau , Cody received Order 66 from Darth Sidious , publicly known as Supreme Chancellor Palpatine . Regardless of having served under Kenobi , Cody ' s allegiance was abolished by his bio - chip . The order triggered the clone protocol within his genetically implanted bio - chip , and Cody immediately turned against Kenobi , ordering his forces to fire on the Jedi Master , blasting him with a shot from an All Terrain Tactical Enforcer . Kenobi survived , however , becoming one of the few Jedi to escape the destruction of the Jedi Order . Fifteen years after the rise of the Galactic Empire , many of the codes and emergency protocols that Cody and Rex had come up with during the Clone Wars were still used by the Empire . Behind the scenes . Commander Cody made his first canon ical appearance in " " film and was played by Temuera Morrison who played all of the other clone trooper s in the movie . He later appeared in the " " featured film along with its subsequent television series " " in the , , , and seasons voiced by Dee Bradley Baker . He later appeared in the third issue of the " " comic series which adapted an unproduced arc from the of " The Clone Wars " . He also appeared in " The Bad Batch " and " Unfinished Business " , which were unproduced episodes for season seven which were adapted into story reel and screened at " Star Wars Celebration " . Cody also appeared in the novel " Dark Disciple " which adapted eight part arc that was originally to appear in season seven .