Konstantin Pavlov
@kpavlov.me
📤 49
📥 77
📝 74
Human, Software Engineer: AI, Kotlin, OSS. Creator of mokksy.dev, kotlinx-schema
pinned post!
Unit tests won’t catch what breaks in production. If your service talks to external HTTP systems — mocking isn’t enough. You miss real config, timeouts, retries, and streaming behaviour.
#Mokksy
is a
#Kotlin
mock server with real HTTP & SSE support for black-box integration tests.
loading . . .
Mokksy: A Mock Server That Actually Streams — and Why Your AI App Needs Integration Tests
Why unit tests alone won’t save your LLM application in production, and how Mokksy — a Kotlin mock server with true SSE and streaming support — fills the gap that WireMock leaves wide open.
https://kpavlov.me/blog/mokksy/
3 months ago
2
1
0
⚡ Mokksy 0.10 is out! This release focuses on more realistic integration testing: • YAML-based stub loading • multipart & form body matching • improved verification APIs Built for testing modern HTTP & streaming APIs on the JVM.
github.com/mokksy/mokks...
mokksy.dev
loading . . .
Release v0.10.0 · mokksy/mokksy
What's Changed Mokksy v0.10.0 is a feature-heavy release focused on more realistic request matching, easier stub provisioning, and better verification APIs for tests. The main additions are file-ba...
https://github.com/mokksy/mokksy/releases/tag/v0.10.0
8 days ago
0
1
0
Direct prompt injection is only the first layer. Higher-order attacks embed malicious intent in the code an agent dependencies it adds, and the trust chains it inherits — executing later in CI, production, or downstream agents.
kpavlov.me/blog/agent-h...
#ai
#security
#AttackVector
loading . . .
Higher-Order Attacks on AI Code Agents
Beyond direct prompt injection lies a more dangerous class of attacks: manipulating the agent into writing malicious code that executes later in CI or production. This article examines second-order co...
https://kpavlov.me/blog/agent-higher-order-attacks/
20 days ago
0
1
0
Check out my latest article: When Your
#AI
#Code
#Agent
Becomes an
#RCE
Engine
kpavlov.me/blog/agent-p...
loading . . .
https://kpavlov.me/blog/agent-prompt-injection-basics/
about 2 months ago
1
1
0
A library developer’s true compass is a simple question: Is this safe enough to power Orion?
#Orion
#MissionCritical
#CodingPhilosophy
#CodingPrinciples
#SoftwareEngineering
about 2 months ago
0
1
0
Mokksy just got a facelift✨💄 The go-to toolkit for mocking HTTP APIs with SSE streaming and LLMs now has a brand new design. Explore the update at
mokksy.dev
#AI
#DeveloperTools
#OpenSource
#Kotlin
#Mokksy
#SoftwareTesting
#ServiceVirtualization
loading . . .
Mokksy and AI-Mocks — Mokksy
Mokksy & AI-Mocks: The modern mock HTTP server for Kotlin & Ktor. High-fidelity mocking for OpenAI, Anthropic, Gemini, and SSE streaming where WireMock falls short.
https://mokksy.dev
about 2 months ago
0
1
0
Kotlin MCP SDK 0.11.0 is out! Highlights: - Elicitation support - Upgraded to Kotlin 2.3, Ktor 3.3, serialization - Configurable max request payload size + automatic JSON setup - Full conformance test suite is finally green
github.com/modelcontext...
#Kotlin
#MCP
#AI
#SDK
#APIs
#DeveloperTools
loading . . .
LinkedIn
This link will take you to a page that’s not on LinkedIn
https://lnkd.in/e65r8XAK
2 months ago
0
0
0
#Javable
: generate Java-friendly wrappers for
#Kotlin
with
#KSP
Annotate your Kotlin class and functions, and Kotlin Symbol Processor generate
#CompletableFuture-based
async adapters, blocking wrappers, and Java Stream-based
#Flow
collectors — with correct
#CoroutineScope
lifecycle management.
loading . . .
Javable: generate Java-friendly wrappers for Kotlin with KSP
When building a Kotlin library, the JVM interop story is often painful: suspend functions expose a raw Continuation parameter in Java, Flow has no Java equivalent, and data classes with many parameter...
https://kpavlov.me/blog/javable/
2 months ago
1
1
0
kotlinx-schema v0.4 is out — with first-class sealed class support! Excited to announce the release of kotlinx-schema 0.4.0, bringing one of the most requested features: polymorphic type support for JSON Schema and LLM function calling schemas.
github.com/kotlin/kotli...
loading . . .
GitHub - Kotlin/kotlinx-schema: Kotlin Multiplatform library that generates JSON Schemas from your methods and classes both at compile-time via Kotlin Symbol Processing(KSP) and at runtime via reflect...
Kotlin Multiplatform library that generates JSON Schemas from your methods and classes both at compile-time via Kotlin Symbol Processing(KSP) and at runtime via reflection or kotlinx.serialization....
https://github.com/kotlin/kotlinx-schema
3 months ago
1
1
0
#Kotlin
API design cheat sheet: when to use params, defaults, builders & lambdas—w/ thresholds
github.com/kpavlov/kmon...
loading . . .
https://github.com/kpavlov/kmons/blob/main/docs/kotlin-api-design-guidelines.md
3 months ago
0
1
0
Kotlin’s flexibility — multiple classes and extension functions in one file — is a feature, not a bug. But without team conventions and static analysis, files can quietly grow past 1,000 lines.
kpavlov.me/blog/kotlin-...
loading . . .
Large files in Kotlin: causes, trade-offs, and practical remedies
Kotlin's permissive file organization model enables expressive, cohesive code — but it also explains why large files are commonplace even in mature Kotlin libraries. This article examines the cultural...
https://kpavlov.me/blog/kotlin-large-files/
3 months ago
1
0
0
Spring Modulith is very valuable tool to avoid dependency cycles between modules in enterprise applications. Must-have tool for every serious project.
add a skeleton here at some point
3 months ago
0
2
2
Unit tests won’t catch what breaks in production. If your service talks to external HTTP systems — mocking isn’t enough. You miss real config, timeouts, retries, and streaming behaviour.
#Mokksy
is a
#Kotlin
mock server with real HTTP & SSE support for black-box integration tests.
loading . . .
Mokksy: A Mock Server That Actually Streams — and Why Your AI App Needs Integration Tests
Why unit tests alone won’t save your LLM application in production, and how Mokksy — a Kotlin mock server with true SSE and streaming support — fills the gap that WireMock leaves wide open.
https://kpavlov.me/blog/mokksy/
3 months ago
2
1
0
#KSP
#Maven
plugin 0.4 is here! Upgraded KSP v2.3.6, Kotlin 2.3, Java 17, and now supports processor class filtering
github.com/kpavlov/ksp-...
loading . . .
Release 0.4.0 · kpavlov/ksp-maven-plugin
What's Changed Adds glob-pattern processor filtering #43 by @kpavlov in #69 Update default kotlin version to 2.3 by @kpavlov Update min Java version to 17 by @kpavlov Fix maven parameter help gen...
https://github.com/kpavlov/ksp-maven-plugin/releases/tag/v0.4.0
3 months ago
0
0
0
reposted by
Konstantin Pavlov
Guillaume Laforge
4 months ago
Great guide by
#anthropic
on how to write
#AI
#Agent
#Skills
resources.anthropic.com/hubfs/The-Co...
0
7
3
#Kotlinx-schema
now supports JSON Schema generation from
#Kotlin
#serializarion
(SerialDescriptor) without KSP or reflection. And also KSP generator can extract property descriptions from KDoc
github.com/Kotlin/kotli...
loading . . .
Release 0.3.0 · Kotlin/kotlinx-schema
What's Changed Breaking Changes Migrate "kotlinx-schema-generator-core" and "kotlinx-schema-generator-json to Kotlin Multiplatform (#147) by @kpavlov in #149 New features Extract parameter, fiel...
https://github.com/Kotlin/kotlinx-schema/releases/tag/v0.3.0
4 months ago
0
0
0
#KSP
#Maven
plugin 0.3.0 is out: - Dynamic configuration of plugin executions via Maven lifecycle - Automatic detection of KSP/Kotlin configuration parameters - KSP upgraded to **2.3.5**
github.com/kpavlov/ksp-...
See it is action in
#KotlinxSchema
:
github.com/Kotlin/kotli...
loading . . .
Release v0.3.0 · kpavlov/ksp-maven-plugin
What's Changed ✨ New features Dynamic plugin execution configuration: Added KspLifecycleParticipant, enabling dynamic configuration of plugin executions based on the Maven lifecycle by @kpavlov ...
https://github.com/kpavlov/ksp-maven-plugin/releases/tag/v0.3.0
4 months ago
0
1
0
This puzzle is quite beautiful! I hope it’s never used in production code🙃
add a skeleton here at some point
5 months ago
0
1
0
#Kotlinx-schema
has been released with function schema generation via
#KSP
plugin.
github.com/Kotlin/kotli...
loading . . .
Release 0.0.3 · Kotlin/kotlinx-schema
Important Changes feat: Implement compile-time function schema generation via KSP by @kpavlov in #44 breaking(schema): use ObjectPropertyDefinition for function parameters to match JSON Schema sem...
https://github.com/Kotlin/kotlinx-schema/releases/tag/v0.0.3
5 months ago
0
0
0
🚀
#ksp-maven-plugin
v0.2.0 is out! Now processes both main AND test sources, making KSP integration with Maven even more powerful. Perfect for Kotlin projects using symbol processing.
github.com/kpavlov/ksp-...
#Kotlin
#Maven
#KSP
loading . . .
Release 0.2.0 · kpavlov/ksp-maven-plugin
What's Changed Process main and test sources (#22) by @kpavlov in #35 Full Changelog: v0.1.3...v0.2.0
https://github.com/kpavlov/ksp-maven-plugin/releases/tag/v0.2.0
5 months ago
0
0
0
#Kotlin
#MCP
SDK v0.8.1 has been released
github.com/modelcontext...
#kotlinMcpSdk
loading . . .
Release 0.8.1 · modelcontextprotocol/kotlin-sdk
What's Changed fix(stdio-client): Monitor STDERR and refactor StdioClientTransport to use flows. Fixes #107 by @kpavlov fix(sse-client): Skip SSE in StreamableHttpClientTransport when data is empt...
https://github.com/modelcontextprotocol/kotlin-sdk/releases/tag/0.8.1
6 months ago
1
0
0
Recently open-sourced Kotlin Multiplatform library that generates JSON Schemas from your methods and classes at compile time and at runtime via reflection using Kotlin Symbol Processing (KSP). Want to hear your thought
github.com/Kotlin/kotli...
#kotlin
#ksp
#jsonschema
#toolschema
#codegeneration
loading . . .
GitHub - Kotlin/kotlinx-schema: Kotlin Multiplatform library that generates JSON Schemas from your methods and classes at compile time and at runtime via reflection using Kotlin Symbol Processing (KSP...
Kotlin Multiplatform library that generates JSON Schemas from your methods and classes at compile time and at runtime via reflection using Kotlin Symbol Processing (KSP) - Kotlin/kotlinx-schema
https://github.com/Kotlin/kotlinx-schema
6 months ago
1
1
0
Just released KSP Maven Plugin 0.1.2 with latest Kotlin Symbol Processing 2.3.3 and plugin dependency fix. - Blog post:
kpavlov.me/blog/ksp-mav...
- Release
github.com/kpavlov/ksp-...
#Kotlin
#KSP
#Maven
loading . . .
Weekend hack: Kotlin Symbol Processing Maven Plugin
KSP only works with Gradle, leaving Maven users out in the cold. I built ksp-maven-plugin to fix that - minimal setup, auto-discovers processors, integrates with Maven’s lifecycle. Now you can use KSP...
https://kpavlov.me/blog/ksp-maven-plugin/
6 months ago
0
0
0
reposted by
Konstantin Pavlov
Marit van Dijk
8 months ago
Massive thanks to
@stephanjanssen.be
and team for organising another great edition of
@devoxx.com
!
0
16
2
@snicoll.be
, thank you for the talk on Devoxx Belgium 2025 on SpringBoot 4. May I ask you to review my guide how to write SB starters. Is it still actual and provide the best practices for SB 4
kpavlov.me/blog/spring-...
loading . . .
Spring Boot Starters
This post discusses Spring Boot Starters and their importance to developers, who want to make the setup and configuration of Spring Boot applications a whole lot easier. It keeps dependencies organize...
https://kpavlov.me/blog/spring-boot-starters/
8 months ago
1
2
1
#Mokksy
0.5.0-Alpha1 is ready for testing
github.com/mokksy/ai-mo...
New features include an
#Ollama
mock server, initial support for
#A2A
protocol v0.3.0, colored HTTP request logs, and updated Kotlin compiler options with kotlin-stdlib 2.0.10.
loading . . .
Release v0.5.0-Alpha1 · mokksy/ai-mocks
What's Changed New Features Introduce Ollama Mock Server (WIP) by @kpavlov [WIP] Support A2A protocol v0.3.0 (JSON-RPC 2.0) by @kpavlov Colorize HTTP request in logs by @kpavlov Update Kotlin comp...
https://github.com/mokksy/ai-mocks/releases/tag/v0.5.0-Alpha1
9 months ago
0
0
0
reposted by
Konstantin Pavlov
Kotlin by JetBrains
10 months ago
📢 Kotlin community! Don’t miss this livestream on the new version of IntelliJ IDEA. We’ll share updates that improve the Spring experience, demonstrate interactive coding with Kotlin Notebook, and highlight many other new features. Set a reminder 👇
add a skeleton here at some point
0
7
1
Google has introduced a new Transformer model called Mixture-of-Recursions, which lets each token go through a different number of processing steps based on how much “thinking” it needs, helping the model use less memory and computation while improving performance.
youtu.be/MfswBXmSPZU
loading . . .
Smaller, Faster, Smarter: Why MoR Might Replace Transformers | Front Page
YouTube video by AIM Tv
https://youtu.be/MfswBXmSPZU?feature=shared
10 months ago
1
1
0
blew the dust off
#langchaiun4j-kotlin
. Kotlin 2.2 and LangChain4j 1.1 ready.
github.com/kpavlov/lang...
loading . . .
Release 0.3.0 · kpavlov/langchain4j-kotlin
Notable Changes Update dependency dev.langchain4j:langchain4j-bom to v1.1.0 by @renovate[bot] in #163 Update kotlin monorepo to v2.2.0 by @renovate[bot] in #164 Remove reports module and update Ko...
https://github.com/kpavlov/langchain4j-kotlin/releases/tag/v0.3.0
11 months ago
0
1
0
A software development team implements a deceptively simple rule: break the build, buy cookies for everyone. What begins as a lighthearted accountability measure slowly transforms into something far more profound — ...
loading . . .
The Cookie Story: When Build Failures Became Sweet Accountability
Twelve developers. One trunk. And a jar of cookies. Zero tolerance for broken builds. Watch as pair programming sessions intensify, commits shrink to surgical precision, and a team discovers that the ...
https://kpavlov.me/blog/the-cookie-story/
11 months ago
1
2
0
reposted by
Konstantin Pavlov
Max Rydahl Andersen
12 months ago
Illusion of Hype -
xam.dk/blog/illusio...
loading . . .
Illusion of Hype - @maxandersen
Apple’s recent paper, The Illusion of Thinking, has sparked a wave of discussions both online and offline. Some have latched onto it as a definitive "g...
https://xam.dk/blog/illusion-of-hype/?nocache
0
3
3
reposted by
Konstantin Pavlov
Max Rydahl Andersen
11 months ago
Had a fun conversation with Mark Sailes about my career in professional opensource - maybe you find some of it interesting too. And go subscribe give a like on Marks new channel!
youtu.be/ePb9O9VDsVA
loading . . .
Your browser is up to date
You can use YouTube's latest features!
https://youtu.be/ePb9O9VDsVA
0
0
1
reposted by
Konstantin Pavlov
Euronews
11 months ago
Poland will start its first-ever pilot of a shortened working week this July as the government seeks to meet social needs.
loading . . .
Poland trials a four-day working week: A step towards the future?
Poland will start its first-ever pilot of a shortened working week this July as the government seeks to meet social needs.
https://l.euronews.com/6YZ
1
20
11
Their system prompts need more refinement and supervision and human approvals while making the decisions, but the business model is seemingly interesting and promising.
add a skeleton here at some point
11 months ago
0
0
0
reposted by
Konstantin Pavlov
Euronews
11 months ago
Anthropic put an AI chatbot in charge of a shop. The results show why AI won’t be taking your job just yet.
loading . . .
An AI chatbot ran a shop for a month. But things got weird very fast
Anthropic put an AI chatbot in charge of a shop. The results show why AI won’t be taking your job just yet.
https://l.euronews.com/ENF
2
27
25
The
#video
of our talk with @maxandersen.xam.dk at
#KotlinConf2025
on
#Quarkus
#LangChain4j
is here!
youtu.be/hxEM5J6QfLY
loading . . .
LangChain4j with Quarkus | Max Rydahl Andersen and Konstantin Pavlov
YouTube video by Kotlin by JetBrains
https://youtu.be/hxEM5J6QfLY?feature=shared
11 months ago
1
1
0
reposted by
Konstantin Pavlov
Eric Deandrea
12 months ago
In case you missed the latest
@langchain4j.dev
release, a new feature that snuck in is
#guardrails
! You can validate LLM input & output!
docs.langchain4j.dev/tutorials/gu...
loading . . .
Guardrails | LangChain4j
Guardrails is an experimental feature. Its API and behavior might change in future versions.
https://docs.langchain4j.dev/tutorials/guardrails
1
6
4
A comprehensive overview of building
#AI
applications with
#LangChain4j
javapro.io/2025/04/23/b...
loading . . .
Build AI Apps and Agents in Java: Hands-On with LangChain4j - JAVAPRO International
Discover how to integrate AI models & LLMs seamlessly in Java using LangChain4j. Beginner or an advanced developer, this hands-on guide walks you through the key features, from basic AI interactions t...
https://javapro.io/2025/04/23/build-ai-apps-and-agents-in-java-hands-on-with-langchain4j/
12 months ago
0
1
0
I wrote a new
#blog
post about why
#testing
#prompts
in isolation isn’t enough 🚨 Your app usually generates prompts on the fly. Static tests miss how it behaves in real-world use. You should test the service itself—dynamic prompt logic, context, full flows
kpavlov.me/blog/llm-eva...
#ai
#testing
loading . . .
LLM Evaluation Testing with promptfoo: A Practical Guide
This article shows how to implement automated testing for LLM applications using promptfoo with a real application server, addressing the challenge that traditional testing methods fail with non-deter...
https://kpavlov.me/blog/llm-evaluation-testing-with-promptfoo-a-practical-guide/
12 months ago
0
1
0
First day at
#DevTalksRomania
. Today I am hosting a workshop on building AI agent on
#Kotlin
,
#LangChain4j
, and
#Quarkus
12 months ago
0
1
0
There are only 103 unique
#LEGO
sets like this, and only 2 happy owners in
#Estonia
:
@antonarhipov.bsky.social
and myself 😎
#KotlinConf25
#Kodee
about 1 year ago
0
1
0
The DevUI is especially useful to play with the ADK
add a skeleton here at some point
about 1 year ago
0
4
1
#JetBrains
#koog
is better with
#koog-sauce
: here is an example how to use Koog and
#SpringAI
together:
github.com/kpavlov/koog...
#AgenticAI
loading . . .
GitHub - kpavlov/koog-sauce: The finishing touch to JetBrains Koog
The finishing touch to JetBrains Koog. Contribute to kpavlov/koog-sauce development by creating an account on GitHub.
https://github.com/kpavlov/koog-sauce?tab=readme-ov-file#basic-usage
about 1 year ago
0
1
0
I am Debugger in baggy jeans. Unleash your inner Duke and win a limited-edition T-shirt!
#Java30WithIntelliJIDEA
www.jetbrains.com/lp/java-30/d...
loading . . .
Debugger in baggy jeans
You squash bugs in oversized hoodies with style. The stack trace fears you.
https://www.jetbrains.com/lp/java-30/debugger-in-baggy-jeans/
about 1 year ago
0
2
0
reposted by
Konstantin Pavlov
Kotlin by JetBrains
about 1 year ago
🎉 KotlinConf is almost here! The opening keynote and an exciting lineup of sessions kick off tomorrow at 9:00 am CEST. Don’t miss the livestream: 👉
kotl.in/conf25-live
loading . . .
KotlinConf'25 – Day 1 Livestream (Feat. Keynote)
KotlinConf is the premier event connecting professional developers and companies shaping the future with cutting-edge technologies. Conference schedule - https://kotlinconf.com/schedule/?day=2025-05-...
https://kotl.in/conf25-live
0
7
2
A simple test for new Google Java Agent Development Kit
#ADK
A
#test
for
@glaforge.dev
's ADK example
glaforge.dev/posts/2025/0...
github.com/mokksy/ai-mo...
loading . . .
https://github.com/mokksy/ai-mocks/blob/main/ai-mocks-a2a/src/jvmTest/java/me/kpavlov/aimocks/a2a/adk/AdkTest.java#L77-L128
about 1 year ago
0
1
1
#Mokksy
AI Mocks 0.4.0 now supports Google
#Gemini
#VertexAI
mocking. Enable deterministic testing with local API simulation - no production dependencies needed. Useful for stable CI/CD with
#AI
components. Docs:
mokksy.dev/docs/ai-mock...
#AITesting
#DevInfrastructure
#Gemini
loading . . .
Gemini
AI-Mocks Gemini is a specialized mock server implementation for mocking the Google Vertex AI Gemini API, built using Mokksy. MockGemini is tested against the Spring AI framework with the Vertex AI Gem...
https://mokksy.dev/docs/ai-mocks/gemini/
about 1 year ago
0
0
0
I found a nice
#AI
#wiki
generator. It helps to understand project structure and architecture, e.g.
deepwiki.com/mokksy/ai-mo...
Free for open-source projects. They are asking to add a badge to README file, and the wiki will be updated weekly
deepwiki.com
loading . . .
mokksy/ai-mo.. | DeepWiki
DeepWiki provides up-to-date documentation you can talk to, for mokksy/ai-mo... Think Deep Research for GitHub - powered by Devin.
https://deepwiki.com/mokksy/ai-mo..
about 1 year ago
0
0
0
reposted by
Konstantin Pavlov
Simon Vergauwen
about 1 year ago
Another
#KotlinConf
around the corner 😍 Not a single edition was disappointing, in fact I went home energised and full of ideas and excitement to build more things in
#Kotlin
. This year will be special for me, since after 4 editions I'll be joining as an employee 😱 Find me at the booth 🥰
add a skeleton here at some point
0
16
3
I've implemented
#Kotlin
#coroutines
support for
#langchain4j-kotlin
. This allows for writing cleaner code with
#suspend-functions
instead of dealing with CompletableFuture. Still experimental, but you may try it here:
github.com/kpavlov/lang...
about 1 year ago
0
0
0
🔥🔥🔥 A big milestone! Congrats, all users and contributors 👏🏻🎉
add a skeleton here at some point
about 1 year ago
0
0
0
Load more
feeds!
log in