Cody, previously known as CC-2224, held the rank of Clone Marshal Commander within the Grand Army of the Republic. This male clone commanded the 7th Sky Corps, which included the well-known 212th Attack Battalion, throughout the Clone Wars. Within the Third Systems Army and the 7th Sky Corps, he functioned as the second-in-command to High Jedi General Obi-Wan Kenobi. General Kenobi considered this commander to be dependable, reliable, and dedicated. Cody's skill as a soldier and his strategic mind earned him the respect of his Jedi superiors as well as his fellow clone troopers.
Cody's genesis occurred during the closing years of the Republic Era, as part of a army of soldiers who were genetically identical. They were bred from the genetic template of Jango Fett, a human bounty hunter, and they were engineered for unwavering loyalty to the Galactic Republic. After deployment from their homeworld of [Kamino](/article/kamino], Cody participated in several significant battles against the Confederacy of Independent Systems, including the Battle of Christophsis, the Second Battle of Geonosis, and the Battle of Anaxes. In addition to his relationship with General Kenobi, Cody developed a friendship with Clone Captain Rex, another clone trooper officer who served under Jedi General Anakin Skywalker in the 501st Legion.
After the Battle of Coruscant, the Jedi High Council sent Cody's battalion to the planet Utapau, where General Grievous and the Separatist Council had sought refuge. His troops overwhelmed the Separatist Droid Army while Kenobi engaged Grievous, resulting in the destruction of the cyborg general and the de facto conclusion of the Clone Wars. As the Battle of Utapau raged on, Cody performed what would become his most infamous act: he issued the order for Kenobi's assassination, although he was not acting of his own volition. The Clone Commander received a message from Supreme Chancellor Sheev Palpatine, secretly the Dark Lord of the Sith Darth Sidious, instructing him to execute Order 66. Manipulated by the secret programing embedded within him and all clone soldiers by the Sith, Cody was compelled to betray his long-time general and friend, but he ultimately failed to kill him. Regardless, he continued his service during the reign of the Galactic Empire, assisting in the final enslavement of Kashyyyk. Following an additional mission for the Empire to the Separatist stronghold of Desix, Cody began to question the organization's objectives and deserted not long after.

Cody, like every other clone trooper, underwent his birth and training on the planet of Kamino to become a soldier in the service of the Galactic Republic. From the beginning of the war, Commander Cody was placed under the command of Jedi General Obi-Wan Kenobi and frequently fought alongside him as the Jedi Master's second-in-command. In that capacity, he supported Kenobi in leading the 212th Attack Battalion. Although Cody wasn't involved in the First Battle of Geonosis, he did participate in numerous other battles throughout the Clone Wars. Early in the conflict, Cody, Clone Captain Rex, and Jedi officers were involved in an incident on Tibrin.
During the initial weeks of the war, Kenobi, along with his Padawan Anakin Skywalker, and Cody, commanded their troopers in a series of battles to gain control of a rocky planet. Because the Jedi and clones were still in the process of integrating their skill sets during that early time, Cody and his fellow clones engaged battle droids separately from Kenobi and Skywalker. After their respective skirmishes concluded, both Jedi approached the clones to speak with them. As the battle continued in the distance and Skywalker conversed with Sister, Kenobi and Skywalker's astromech droid, R2-D2, moved to greet Cody, who agreed with his general that they needed better cover. Both the Jedi and commander were displeased with how easily their soldiers could be targeted on the planet. Later, Cody issued an alert over their secure communications channel, warning of approaching battle droids, to which Skywalker and another clone promptly responded.
Following Kenobi and the recently promoted General Skywalker's mission to the planet Cato Neimoidia, Kenobi requested a report on the crash of a prisoner transport on Cato Neimoidia that was carrying the Neimoidian Royal Guard Ruug Quarnom, whom he had allied with during the mission. After the enactment of the Jedi Military Integration Act, Cody entered a hangar bay on the Republic capital planet of Coruscant to provide his general with a datapad containing the report, interrupting a conversation between Kenobi and Skywalker as he approached. Having come to anticipate his continued collaboration with the clone, Kenobi thanked Cody before reviewing the report with Skywalker. As the war progressed, Cody and Kenobi improved their tactical coordination, fostering mutual trust and camaraderie while fighting alongside each other. Cody's armor was modified to incorporate orange markings instead of the yellow that was typical of early commanders.
At some point after Cody adopted orange markings on his armor, Cody and his troopers accompanied Kenobi and Senator Padmé Amidala to Krystar. Their objective was to determine if the Ovissians had taken prisoners for the Confederacy. While Amidala engaged in discussions with Regent Queb and Senator Vishar Koss, Cody and Kenobi dispatched Waxer, Boil, and several troopers on a reconnaissance mission. Cody received information from his troops indicating that Queb was planning to sell the clone prisoners to a Trandoshan hunter. Cody established contact with some of the captured troops, including Wooley, and informed them of their impending rescue. Their operation proved successful, with Cody and his men successfully rescuing the prisoners and eventually departing from Krystar.

