@haruka89 oh yeah i totally have headcanons about this because i have a massive notes doc about this au now. it’s much angstier than the rest of the post
so yeah cody doesn’t find out about the chip until he and luke join the rebellion bc rex is like “OH SHIT it’s CODY” and “so how’d you get your chip out” and cody’s like “what chip”
and then Rex and Wolffe tackle him and haul him to the nearest medbay BUT, they discover that because of ~mysterious medical reasons~ they can’t remove Cody’s chip without killing him. because of the ANGST potential. So now Cody and Rex and Luke have to deal EMOTIONAL TURMOIL
so Cody’s wondering: “i only stole luke because i was following orders. At what point did I actually start caring about him? DID I actually start caring about him? If the chip were removed, would I still love my son?” (of course he cares about him, chip or no)
And REX is wondering “is this even really Cody? Is my big brother still alive in there? He’s changed so much but then again, so have i, how can i ever know if i’m talking to Cody, or the chip?”
and Luke never once doubts that his Dad loves him but he DOES go “huh i guess that explains a few things”
and Cody’s feeling all sorts of bad because here’s this brother who clearly loves him and missed him and Cody only has a few tangential memories of him (his memories of before the empire are very spotty), and Cody’s now worried that he doesn’t actually care about luke at all and the chip is just making him think he does, and that he’s actually incapable of caring about anyone, Rex included, and he THINKS he wants to reconnect with his little brother but WHAT IF it’s just the MIND CONTROL CHIP-
(of course, none of that is true, Cody’s just spent the last two decades ruthlessly repressing all his emotions to the point where he wouldn’t recognize a Feeling if it bit him on the ass, and right now ALL of the feelings are biting him on the ass, and he’s so confused).
anyway Rex and Cody reconnect, in the way that any siblings who’d been separated for twenty years would need to do, and Cody eventually convinces himself that whether or not it’s only because of the chip in his head, he loves Luke and that’s what’s important, and even though it never comes back fully the longer he spends around Rex and Wolffe the more he remembers about them
anyway after Endor, Vader officially revokes Order 66, which turns the chip off, and gives Cody an honorable discharge, which means that Cody is officially retired, and since he’s no longer in the army, he has no commanding officers, and thus no one is authorized to issue any orders that would re-activate the chip. Cody notices zero differences apart from the fact that if he wanted to, he could choose to NOT try and kill General Kenobi on sight. He also gets fewer headaches. (NB Cody does NOT so choose, he thinks that Kenobi needs to stay on his toes and that the occasional murder attempt is good for him).
Luke convinces Cody to return home, while Luke helps Leia and the others rebuild the Republic. Cody doesn’t want to leave Luke, but every parent has to learn to let go of their kids eventually, so after many tearful goodbyes (Cody is SO PROUD of Luke and he loves him SO MUCH), he goes back to the little planet he raised Luke on.
and he goes back (and luke wanted him to go back) because Cody has someone waiting for him there! I decided that Cody deserves a boyfriend and in defiance of every fandom trope ever, it’s not obi-wan. it’s also not another jedi, or a soldier, or a bounty hunter, or a medic, or any other character with a tragic backstory and badass abilities. Cody’s bf is literally just a regular dude, another single dad that he met when Luke befriended his daughter at school. (she’s a bit older than Luke and left for college a few years before Luke joined the rebellion)
Luke eventually semi-bullied Cody into letting them move in with them, because they were having financial issues and Cody has like, infinite money because of the funds Vader gave him. So Luke grew up with a sister and Cody spent like five whole years being essentially married to this guy but he didn’t notice because Commander “no feelings” Cody is Resolutely Ignoring his Feelings. Cody’s Regular Guy Boyfriend has spent YEARS pining but he hasn’t said anything maybe because he’s also a dumbass?
and btw Cody has zero qualms about yeeting himself into this guy’s bed and cuddling him on nights when he can’t sleep because that’s just what clones do and cody never thought to question it
so this poor guy, who has been dealing with this for years, finally snapped and kissed Cody right before he and luke had to leave and so Cody’s spent the entire rebellion just being confused about it and Luke complains to Rex and Rex and Wolffe bully Cody into having Realizations so when Cody goes back home he finally gets his shit together and kisses him back.
And so Cody begins his life as an officially retired man. he spends a lot of time volunteering with the kids program at the local library (which he funded with Vader’s money because Luke needed Adequate Educational Enrichment). Due to things like this, Cody was considered somewhat of a community pillar so when it gets out that he’s back, all the neighborhood moms start dropping off cookies and casseroles and someone organizes a neighborhood potluck as a “welcome back, Purge Trooper Cody” party.
Luke visits regularly and eventually sets up his jedi academy on the same planet, a few hours away. Rex and Wolffe move in to the mother-in-law unit out back and Wolffe takes up gardening which is very helpful for his stress levels. There’s a big family reunion at Lifeday and Cody cries because it just hits him that he has a big ol’ family and they’re all here because they love him.
Also fun fact when Luke meets Leia he comms his bff/sister at college all excited like “HEY you know that imaginary friend i made up when we were kids? well she’s REAL and she’s even a REAL PRINCESS” and Leia’s like “well i drew shitty pictures of you when i was four” and that’s how they find out that Leia is also force-sensitive and that they are probably siblings.
other fun things which definitely happen but may not fit into the final fic which i AM writing:
-Ahsoka and Sabine retrieve Ezra from wherever the fuck, and he joins Luke as an instructor at his Jedi Academy.
-Anakin goes into semi-exile, since he’s definitely committed Way To Many Crimes to ever be allowed to exist in the new republic without being super arrested. Obi-Wan goes with him, ostensibly to guard him and make sure he doesn’t decide to do a little more genocide, but mostly because Anakin is his brother. After Obi-Wan passes away, Ahsoka shows up and escorts Anakin to a dinky little planet way off in the outer rim. There’s rock huts on the island, but Anakin needs more medical support than that so they convert his ship into a suitable facility. C3PO, who volunteered to come along and take care of Master Ani, is upgraded into a state-of-the-art medical droid. Ahsoka leaves Anakin and C3PO on Ach-To, and Anakin spends his days meditating and being bullied by the frog nuns who live there. Luke and Ahsoka visit him regularly.
Eventually, an angry teenage girl shows up with a note. It says “Hi Dad, this is Rey, she’s one of my students. She isn’t fitting in so well at the academy, and she’s having a lot of trouble dealing with her anger. I figured you could help her out!” XOXOXO -Luke. P.S. She’s from Jakku, so she hates sand just like you! You’ll love her, you have so much in common!”
and Anakin really really really doesn’t want to do this but she looks so hopeful and so he resigns himself to another padawan and he tries his best to teach her to manage her anger, but it’s not like he ever really got the hang of it, so they muddle through it together, but having a teacher who truly understands what she’s struggling with is invaluable to Rey.
He also teaches her lightsaber combat, but Anakin refuses to/was banned by Cody and Obi-Wan from ever picking up a lightsaber again, so mostly he just whacks her in the shins with his cane while she furiously tries to remove his limbs. (Anakin resolutely ignores the ghostly cackles he hears whenever he whacks his student).
Back on Cody’s home planet, one dark and rainy night, a red-haired young woman dressed in a grey jumpsuit and carrying more weapons than is reasonably practical shows up and tries to kill Luke. Cody snags her and sits her down at his kitchen table and she’s like “I MUST KILL LUKE SKYWALKER” and Cody’s like “no you don’t. sit the hell down and have some hot chocolate”. So basically Cody dads Mara Jade out of the Emperor’s mind-impulse to kill his son and then is like “Luke have you met Mara Jade, she seems like a nice young lady” and Luke and Mara Jade become the galaxy’s most powerful QPR because it’s what we deserve.
also PS i do NOT have a name for Cody’s Regular Guy Boyfriend and i am OPEN TO SUGGESTIONS