Codepocalypse Now: LangChain4j vs JetBrains Koog

Devoxx Belgium 2026 Video Available

Abstract

Can Java build a real AI agent — one that manages your calendar, reads your email, orders pizza, and remembers who you are across sessions? OpenClaw, the personal AI agent with 350K GitHub stars, proves the concept. We’re going to build it twice, in Java, live on stage. Baruch brings JetBrains Koog, Viktor brings LangChain4j. Same features, same LLM, completely different philosophies. We’ll run six competitive rounds of coding, from basic agent setup through memory, tool calling, agentic workflows, guardrails, and observability. Each round surfaces a design disagreement: should memory be an Advisor or a Provider? Are agents composed services or first-class citizens? And when your guardrail framework and the model disagree, who wins? The frameworks disagree on how AI agents should be built. The audience votes on who’s right.