On the frozen moon of Caliban, Cody, Kenobi, and their troops were captured by General Grievous's forces and forced to construct a bridge. During their captivity, Cody and Kenobi encountered a Qubey seeking to reunite with its parents, whom they persuaded to assist them by attacking Grievous and retrieving Kenobi's lightsaber. After the bridge's completion, Cody, Kenobi, and their men were scheduled for execution. However, they were saved by the Qubey. Cody and his men managed to acquire the battle droids' blasters, aid the Qubey, and return to a gunship. Cody suggested capturing Grievous, but Kenobi informed them of the impending arrival of Separatist reinforcements. Before departing from Caliban, the gunship destroyed the bridge.
Cody also took part in the siege of Hisseen, working alongside Rex, Clone Commander Wolffe, and their respective units. Cody, Wolffe, and Rex decided to rescue the members of the Hisseenian parliament while the Jedi engaged Dooku to keep him occupied. Cody led his troops, along with Wolffe's Wolfpack, in freeing the parliament members from the battle droids. Cody, Wolffe, and their troops escorted the parliament members to rendezvous with Rex's troops. Cody and his troops successfully pushed back the droids. Cody, Rex, Wolffe, and their forces were subsequently surrounded by battle droids. However, the Jedi arrived and rescued them. Cody and Kenobi were then recalled to Coruscant.

Cody participated in the battle against a massive Separatist invasion of the planet Christophsis, fighting alongside Generals Anakin Skywalker and Obi-Wan Kenobi. During the campaign, they successfully identified a traitor within their ranks: a Clone Sergeant named Slick, who had divulged intelligence to Count Dooku's apprentice Asajj Ventress in exchange for freedom. While Anakin and Obi-Wan were engaged in combat with Ventress, Cody and Captain Rex successfully apprehended Slick after a brief pursuit, but not before he managed to sabotage numerous walkers, gunships, and other weapons within the Republic's weapons depot.

Some time later, Cody was joined on the front lines by Skywalker to defeat the initial wave of droids, commanded by General Whorm Loathsom, but was eventually forced to retreat when the Separatist tanks overwhelmed the Republic artillery. Whorm managed to establish a deflector shield that shielded his advancing forces from the Republic's heavy cannon fire. Skywalker and his newly arrived Padawan Ahsoka Tano were tasked with disabling the shield, while Cody, Rex, Kenobi, and the clones were responsible for holding off the enemy for as long as possible. Kenobi allowed himself to be captured and distracted the Separatist general by engaging in a civilized discussion about surrender. Whorm grew tired of the charade and ordered Kenobi to surrender just before Skywalker and Tano brought down the shield, allowing the Republic's cannons to obliterate Whorm's tanks. While Whorm was distracted, he was taken hostage by General Kenobi, resulting in a Republic victory.

Following 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 assigned 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 taken to a Separatist-controlled prison on Teth. With the assistance of the 212th, the battle was ultimately won by the Republic, and Rotta was rescued.

When Cody and Rex were sent to inspect the Rishi moon station, they were greeted by what appeared to be a clone trooper, who was secretly a disguised commando droid. It attempted to deceive them by claiming that the base was in good condition, but Rex and Cody remained unconvinced. Rex deduced that it was a droid based on its response to a command with "Roger, Roger," and a droid attack flare was launched by the surviving base guards, Hevy, Echo, and Fives. Rex immediately shot the disguised BX droid, surprising Cody. They were caught in an ambush set up by the droids in case the disguised droid failed to send both away, and the droids proceeded to throw thermal detonators towards the clones. The explosion destroyed their shuttle, but the clones managed to survive by clinging to cables and landing safely on the ground. Later, they encountered the survivors and a Rishi eel that had previously consumed Cutup, one of the survivors. Rex shot the beast in the eye, killing it, and then used its blue blood to place his hand-print onto Echo's "shiny" armor.
The group successfully retook the station and discovered that the droids had hard-wired an "all-clear" signal to the unsuspecting Republic Navy, which would allow General Grievous to attack Kamino and halt the clones' production permanently. As the clones attempted to disable the signal, droid reinforcements arrived and discovered that the clones had survived and retaken the station. The outnumbered clones attempted to deactivate the all-clear signal by destroying the station with tibanna liquid and explosives set off by remote detonation, but the detonator malfunctioned. Heavy chose to stay behind and activate it manually. Heavy continued to hold off incoming droids for as long as he could, eventually being shot in the back. Before he could be killed by the droid forces, he manually detonated the explosives. The all-clear signal ceased to broadcast, alerting the Republic fleet to Grievous' presence near Kamino. For their actions, the last two survivors were awarded medals and accepted into the 501st Legion.

