I bet you could rig a real simple pulley system to a friction bar end lever or similar that would move the flag from the 3ft out position to the typical upright position for safe passing by other cyclist/pedestrians.
It sounds like you wouldn't really need that feature for your ride but it might be a fun project for you or someone who likes the idea but sees more bikes and peds on their route.