{"slug": "jetbrains-makes-kotlin-llm-open-source", "title": "JetBrains Makes Kotlin LLM Open Source", "summary": "JetBrains has made KotlinLLM, its research prototype for delegating runtime logic to a large language model from Kotlin code, open source and public. The IntelliJ IDEA plugin, announced in July, adds a language feature called smart macros that enable code generation, runtime updates, and hot-reloading. KotlinLLM is designed to be explicit, persistent, and portable, using an LLM agent only when generated code cannot handle a scenario, and storing successful behavior as generated Kotlin files.", "body_md": "| JetBrains Makes Kotlin LLM Open Source |\n\n| Written by Mike James | |||\n| Monday, 03 August 2026 | |||\n|\nJetBrains has announced that KotlinLLM, its research prototype for delegating runtime logic to a large language model (LLM) from Kotlin code, will now be available as open source and will be public. Kotlin is the open source language originated by JetBrains and promoted by Google as a first class language for Android to replace or supplement Java. Kotlin LLM, which was announced in July, is an IntelliJ IDEA plugin prototype. It adds a language feature JetBrains calls smart macros, which can be used for code generation, runtime updates, and hot-reloading. The GitHub page for KotlinLLM says a smart macro is an explicit Kotlin call whose behavior is backed by generated Kotlin source code. When the running application reaches an unsupported scenario, the plugin can capture the runtime values, ask an LLM agent to generate a narrow implementation update, compile the changed source, and hot-reload the affected class through JDI. The developers say that the design goal is that LLM-backed behavior should be explicit at the call site, persistent as source code, and portable as ordinary Kotlin once generated. LLMs are used more generally during code development for code completion, code generation, and program comprehension. Using an LLM at the runtime of a compiled application is less common. KotlinLLM is built to be explicit, persistent, and portable. The explicit aspect means the call site shows that a feature is LLM-backed, so it's visible in code review. It is persistent because the generated behavior is saved as an ordinary Kotlin source, not kept only in the runtime session. It can be committed, reviewed, tested, and distributed like any other code. And it is portable because once generated, the code runs as plain Kotlin without the plugin. KotlinLLM has three layers, a public API, a static infrastructure and a dynamic infrastructure. The public API consists of two functions, one to convert a value from one type to another, and a second that creates an implementation of an interface whose behavior can evolve from runtime interactions. The static infrastructure consists of managers that route smart macro calls to generated providers, while the dynamic infrastructure consists of a generated bootstrap, provider, parser, and mock classes maintained by the plugin. Unlike direct runtime delegation to an LLM service, KotlinLLM does not call the model on every smart macro invocation. The LLM is used when generated code cannot handle a scenario. Successful behavior is stored in generated Kotlin files and later runs execute that code directly. KotlinLLM is available now. The repository contains the KotlinLLM IntelliJ IDEA plugin, the smart macro API, and example projects.\n## More Information## Related Articles\nTo be informed about new articles on I Programmer, sign up for our\n## Comments\nor email your comment to: |\n|||\n| Last Updated ( Monday, 03 August 2026 ) |", "url": "https://wpnews.pro/news/jetbrains-makes-kotlin-llm-open-source", "canonical_source": "http://www.i-programmer.info/news/98-languages/19049-jetbrains-has-announced-that-kotlinllm-its-research-prototype-for-delegating-runtime-logic-to-a-large-language-model-llm-from-kotlin-code-will-now-be-available-as-open-source-and-will-be-public-kotlin-is-the-open-source-language-originated-by-jetbr.html", "published_at": "2026-08-03 16:55:30+00:00", "updated_at": "2026-08-03 17:05:31.301991+00:00", "lang": "en", "topics": ["large-language-models", "generative-ai", "developer-tools"], "entities": ["JetBrains", "KotlinLLM", "Kotlin", "IntelliJ IDEA", "Google", "Android"], "alternates": {"html": "https://wpnews.pro/news/jetbrains-makes-kotlin-llm-open-source", "markdown": "https://wpnews.pro/news/jetbrains-makes-kotlin-llm-open-source.md", "text": "https://wpnews.pro/news/jetbrains-makes-kotlin-llm-open-source.txt", "jsonld": "https://wpnews.pro/news/jetbrains-makes-kotlin-llm-open-source.jsonld"}}