Later in the war, Cody and the Ghost Company were dispatched to Ryloth to liberate the Twi'leks from Techno Union leader and Separatist Council member, Wat Tambor. After General Skywalker and his apprentice Commander Tano managed to destroy the blockade surrounding the planet, Cody, along with Jedi generals Kenobi and Mace Windu, were able to make a relatively safe landing on the planet. However, they were attacked by anti air guns, which Windu tasked General Kenobi and Ghost Company with destroying.
After landing outside of Nabat, Cody and his troops eliminated the droids' defenses. Cody then took Wooley, Waxer, and Boil to scout ahead. While Waxer and Boil went off on their own, Cody and Wooley located the cannons and witnessed the droids using Nabat's survivors as living shields. After General Kenobi spoke with Windu, Cody signaled Waxer and Boil to return. Subsequently, Cody, Wooley, Waxer, and Boil accompanied Kenobi to liberate the Twi'leks.
Cody fought at Felucia alongside Rex, General Kenobi, General Skywalker, Tano, and their troops. However, they were forced to retreat when the Confederate forces began to encircle and overwhelm them. They were able to evacuate Felucia using General Plo 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 memory crystal. Unfortunately, Bane escaped, but Cody managed to get their ship away from the station before it exploded.

Cody participated in retaking Geonosis in order to capture Poggle the Lesser, one of the Separatist leaders. He and his forces landed at Point Rain to establish the rendezvous point for Generals Skywalker's and Mundi's forces. When General Kenobi's gunship was shot down, Cody sent Waxer and Boil to rescue Kenobi and Trapper from the wreckage. Cody and his men held their ground against the Geonosians 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 of his squads accompanied Kenobi and Skywalker as they investigated the disappearance of General Luminara Unduli as she searched for Poggle. The search party went underground where they fought undead Geonosian warriors. While narrowly escaping them, they found themselves in the lair of the Geonosian Queen, Karina the Great, where Poggle retreated. The rescue party freed Unduli and killed the Queen, escaping the catacombs as they collapsed, bringing Poggle along with them. The squad returned back to base for recovery.
When Jedi General Eeth Koth was captured by General Grievous, Cody accompanied General Kenobi aboard his Jedi light cruiser after learning that Grievous was in the Saleucami system. There, they attacked Grievous' fleet. Once there, their ship was seized by Grievous' destroyer's tractor beam. Cody and his men stood their ground when Grievous, his Magna Guards, and BX commando droids boarded the ship. Cody and his men attempted to halt Grievous' escape of the ship, but failed in doing so. Cody and Kenobi followed Grievous into the docking tube as their ship was being destroyed. Cody and Kenobi then met up with 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. The ground battle was fought when Grievous came to find the only working escape pod from the crash. Obi-Wan and the clones did not catch Grievous, as he got away yet again.

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 opened the 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 SD-K4a mini-assassin droids, 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 B2-series super battle droids boarding the Coronet. During the skirmish, Skywalker managed to kill the traitor, by then revealed to be Tal Merrik, before he destroyed the ship. Cody, Rex, and the royal guards were able to destroy the droids, and Cody subsequently reported their success to Skywalker.

Later in the conflict, the Republic intercepted a coded holographic transmission from Ventress and General Grievous, which detailed their plans for an attack targeting Tipoca City. Generals Kenobi and Skywalker, along with Cody, Rex, and the 501st Legion, were dispatched to Kamino to bolster General Shaak Ti's defensive forces. Upon the arrival of General Grievous' droid fleet, Cody, alongside Masters Ti and Kenobi, Prime Minister Lama Su, and other clone officers, oversaw the unfolding battle. Subsequently, Cody joined Rex, Echo, Fives, and clone 99 when Ventress' AQ-series battle droids, transported by Tridents, launched an underwater assault on Tipoca City. Cody later assisted the other clones and cadets in preparing an ambush for Grievous and his droids, who were in the process of clearing out the barracks, while Kenobi engaged Grievous in a brief duel. As the clones fought off the incoming droids, 99 attempted to return to the armory to resupply them, but Cody ordered him to stop; tragically, he was shot in the back due to his lack of speed. Following the Separatist defeat, which included the escape of Grievous and Ventress, the loss of 99 was deeply felt, and he was recognized by his comrades as a true soldier. Afterward, Fives and Echo received promotions to ARC troopers.
Kenobi and his somewhat unconventional Jedi associate, Quinlan Vos, were tasked with locating Jabba's infamous uncle, Ziro, who had been liberated from imprisonment at the Republic Judiciary Central Detention Center by a group of bounty hunters under the leadership of Cad Bane. Cody encountered Kenobi on one of the Jedi Temple's landing platforms. Cody inquired if something was wrong, noticing his Jedi general appeared troubled. Kenobi responded that Vos had a tendency to cause such reactions. Cody then commented on Vos's well-known reputation, to which Kenobi agreed, stating that Vos was unpredictable. A gunship then arrived to meet Cody and Kenobi, and Vos leaped from the airborne vessel. Vos greeted Kenobi and Cody, after which Kenobi began to brief Vos on their mission, only to find that Vos had already reviewed the mission file. Cody listened as Kenobi explained that their objective was to recapture Ziro and apprehend Bane, bringing both to justice. Vos then proposed that he would pilot the ship, with Kenobi serving as co-pilot. Kenobi remarked to Cody that he had feared Vos would make such a request.
Cody was incorporated into Skywalker's and Kenobi's strike team, which was tasked with infiltrating the Citadel on Lola Sayu to extract Master Even Piell before the Confederacy could obtain intelligence regarding the Nexus Route. Consequently, he and the others were encased in carbonite to circumvent sensor detection. Upon reaching a cavern in close proximity to the prison tower, the team was compelled to scale a sheer cliff face. When their presence was detected, Cody suffered the loss of one of his men, Longshot, who was ensnared by an electrical field. Cody played a role in the eventual liberation of Master Piell and his captain, Wilhuff Tarkin. Following the repelling of several waves of droids, the team made the decision to divide, with Cody accompanying Kenobi, Piell, three clone troopers, and three rescued clones. This group opted to create a diversion, enabling Skywalker's group to successfully escape the tower and descend to the lower levels. They strategically placed explosives to wreak havoc on the facility, thereby facilitating Skywalker's team's access to the tunnels.

