The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.
Kotlin — LSP setup
- Builtin server:
kotlin-ls—kotlin-lsp --stdio - Extensions:
.kt .kts - Install hint:
https://github.com/Kotlin/kotlin-lsp
Install
The official JetBrains Kotlin LSP is pre-release. Download a build from the Kotlin/kotlin-lsp releases and put the kotlin-lsp launcher on PATH.
- macOS: Download the release archive, extract, then symlink the launcher:
ln -s /path/to/kotlin-lsp/kotlin-lsp.sh /usr/local/bin/kotlin-lsp - Linux: Same as macOS — extract the release and place/symlink
kotlin-lspon PATH. - Windows: Extract the release and add the directory containing
kotlin-lsp.batto PATH (invoke askotlin-lsp).
Requires a JDK on the machine to run the server.
Confirm it resolves:
command -v kotlin-lsp
Configure
Builtin — usually NO config needed (auto-resolved by extension). Configure only to set priority, init options, override extensions, or disable. Same JSON shape in every harness's project config (per-harness paths: the Configure step in SKILL.md):
{ "lsp": { "kotlin-ls": { "priority": 100 } } }
For builtin ids in a PROJECT config, command is supplied automatically — only set priority/initialization/extensions/disabled (a project entry drops env). env, and a fully custom (non-builtin) server with its own command, must go in your harness's USER config (see the Configure step in SKILL.md).
Initialization options (only if commonly needed)
None commonly required. If kotlin-lsp cannot find a Java runtime, set JAVA_HOME (USER config only; a project entry drops env):
{ "lsp": { "kotlin-ls": { "env": { "JAVA_HOME": "/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home" } } } }
The server resolves classpath from Gradle/Maven; keep the build descriptor importable.
Alternatives
fwcd/kotlin-language-server— older community server (not builtin). Still usable but less actively maintained than the official JetBrains one.
Troubleshooting
- PATH:
kotlin-lspon PATH; reopen shell after install. - Pre-release churn: the JetBrains server is early; pin a known-good release and expect occasional breakage.
- No JDK: server fails to start — install a JDK and/or set
JAVA_HOME. - Slow first import: Gradle resolution on first open can be slow on large projects; let it complete.
.ktsscripts: build/script files resolve more slowly than.ktsources; this is expected.
Verify
bun ../../scripts/verify-lsp.ts path/to/File.kt