A natural and practical leader in the clone army, Commander Cody’s keen ability to strategize, combined with his fierce combat style in the heat of battle once earned him the respect of the Jedi and of his fellow clones. After years in service to General Obi-Wan Kenobi and working alongside his friend Captain Rex, when Darth Sidious executed Order 66, Cody’s loyalty was eclipsed by his clone indoctrination, and he ordered his troops to fire on the Jedi. But after serving the Galactic Empire for a time, Cody began to realize that the Empire’s idea of order called for brute force and bending the truth. And after leading a mission to secure the world of Desix in the name on the Emperor, Cody vanished.
from – Clone Commander Cody | StarWars.com