Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AI Agents Are Not Magic

AI Agents Are Not Magic

AI agents might look impressive, but they’re built from simple ideas.

This talk breaks them down into their core parts: an LLM, a set of tools, and a loop that ties everything together. Using a minimal Kotlin example (~100 lines), we explore how these pieces create agent-like behavior.

No magic. Just patterns you can understand and build yourself.

This is a shorter version of another presentation on the same topic that can be found at:
https://speakerdeck.com/scarrilho/building-an-ai-coding-agent-in-100-lines-of-kotlin

The demo code can be found at: Code: https://github.com/scarrilho/code-agent-example/tree/feature/simple-agent
Companion Medium article: https://sergiocarrilho.medium.com/building-an-ai-coding-agent-in-100-lines-of-kotlin-f9af28e6aeb0

Avatar for Sergio Carrilho

Sergio Carrilho

March 27, 2026

More Decks by Sergio Carrilho

Other Decks in Education

Transcript

  1. AI AGENTS 101 by: Sergio Carrilho The building blocks in

    100 lines of Kotlin @sergiocarrilho