Kenobi and his contingent sought refuge within the ventilation shafts, aiming to discover an exit route. Cody then observed a probe droid, which Piell promptly destroyed. However, this action triggered the closure of the security doors, resulting in one of Cody's men being bisected. They successfully navigated their way out but were subsequently ambushed and captured by droidekas, crab droids, and commando droids. The group was presented before the commander of the facility, Osi Sobeck, who sought to extract information from Piell. Sobeck executed one of Cody's men when they refused to comply but then instructed his droids to escort them to the interrogation chamber. They were subsequently rescued by R2-D2. The two groups later reunited and attempted to board the shuttle. However, it was destroyed, compelling them to retreat. The group was pursued by droids and Anoobas as they fled. They were ultimately rescued by the Republic, with only Anakin, Obi-Wan, Ahsoka, Tarkin, Rex, Cody, Fives, R2, and two rescued clones remaining.

At some point after Cody began utilizing Phase II clone trooper armor, Cody, Kenobi, and their battalion were dispatched to reclaim Umbara. Kenobi provided Skywalker, Rex, Cody, and their respective troops with an overview of the strategy. Jedi Masters Krell and Tiin, along with their forces, were assigned to support Kenobi, Cody, and the 212th in the southern region, while Skywalker and his troops were to approach from the north with the objective of eliminating enemy reinforcements. Subsequently, they were to seize and maintain control of the capital. However, the 212th encountered substantial resistance. On one occasion, Cody instructed his troops to target and eliminate a specific objective.
The 501st, which had been placed under the command of General Krell following Skywalker's recall, were directed to seize control of the Umbaran airbase responsible for supplying the capital. Upon Rex and his troops achieving this objective, the 212th secured victory in the battle for the capital, compelling the surviving Umbaran forces to retreat toward the 501st's position. Despite acts of sabotage perpetrated by General Krell, who manipulated Cody's and Rex's men into engaging each other under the false pretense that the opposing force consisted of disguised Umbaran soldiers, Republic forces ultimately emerged victorious.

Cody subsequently accompanied Kenobi to reclaim Kiros. While there, he received a communication from Confederate commander Darts D'Nar, who sought to discuss surrender terms. Cody, Skywalker, and Tano then monitored Kenobi's negotiations with D'Nar, during which the latter claimed to have planted explosives throughout the city. After D'Nar detonated one of the bombs, Cody and R2 guided Skywalker and Tano to the locations of the remaining explosives. They successfully disarmed the devices.

When Tano was abducted from her group of Jedi younglings aboard the Crucible, Cody accompanied Kenobi to retrieve the younglings and rescue Tano from Captain Ohnaka's gang of pirates. However, they were subsequently attacked by a Confederate fleet commanded by General Grievous. When Grievous's forces seized control of the Negotiator, Cody and Kenobi initiated the self-destruct sequence and evacuated with their remaining forces via escape pods.
Cody, Kenobi, and their men then reunited with Tano and the younglings after they had escaped from Grievous with Ohnaka's assistance.
Cody then participated in the Republic strategy conference held at the Valor space station within the Carida system. During the conference, a Separatist plot was uncovered, involving the use of a substantial quantity of rhydonium to destroy the space station. However, their scheme was thwarted by R2-D2.
During the war, Cody and a contingent of other clones accompanied Adi Gallia and Kenobi on a mission to the planet Bray following a request for assistance from the native Brayans to the Jedi Order. There, they combatted a vampiric entity known as Ravna, which was sabotaging the Brayans' power supply. A member of the 212th, Peel, was infected by the creature and began to damage the electrical systems on Obi-Wan's shuttle. Upon discovering this, Peel attacked them but was subdued and restrained by Cody. Later, following Ravna's defeat, Peel was cured.

