Gemini Flash prompts build custom disk cleanup for Mac app
the gist
Indie dev Marko uses precise Gemini 1.5 Flash prompts to add user-defined folder scanning to his Mac disk cleaner, reviews code by hand after ditching Claude over quotas.
The Breakthrough
Marko implements custom disk cleanup targets in his Mac utility app by prompting Gemini 1.5 Flash to add a 'custom' risk level and UI message in specific files.
What Actually Worked
- Marko prompts Gemini 1.5 Flash via Juny (JetBrains) with precise instructions naming the file and changes:
okay now let's add a new risk level called custom which doesn't really have an associated value which will be set by default for all custom targets defined in this folder and file and also come up with a hard-coded message that we will use in the UI for custom targets. - Marko visualizes the feature holistically before prompting, considering touched files, minimal changes, and backward compatibility.
- Marko reviews all AI-generated code changes, tidies them, and manually polishes animations, fonts, and micro-interactions.
- Marko adds custom targets in app preferences under 'disk clean', specifying paths and categories like node_modules folders under 'development'.
- Marko organizes tasks across YouTube, development, and support using Akiflow's command-K bar for keyboard-driven task creation with hashtags for projects and deadlines.
Context
Marko's app has 160 hardcoded cleanup targets covering popular folders, but users need custom ones like inactive node_modules or old videos. He switched from Claude after usage quota changes to Gemini 1.5 Flash for direct token pricing, which costs less than a $7 coffee per session. The feature scans custom paths, lists matches (e.g., ~1GB node_modules), and allows selective deletion, improving utility for storage management on Macs.
Notable Quotes
- "Gemini Flash has been so cheap for me that ironically the coffee that we have right here costs many times more than what I will use in this coding session."
- "I try to be very deliberate with AI anytime I tried brainstorming quote unquote it really never solves the problem it just basically reflects my own thoughts back at me."
Content References
Akiflow integrates calendars and apps for task scheduling via global command bar.