Codepocalypse Now: LangChain4j vs JetBrains Koog
A presentation at IntelliJ IDEA Conf 2026, streamed online in September 2026, by Baruch Sadogursky and Viktor Gamov.
Abstract
Two frameworks, two presenters, one increasingly capable assistant. Baruch Sadogursky and Viktor Gamov build j-claw live in JetBrains Koog and LangChain4j Agentic, using an urgent corporate problem as the demo: getting out of mandatory AI training. Across four rounds, a chatbot gains tools through MCP, persistent memory, reusable skills that turn corporate-speak up to eleven, and a typed workflow with a critic and a refinement loop. Along the way, Gemini, Claude, and Codex take different roles, and agent traces make the workflow visible. Both frameworks can get the job done; the hard part is modeling the work, giving the agent the right context, and ensuring that a rejected draft cannot slip through to delivery.
Resources
Demo code
- j-claw — Koog implementation (round4; explore round1–round4 branches)
- j-claw — LangChain4j Agentic implementation (Viktor Gamov; round1–round4 branches)
- Koog demo runbook — setup, rounds, prompts, and Langfuse
- LangChain4j demo runbook — setup and live-demo flow
Typed model code
- Typed Codex adapter — adding structured responses
- Typed Claude and Codex loading — the factory comparison
Frameworks, memory, and skills
- Koog documentation
- LangChain4j Agentic documentation
- Koog Agent Skills
- Agent Skills specification
- Corporate-speak to 11 — the demo skill
Tools and observability
- Model Context Protocol (MCP)
- Quarkus MCP Server
- TamboUI — the terminal interface
- Langfuse — agent traces and workflow visualization
- LangChain4j Agentic monitoring — HTML topology and execution reports