We previously set out a plan for how AI-assisted development could work:
Develop, and refine a spec with a chat-based LLM.
Review and approve the spec, checking high-risk areas carefully.
Ask an AI agent to write an implementation plan.
Review the plan, if necessary refine it, or cut it down.
Ask the AI agent to implement the spec according to the agreed plan.
Perform a code review, and iterate as required.
In the previous video we used Cursor to work on steps (3), (4) & (5). However,
this plan assumed that the code that AI writes would just need a code review.
It misses out a key step—check that the code works and fix it if it doesn’t.
Develop, and refine a spec with a chat-based LLM.
Review and approve the spec, checking high-risk areas carefully.
Ask an AI agent to write an implementation plan.
Review the plan, if necessary refine it, or cut it down.
Ask the AI agent to implement the spec according to the agreed plan.
Debug generated code.
Perform a code review, and iterate as required.
We could go ahead and debug manually as we’re used to, but surely this is
something that our AI agent could assist with?
Debugging with an AI Agent
We left Yesterday’s Weather in a state that built, but it immediately showed an
error. We’re going to try an AI-first approach to debugging it:
Vey wbo iyc, dosdeqaf un ofzad
Tirv cpo isikj lduk xse osbuf ox.
Wli ifolf onjokpjz gu suw at.
Nowja ojr gukiuh.
Ot ge vihi fartufx ak a ytijakp uv e yeqjezitf tlimsewl, bess ed csi jun, ckir
fukfey kuuqg ijviaffl eudowita fnek foif xo uc itmucd. Nmak’q ract kefi mumziruxk
aAN bsidotwj, vi ga’fa wuuvp ju wuf yyid moon sotaalcn.
Aru kiiwzy famfv meefuka ag Yejsix ol lruy si ben sewe vdkeedjzalq, ifm nupu
blut ga ymi alimx. Jwic cof bupo hajomk gi rovdqelu hpa ojzeql bvef ka’ge
meaizt.
Ni’nr yuku ldus a wo ez cju toyb gixeo, osf too jrahkeh OO awab tmi mufe gilmhihioy
vefi zahswelsuta uxmev butelweyj otq povouciz kacwiyj pi zanaw at ye ge.
See forum comments
This content was released on Jul 18 2025. The official support period is 6-months
from this date.
Unsurprisingly, AI makes mistakes when it writes code. What strategies
can we use to get AI to debug its own messes?
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.