A C/C++ language server written in C++23 on LLVM/Clang, with per-worker crash isolation, C++20 module support and persistent PCH/PCM caching
- Language
- C++
- License
- Apache-2.0
- Stars
- 1.6K
clice, an open-source language server for C and C++, reached version 1.0 on November 15, its developer ykiko announced in a release post. It's built on LLVM/Clang but isn't a fork of clangd. The author says it was redesigned from scratch to fix architectural problems in clangd and ccls. The repository is Apache 2.0 licensed. It had about 1,620 stars on November 16, according to GitHub's search API. The release reached the Hacker News front page on Sunday.
Why it matters: clangd is the language server behind autocomplete, go-to-definition and diagnostics for most C++ developers using VS Code, Neovim, Zed and similar editors, and its maintenance is thin. In the release post, ykiko cites Clang lead maintainer Aaron Ballman, who wrote on the LLVM forum this year that clangd is "very close to unmaintained". ykiko's own view is that it has been "effectively unmaintained" since about 2024. A credible stable alternative is therefore news for a lot of C++ teams.
What clice does differently
All of these are the project's own descriptions, taken from the release post and the README:
| Area | clice's approach | What it says about clangd |
|---|---|---|
| Crashes | Each compile runs in a separate worker process from a pool, like a browser's tab processes. A crash kills one worker and the rest of the server keeps going | A compiler crash takes down the whole server |
| C++20 modules | Scans dependencies from compile_commands.json, builds modules lazily, and caches PCH/PCM files on disk across sessions. Supports C++23 import std |
Module support is limited and has no persistent cache |
| Headers | Compiles a header in the context of a file that includes it. You can pick which include site or build configuration (e.g. debug vs release) is active | Non-self-contained headers are a known pain point |
| Templates | A "pseudo-instantiator" resolves dependent names without concrete template arguments, so Find References, Go to Implementation and Call Hierarchy work on dependent calls | — |
| Setup | Probes more than 50 toolchains automatically, so fewer hand-written compiler flags are needed | Users often maintain manual flag lists |
In the post, ykiko shows a file where requesting completion crashes Clang every time. clangd crashed five times, after which the VS Code extension stopped restarting it and hover stopped working. clice lost only the one worker.
The server also ships eight command-line subcommands: index, lint, format, command, query, refactor, analyze and modularize. The last one generates module wrappers for third-party libraries. The author used it to convert clice's own headers into module partitions, and thinks it's the subcommand most likely to be useful to AI coding agents.
Platforms and editors
The README lists builds for Linux, macOS and Windows, each on x64 and ARM64. Editor support:
- VS Code: a Marketplace extension (849 installs when we checked) that bundles the server binary. Cursor, VSCodium and Windsurf get it from Open VSX.
- Neovim 0.11+:
vim.lsp.enable('clice')with nvim-lspconfig. - Zed: load the
editors/zedfolder as a local extension. - Anything else: point your LSP client at
clice serve.
Your project needs a compile_commands.json. With CMake, that means configuring with -DCMAKE_EXPORT_COMPILE_COMMANDS=ON. The extension page warns that running clice next to Microsoft's C/C++ extension, clangd or ccls gives you duplicate completions and diagnostics. clice offers to switch off their language features, and cpptools keeps its debugger.
What's unproven
- No benchmarks. The post says clice "surpasses clangd" in performance, but gives no numbers for speed or memory. Neither independent write-up we read (LavX, DEV) did any testing. We've seen a performance figure for clice in one aggregator that doesn't appear in the release post, and we haven't used it.
- Bus factor. ykiko estimates nearly 3,000 hours over about 2.5 years. The project has passed 1,000 commits, with nightly builds since July 19 and about four months of alpha testing. He says earlier contributor interest didn't turn into lasting help. He plans to keep maintaining clice "at a lower intensity", focused on bug fixes, and says he may step back from programming for a while.
- Young release line. It's a 1.0, but it has been public for only a few months. The author himself says the wider C++ modules ecosystem is still awkward to use.
Who should try it
Teams already on C++20 modules, or anyone whose clangd keeps crashing on heavy template code, have the most to gain. DEV's advice is sensible: try it on a secondary repository first, keep clangd installed, and file issues. Don't move a whole team over until you've seen how clice handles your codebase and how quickly bugs get fixed after the 1.0.
Sources
- ykiko — clice v1.0 Released: Welcome to Modern C++ ykiko.me
- GitHub — clice-io/clice github.com
- Visual Studio Marketplace — clice vscode marketplace.visualstudio.com
- LavX News — ykiko releases clice 1.0, a C++ language server built in modern C++ news.lavx.hu
- DEV Community — Clice 1.0 ya aísla cada archivo C++ en su propio proceso dev.to