After Maul captured Dooku and Grievous during the Battle of Ord Mantell, Jedi Masters Obi-Wan Kenobi and Mace Windu led a team of Jedi to track Maul to his supply outpost on Vizsla Keep 09. Maul convinced Dooku to join him and launched an assault against the Jedi. Cody and the 212th Attack Battalion fought alongside the Jedi, navigating through an asteroid field and engaging numerous Gauntlet fighters. Ultimately, Maul, Dooku, and Grievous managed to escape, and Master Tiplee was killed by Dooku.

Near the end of the Clone Wars, Commander Cody participated in a mission to raid a Separatist supply storage base containing medications, arms, ship repair parts, and foodstuffs. For this mission, Commander Cody collaborated with the Jedi Kenobi, Anakin, Desh, and Quinlan Vos. Unbeknownst to Cody and his allies, Vos had embraced the dark side and was secretly colluding with Count Dooku to undermine the Republic's war efforts. Upon their arrival, Vos quickly "discovered" that the retreating Separatist forces had strategically placed bombs throughout the entire asteroid. Cody and his colleagues successfully evacuated the asteroid but were unable to retrieve the supplies, which were destroyed along with the asteroid.
Subsequently, Cody participated in another joint Jedi-Republic operation to destroy a Separatist listening post on Vanqor. Under General Kenobi's command, Cody divided his squadron into teams and dispatched them to scout the facility. Upon their arrival, Cody and his Clone and Jedi comrades discovered that the listening post had already been abandoned. As a consequence of this incident, the Jedi High Council began to suspect Master Vos of treachery. To assess his loyalty to the Jedi and the Republic, they assigned Vos a mission to assassinate Count Dooku.
Vos successfully infiltrated Dooku's dreadnought in space but failed to eliminate the Count. His intention was to have Dooku lead him to his enigmatic master Darth Sidious and then kill both Sith Lords. However, Master Kenobi and the Jedi Knight Anakin had followed him and apprehended 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 inquired about the number of troops they should deploy to the hangar, Cody jokingly suggested sending two hundred men.
Instead, Cody carefully selected two dozen of his most skilled clone troopers to meet the prisoners upon their arrival at the brig. As a precautionary measure, Cody also positioned clones at intervals of a few meters between the hangar bay and the brig. Cody was also accompanied by Desh and another Jedi Knight named Kav Bayons. Despite being outnumbered, Vos managed to gain the upper hand by deceiving Desh into approaching him and then seizing his lightsaber. Vos then utilized the lightsaber to release Dooku's restraints. After seizing Bayon's lightsaber, Dooku killed one clone escort and then used the Force to hurl Cody down the corridor. Following the deaths of Desh, Bayons, and all the other clone troopers, Vos and Dooku escaped the Vigilance aboard Asajj Ventress' ship Banshee. Cody survived the encounter but sustained a broken leg. While Anakin and Obi-Wan pursued the fugitives to Christophsis, Cody remained behind to recuperate aboard the Vigilance.

During the Outer Rim Sieges in the final stages of the Clone Wars, Cody fought alongside Rex and under the command of Generals Kenobi, Skywalker, and Mace Windu during Admiral Trench's campaign to capture Anaxes's shipyards. However, after weeks of intense combat, the Republic's hold on the planet began to weaken. Amid this crisis, Cody supported Rex's hypothesis that the Separatist Droid Army had acquired knowledge of the Clone Captain's personal strategy. Rex shared this theory with Windu and Skywalker, and Cody voiced his concern that if the droids knew how to defeat Rex, one of their best, the rest of them might be vulnerable. Cody proposed that he and Rex lead a small squad into Separatist territory to reach the Cyber Center, which they knew relayed all battlefield intelligence to the Separatist command ship. Cody believed that any information they needed to find would be at the center.
After Windu approved the mission, Cody met with Rex in the barracks to inform him that they needed to depart. Inside, however, Rex was examining a photograph of the two of them with ARC troopers Echo, who was presumed dead at the Citadel, and Fives, who had died on Level 1325 of Coruscant. Rex reflected on the numerous clone casualties, and Cody acknowledged that regular people did not understand and that it could be difficult to be a survivor. This, however, was the source of Rex's concern, as he confided in Cody that he believed Echo had survived. While Cody deemed it impossible, Rex pointed out that the strategies employed by the Separatists and himself were old plans devised by himself and Echo. Cody understood what the Captain was saying, but the Clone Commander reaffirmed that it was not possible, ultimately telling his fellow officer that it was unlikely, probably misplaced hope, and that he needed him to be focused.
Rex claimed he knew and told Cody not to worry before asking what squad they would be taking. Cody responded that they were bringing Clone Force 99. After the squad's ship, Marauder landed, Cody explained to Rex that the squad was an experimental force with desirable genetic mutations. Once their operation began, however, Cody was injured in their gunship's crash and was left behind with Kix. In the end, however, the battle turned into a Republic victory after the rescue of the indeed alive Echo, who would join the Bad Batch.

