Skip to lesson
Back to Kodivo

Working with an AI agent AI Coding

From an idea to working software

A Save button that saves nothing

Imagine Taskboard, a small app for keeping tasks and their notes. You ask an AI agent to make the Save button work. It edits the app's files and reports that the button works. Then you try it yourself.

Save-note scenario
Enter: Buy milk
Action: Save, leave the task, reopen it
Expected note: Buy milk
Observed note: empty

Separate the work from the result

The app's source files describe how it works. Editing them is work the agent did. The result you asked for is something you can see in the running app: a saved note is still there after you reopen it. A button can look correct while saving nothing.

  • Work done: the agent edited the code behind the Save button.
  • Result wanted: the note Buy milk is still there after reopening.

Ask for evidence that matches the request

A screenshot can show the button label. A list of edited files can show where work happened. Neither follows the note through a save. Ask the agent to check the behavior you named and report what it observed.

Useful follow-up
Check that a saved note survives reopening.
Report the expected and observed note.
If you cannot run that check, say so.

Check your understanding

The agent says the Save button works. Which evidence checks the requirement?

Choose an answer
Create a free accountSave your progress and continue with the next lesson.

Sources and notes

Selected rules and limitations supporting original Kodivo scenarios. Consult the complete source for its context.

Using PLANS.md for multi-hour problem solving

Credits and license

Kodivo original teaching, informed by the cited official documentation and cookbooks. Original teaching; reference sources retain their respective licenses.

Original Kodivo explanations, scenarios and PHP examples with AI assistance. References support the documented concepts; their model-specific settings and API recipes are not universal instructions. No provider endorsement is implied. Source excerpts and notices are retained with the source registry.

Swipe up to continueUse the arrow buttons or left/right keys