Encouraging students to go above and beyond the requirements - allow them to lead where they’d like to challenge themselves in the code. Increase the complexity rather than just increasing the amount of work.
Allow them to be a resident expert (if they’re willing). Some of these students enjoy the puzzle of decoding while other students simply become frustrated.
How do you deal with a disinterested student because they believe themselves to already know the content?
Are these students advanced because they were allowed to learn based on their own interests, but are now annoyed and disinterested because it is someone else’s agenda. Maybe give them the challenge of digging for something no one else has found yet.
Some gifted students are motivated by authentic tasks. Adding empathy to their planning at any point may add real new learning for many of these students. Asking these students to go beyond the checklist based on the needs of others. Creating real audiences may increase motivation. Maybe including a peer review by an adult from an outside source would also motivate them a bit more!