I had a bit of fun with codex adding a native cli to my kotlin multiplatform ktsearch client for opensearch and elasticsearch. The first version builds on the several years of effort I've put into making this client really feature complete.
Works great on mac/linux and produces native binaries for these platforms. You can fall back to running java -jar on other platforms. There's also an experimental wasmjs build that I haven't tested much.
Uses the execellent clikt library for command line argument parsing so it has a rich command and subcommand structure and autocomplete for bash/zsh. Perfect for doing ops on clusters, querying your data. Or indeed plugging this into codex, claude, or openclaw for interrogating your clusters. I have a prefab skill snippet that you can drop into your agentic tools of choice for this.
https://github.com/jillesvangurp/kt-search/tree/master/ktsearch-cli
It's also a nice demo of how suitable Kotlin is becoming for writing nice little command line tools.