I just released the first usable version of my new library Introspekt.
It is a Kotlin Multiplatform library/compiler plugin for compiler reflection on every KMP target.
It also has a positional code API and tracing similar to Rust's trace crate.
https://github.com/karmakrafts/Introspekt