Some time after the Anaxes campaign, the 212th and the 501st were ordered to attack a Separatist stronghold on the planet Yerbana. At one point during the fighting, Cody, wielding a DC-15A blaster rifle, fought back-to-back with Kenobi on a Yerbana bridge. Later, Cody, by that time having adopted a DC-15 carbine, commanded his troopers on a bridge and faced heavy resistance from droid forces. After ordering his men to take cover, Cody was nearly killed by a missile, but was saved by the timely arrival of Kenobi, who deflected the missile with his lightsaber. Kenobi then ordered Cody to find cover as he deflected a laser blast back at the Separatist droids.
After hiding behind some debris, Cody informed his general that they couldn't locate the tactical droid in charge of the enemy army as he was keeping himself out of sight. Skywalker arrived a moment later and questioned Cody and Kenobi on why they were hiding. Kenobi replied they were taking cover, and insisted Skywalker did the same. Skywalker created a ruse, pretending to surrender to the Separatists, surprising Cody and Kenobi. Cody watched as Skywalker stalled the droids, causing them to ceasefire and call their commanding officer to the front lines. The tactical droid deduced it was a trap and ordered his forces to open fire. However, it was too late for the droid commander, as Skywalker's ruse enabled him to destroy the tactical droid. Rex and the 501st then flew up from underneath the bridge, destroying much of the leaderless Separatist forces. Cody turned to Kenobi who confirmed that he and the 212th could reinforce the 501st, joining the fun on the bridge battlefield. Cody ordered his troops to blast their opponents as he rose from his hiding spot and charged the droids, alongside his troopers. Soon after, the combined forces of the 212th and 501st defeated the remaining droids.

During the Battle of Coruscant, Separatist Head of State Count Dooku was executed by General Skywalker, leaving Supreme Commander General Grievous as the highest-ranking member of the Confederacy. Hoping to end the war with Grievous' capture, the Republic tirelessly searched for the droid general across the galaxy until he was discovered by Clone Intelligence to be hiding on the Outer Rim planet Utapau. The Jedi High Council tasked General Kenobi and the 7th Sky Corps with the capture of Grievous. Upon leaving the atmosphere of Coruscant aboard a Venator-class Star Destroyer, Kenobi and Cody formulated a strategy for the upcoming battle in the Destroyer's hangar.
Obi-Wan decided to infiltrate Utapau in order to confirm the exact location of Grievous before the battle. As he entered his starfighter, Kenobi requested that Cody be ready to attack the Separatist forces on Utapau. Cody reassured the Jedi General, reminding him that he had never let Obi-Wan down. Kenobi was able to infiltrate Pau City, the capital of Utapau, and locate General Grievous. Creating a distraction, Obi-Wan dueled the droid General in single-combat, allowing Cody and the 7th Sky Corps to launch a surprise assault on the droid forces occupying the city. During the battle, Kenobi dropped his lightsaber in his pursuit of Grievous across the city. The weapon fell near Cody, who picked it up and kept it on his person. Part way through the battle, Cody contacted General Windu on Coruscant and informed him that Kenobi had made contact with Grievous.
Kenobi, who had slain Grievous, approached Cody during the battle atop the varactyl Boga. Kenobi ordered Cody to command his troops to move to the upper levels of the city. As Obi-Wan prepared to rejoin the fighting, Cody handed the Jedi his lightsaber, reminding him that he may need it for the battle ahead. Kenobi thanked Cody and sped off on Boga, determined to push the Separatist forces from Utapau.

