r/GeminiCLI • u/EKAlojix • 17h ago
A Gemini CLI exercise: what does "add shuffle" need to guarantee?
For a small Gemini CLI exercise, give your agent only this goal: "Add shuffle to my music app." Use a Spotify-style queue with two Eminem tracks, two Drake tracks, and two by The Weeknd. If your first check is "did we play six unique songs?", a grouped-by-artist output can slip through.
I maintain SeniorMode and its local fixture is a quick way to see the distinction. The random-comparator result has three repeated artist transitions; Fisher–Yates has one in this run; an artist-spacing rule reaches zero for this balanced list, but needs a fallback when one artist dominates.
The Gemini CLI setup is in the README. It's free and open source. Repo + example: https://github.com/EnesKeremAYDIN/SeniorMode#example-music-shuffle
Does the test your agent proposes actually demonstrate the behavior the listener asked for?

