Meirdrarel

Clangd Nav — AI skill for Claude Code

AI community

clangd LSP proxy for AI coding agents (Claude Code, opencode): navigation only — definitions, references, hover, symbols, call hierarchy — with diagnostics filtered out and automatic clangd + compile_.

How to install Clangd Nav

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Meirdrarel/clangd-nav and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Clangd Nav does

clangd LSP proxy for AI coding agents (Claude Code, opencode): navigation only — definitions, references, hover, symbols, call hierarchy — with diagnostics filtered out and automatic clangd + compile_commands.json discovery for CMake builds.

Alternatives in AI

  • Iwe — Markdown knowledge graph — LSP for your editor, CLI + MCP memory for your AI agents 1.8k ★
  • Empryo — Empryo issue tracker + SoulForge (v2) 1.1k ★
  • Model Hierarchy Skill — Cost-optimized model routing based on task complexity 333 ★

README

clangd-nav

clangd for **navigation only**, for coding agents such as Claude Code and opencode: definition, references, hover, symbols, implementations, call hierarchy. No diagnostics.

**Status: alpha.** The proxy and the clangd and compile database lookup work. `--doctor`, `--self-test` and `install` are planned, see the [roadmap](#roadmap).

MIT licensed, see [LICENSE](LICENSE).

Why

  • Diagnostics are often owned elsewhere. Many C and C++ projects run clang-format and clang-tidy through their own scripts and enforce them in a commit hook or CI. Another stream of the same findings after every edit is noise to an agent, and the two can disagree.
  • clangd has no switch to turn diagnostics off. --clang-tidy=false stops clang-tidy, but compiler errors are still pushed. So clangd-nav is a proxy on stdio between the client and clangd that removes diagnostics and passes everything else through unchanged.
  • Claude Code can drop diagnostics by itself, opencode cannot. A Claude Code plugin's lspServers entry accepts "diagnostics": false. opencode has no such switch per server. clangd-nav filters for every client; in a Claude plugin, set the flag as well.
  • Finding the right clangd and compile database. An agent launches one fixed command. For a CMake project, that command has to pick the clangd the project pins and the build tree that holds compile_commands.json, or navigation silently stops at the first project header.
  • The IDE is unaffected. An IDE starts its own clangd, with the project's .clangd, at full features.

Install

Requires Python 3.11 or later, and clangd.

uv tool install git+https://github.com/Meirdrarel/clangd-nav

This puts `clangd-nav` in `~/.local/bin`, with its own Python. `pipx install` works too.

Claude Code

In a plugin's `.claude-plugin/plugin.json` (or its marketplace entry):

"lspServers": {
  "clangd-nav": {
    "command": "clangd-nav",
    "extensionToLanguage": {