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