Insomnia, AI agents, and the 8-hour 'simple feature'
Ever had a “five-minute” task eat your whole day? This one started at an indecent hour, sleepless, with a language switcher that was “sure” to go fast with AI.
In the small hours, wide awake, I decided to add a language switcher to Weel, a personal app I have been working on for a while. By hand it would have taken a couple of hours. I wanted to see how long it would take with AI agents.
Big mistake: without acceptance criteria, the AI never stops “fixing” things you did not ask for.
The plan before code
The first step was not opening Android Studio: it was writing the spec in Cursor with Composer. A full hour on the plan alone. A local model with Ollama might have been cheaper, but I was too tired to be strategic.
Four rounds refining the plan to catch errors before execution. In the end I let Claude Opus implement. (RIP API credits, but at least I did not go in blind.)
The key idea
The time “saved” on code went into bad specs, fix loops, and quality passes. AI speeds up typing, not judgment.
Execution: “half done” in several ways
In the classic AI fashion, it almost worked. That is, it failed in creative ways:
- The dropdown opened toward the wrong side of the screen.
- The toggles did not actually change what they should.
- Persistence and context injection were a mess.
Every fix opened another hole because there was no closed list of “done when…”.
Quality control with automated review
When the code finally fit together, quality was still poor. I ran the diff through a GitHub workflow we set up for AI review (Gemini at the time; recent screenshots show 2.5 Pro).
The bot found real issues, for example an unsafe AppLanguage.valueOf reading DataStore, and noise too. That day it weighed on me more than it helped, but the pattern still pays off on teams with little review bandwidth.
If you want to see how that fits into a full pipeline, see our CI/CD guide with AI review on bitdesal.com.
Twelve hours later three lessons
After about twelve hours and many wrong turns, the feature was in production and the code presentable. I took away this:
- Written acceptance criteria. If you do not define “done”, the agent keeps iterating or hallucinating improvements forever.
- Trust, but verify. The AI can be confidently wrong. Following it blindly costs more than fixing by hand.
- Question yourself. Sometimes the bug is in the prompt or the framing, not the model. That is where you learn the most.
Conclusion
The simple feature was not
AI agents help you move fast when you already know what you want and how to check it. Without that, a sleepless night turns into a marathon.
There is also the original article on LinkedIn. If you want Android development with quality and without relying on the agent forever, see Android app development or AI agents for business.
Frequently asked questions
Why does the title say 8 hours if the marathon was longer?
Should you let an agent run without acceptance criteria?
Does AI review replace human review?
Related articles
- A guide to CI/CD for Android using GitHub Actions: a reasonable pipeline
Three GitHub Actions workflows for Android: fast PR CI, parallel AI code review, and signed internal-track releases. Real patterns for Gradle-based apps.
- Technical interviews in the AI era: perhaps we assess the wrong things
Technical interviews still measure what AI already does. What companies should evaluate when hiring developers, and what a useful process looks like today.
- Beyond "Vibe Coding": A Manifesto for Sustainable AI Engineering
Five principles for using AI in engineering without chaos: trust, specification, rigor, humans in charge, and sustainable cost. A manifesto in English.