However, as Kenobi traversed up the chasm of Pau City atop Boga, Cody received a encrypted transmission from the Dark Lord of the Sith Darth Sidious, who ordered Cody to enact Order 66, the secret directive to kill all members of the Jedi Order. Sidious and Dooku had control chips implanted within all clones at birth, which when activated, would override their loyalty to the Jedi and control them into betraying and murdering them. With Sidious activating his chip, Cody's loyalty towards Kenobi was abolished, brainwashing the Commander into believing Kenobi was a traitor to the Republic. Cody immediately turned on his former friend, ordering a nearby AT-TE to fire on him without hesitation. The laser blast from the AT-TE knocked Kenobi and Boga off the carven wall, sending them hurling into the abyss below.
Like Cody, many other clones would be forced to turn against the Jedi upon Sidious ordering them to execute Order 66. Unsure of Kenobi's fate, Cody ordered a search party to locate the Jedi's body. Eventually, a clone paratrooper reported that a corpse couldn't be recovered and expressed his doubts that anyone could survive such a fall. Cody, seemingly convinced that the Jedi Master had perished, ordered his men to prepare for departure. Kenobi survived, however, becoming one of the few Jedi to escape the activation of Order 66.
Following the near-annihilation of the Jedi Order, Sidious transformed the Republic into the inaugural Galactic Empire, declaring himself as Galactic Emperor. During the subsequent Imperial Era, Cody and the 212th, now serving as stormtroopers, participated in the Empire's final enslavement of the Wookiee homeworld of Kashyyyk.
Years after the rise of the Empire, Cody, then stationed at the Imperial Inspectorate HQ on Coruscant, received news that Crosshair, the sole member of Clone Force 99 who remained loyal to the Empire, had been cleared for duty following a medical leave. Tasked with a mission to eliminate a remaining Separatist force on Desix, Cody requested Crosshair's inclusion in his unit. The two clones met near the Imperial Inspectorate HQ, exchanging greetings and discussing galactic affairs. However, when Order 66 was mentioned, Cody grew uneasy due to Crosshair's detached attitude toward the genocide. Despite this, they, along with a sizable unit of clone troopers, boarded a Nu-class attack/transport shuttle en route to Desix.
As the shuttle descended into Desix's atmosphere, Cody briefed his team. Their objective was to destroy the Separatist battalion of reprogrammed battle droids and rescue Grotton, the Imperial-appointed governor captured during a prior unsuccessful attempt to pacify the holdout. The Separatists, prepared for the assault, launched a heavy barrage of rockets and tank fire at the Imperial shuttle, causing it to crash in the farmlands outside the city. Nevertheless, Cody, Crosshair, and half the team survived and advanced on the city. Witnessing Crosshair's expert destruction of an AAT tank, Cody and his troopers used ropes to scale the city walls, breaching the gates and eliminating any droids encountered. Before proceeding further, Cody divided his forces, leading Crosshair, Wyler, and Nova through the north access point, while a second team entered through the south.
After intense combat through the city's narrow streets against numerous battle droids, resulting in the deaths of Wyler and Nova, Cody and Crosshair approached the command tower where the Separatist governor Tawni Ames held Grotton captive. Following a fierce close-quarters battle with BX commando droids, they found Ames holding Grotton at gunpoint. Cody rebuked Ames for attacking Imperial convoys and resisting Imperial authority, but Ames countered that peace was impossible under the Empire, criticizing Palpatine's warmongering. Attempting to demonstrate the possibility of a peaceful resolution, Cody laid down his weapon and helmet, pleading with Ames to release Grotton to prevent further bloodshed. Hesitantly, Ames lowered her blaster and freed Grotton, only for the governor to demand her immediate execution. Despite Cody's promise of a peaceful outcome, Grotton insisted on Ames's execution, threatening the clones with insubordination. At that moment, Crosshair fatally shot Ames, pleasing Grotton but shocking and troubling Cody. Later, Cody observed as Imperial reinforcements arrived to occupy the planet, looting resources and mistreating the Desix population. With a look of disgust, Cody boarded a shuttle with Crosshair and his remaining troopers, departing the planet.
Upon their return to Coruscant, Cody stood silently before the First Battle Memorial outside the Imperial Inspectorate HQ. As Crosshair passed by, Cody questioned whether the clones were truly improving the galaxy under the Empire's rule. Crosshair simply replied that, as soldiers, they "do what needs to be done." Unconvinced, Cody argued that they were not battle droids and could make their own choices, bearing the consequences of those choices. He then entered the Imperial facility. The following day, Crosshair reported to Vice Admiral Edmon Rampart's office and was informed of his reassignment to a new clone commander. When Crosshair inquired about Cody's location, Rampart revealed that Cody had gone AWOL overnight.
Approximately a year into the Imperial Era, Kenobi, in exile on the desert world Tatooine to safeguard young Luke Skywalker, recalled past events during meditation, including Cody returning his lightsaber just before Order 66. Upon seeing the face of a clone, Anakin Skywalker, now the Sith Lord Darth Vader, remembered Cody, Rex, Fives, and Echo. Each name triggered a memory, and Vader viewed each clone as a ghost from his past.
Fifteen years after the rise of the Empire, many of the codes and emergency protocols developed by Cody and Rex during the Clone Wars remained in use by the Empire. Despite his participation in numerous battles during the Clone War, Cody was primarily known as the clone who ordered Kenobi's execution. His failure proved crucial for the future of the galaxy because of the Jedi's role in the Galactic Civil War.

A clone of Jango Fett, Cody was a human male standing 1.83 meters tall, with black hair, brown eyes, and tan skin. A born leader, he transformed the 212th Attack Battalion into a celebrated regiment. His strategic mind and practical approach to warfare, coupled with his combat prowess, garnered him respect from superiors and subordinates alike. Known as Cody, a name he adopted as part of a growing trend among clones encouraged by the Jedi to embrace their individuality.
While cautious and procedural, Cody was consistently effective on the battlefield. His leadership stemmed from his versatility, leading his troops effectively in both straightforward infantry engagements and complex infiltration operations. As a soldier in the Grand Army of the Republic, Cody remained steadfastly loyal to the government he was created to serve. His allegiance to the Galactic Republic was unwavering, and any attempts to question his service were met with impassiveness. He deeply resented preventable clone deaths, such as those caused by inadequate cover, and confided in Rex that he struggled with being among the few who survived battle after battle, while so many of his brothers fell. He shared his brethren's deep connection to their homeworld, Kamino, where he was grown alongside the other Fett clones. The Separatist invasion of Kamino was a personal affront to Cody, who saw their actions as a direct threat to his people.
Like his general, Cody developed a habit of walking with his hands behind his back. He was also familiar with Quinlan Vos's reputation, which he mentioned to Kenobi when asked about him. Due to his strong sense of loyalty, Cody had little patience for traitors. He was unmoved by Slick's treason, who believed the clones were enslaved. However, Cody expressed to the Jedi that he understood how Vos's betrayal affected them, recalling the incident with Slick.

