JetBrains Dec 1, 2025

Building AI Agents In Kotlin Part 3: Under Observation

Article Summary

Denis Domanskii from JetBrains tackles a problem every AI agent developer faces: your agent works, but you can't see what it's doing. When debugging takes hours and costs are invisible, you're flying blind.

This is Part 3 of JetBrains' series on building AI coding agents in Kotlin using the Koog framework. The article addresses the observability gap that emerges as agents become more capable, making it harder to debug failures, track costs, and understand agent behavior during development.

Key Takeaways

Critical Insight

Adding observability transforms AI agents from black boxes into inspectable systems where you can see exactly what happened, why it failed, and what it cost per run.

The next article explores sub-agent patterns for delegating tasks to smaller, cheaper models, and the tracing data will reveal exactly which tasks are worth delegating.

Related Articles