← Blog

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.

By Caye Ruiz Updated 2 min read Technical

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.

AI review comment on an Android pull request: summary, issues, and suggested Kotlin code
Automated review on the PR: useful as a second opinion, not a replacement for a human merge decision.

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:

  1. Written acceptance criteria. If you do not define “done”, the agent keeps iterating or hallucinating improvements forever.
  2. Trust, but verify. The AI can be confidently wrong. Following it blindly costs more than fixing by hand.
  3. 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?

On LinkedIn the story plays on the “8-hour simple feature” hook. In practice, between spec work, iterations, and fixes, it was about twelve hours before the feature was stable and the code presentable.

Should you let an agent run without acceptance criteria?

No. Without written criteria, the agent keeps “improving” or inventing forever. You have to know when enough is enough.

Does AI review replace human review?

It works as a second opinion on the PR, not as a veto or substitute. Comments guide; someone on the team decides the merge.

Related articles

See Android app development