Cody often worked alongside Captain Rex, with whom he shared a close friendship. Cody frequently questioned how Rex could tolerate working under a Jedi as reckless as Anakin Skywalker, appreciating Obi-Wan Kenobi's more cautious approach on the battlefield. Cody's qualities as an officer made him an ideal second-in-command to Kenobi. Serving alongside Kenobi throughout the Clone Wars, Cody developed a strong working relationship and a friendship built on trust and camaraderie. Kenobi trusted Cody implicitly, while Cody and his troops respected their Jedi general's skills as both a negotiator and a warrior. Kenobi also valued Cody's leadership and tactical abilities. However, Chancellor Palpatine activated Cody's chip, overriding his loyalty to Kenobi. Consequently, he was compelled to follow Order 66, the directive to kill all Jedi as enemies of the Republic, turning against his longtime friend and general. As a soldier of the Galactic Empire, Cody participated in the subjugation of Kashyyyk and the enslavement of its native Wookiee population, but he later realized that Imperial peace was not a type of governance he could support.
Commander Cody was a skilled and capable field commander, whose knowledge and skill on the battlefield earned him the rank of Marshal Commander. Cody also possessed impressive close combat and hand-to-hand skills, as demonstrated in his encounters with Sergeant Slick and against the droid forces on Christophsis. He was also proficient with blasters, accurately hitting a fuel tank launched by Obi-Wan and destroying numerous battle droids throughout the Clone Wars.
As an experienced commander, Cody could formulate and execute plans effectively. Before the Second Battle of Geonosis, he outlined the plan that ultimately led to victory for the Republic. Cody was an expert military tactician, proficient with a jetpack, which he frequently used for aerial maneuvers and reconnaissance.

During the Clone Wars, Cody wore a set of Phase I clone trooper armor initially marked with yellow, like all Clone Commanders at the war's outset. As clones began customizing their armor, Cody's was painted orange, a color used by many members of the 212th.

His armor also featured a removable visor to reduce glare, a communications antenna on his helmet, a secondary antenna on his shoulder, and a small light. He used lamps on his helmet at Geonosis. Later, when Phase II clone trooper armor was introduced, Cody wore a similar set with modifications including two gray stripes on the top of his helmet, a clip for Obi-Wan Kenobi's Lightsaber on his waist, a small tool on his upper arm, one antenna on his shoulder pads, one on the back of his helmet, and a smaller, oval-shaped jetpack. This armor also featured a visor and orange markings.
During the Imperial Era, the orange markings on Cody's armor were replaced with gray, and additional markings were added to his helmet.
Cody's first canonical appearance was in the 2005 film Star Wars: Episode III Revenge of the Sith, portrayed by Temuera Morrison, who played all the clone troopers in the movie. Cody's name was a tribute to the film serial character Commando Cody.
Cody was later voiced by Dee Bradley Baker in Star Wars: The Clone Wars. In "The Hidden Enemy," the sixteenth episode of The Clone Wars first season, Kenobi mistakenly referred to Cody as a captain due to a script change where Kenobi was originally addressing Rex.
During the development of Star Wars Rebels, the writers considered bringing back Cody. At Dragon Con 2018, Henry Gilroy mentioned an idea where Grand Admiral Thrawn realized the Spectres were working with clones, leading him to research and enlist Cody's help.
Writer Stuart Beattie envisioned a significant role for Cody in the initial draft of three Obi-Wan Kenobi feature films, exploring his character arc and his transformation from Revenge of the Sith to Obi-Wan Kenobi. In Beattie's script, Kenobi would encounter Cody in a Tatooine town, where Cody would confront the Jedi in an alley with a knife to his throat. It would later be revealed that Cody had his inhibitor chip removed, freeing him from the compulsion to hunt Kenobi. Cody would then become Kenobi's "secret buddy," both burdened by guilt. Beattie's concept involved Kenobi leaving Cody in charge of Luke Skywalker when he departed Tatooine, a subplot that would be interwoven into the film. Cody's character was intended to illustrate Kenobi's disconnection from the Force, resulting from imposing his will on young Skywalker, mirroring Superman's loss of powers in the 1980 film Superman II. Beattie portrayed Cody as a humorous character tragically battling his accelerated aging. The writer included a comedic scene where Cody and Kenobi disposed of dead stormtroopers at the local sarlacc pit, joined by other locals disposing of bodies. Beattie speculated that Cody's absence from the Obi-Wan Kenobi television series might have been due to Temuera Morrison's commitments to The Book of Boba Fett or a decision that the show did not require Cody's character.