releases

dan.lentz 2026-04-20T15:15:07.575939Z

clj-xref 0.1.1 — LLM/Coding Assistant friendly cross-reference database for Clojure code. https://github.com/danlentz/clj-xref Have your coding assistant find precise dependency neighborhoods — every caller, every callee, every protocol implementation of a given var — instead of repeatedly searching whole source trees. Built on clj-kondo static analysis. The project is still evolving, but the goal is consistent: fewer tokens, less context, better answers. Informal benchmarks on its own codebase measure 66-80% fewer input tokens when giving Claude xref-guided context vs feeding the whole src/ tree. The 0.1.1 release focuses on AI-assistant integration: - /xref slash command for Claude Code (drop-in at .claude/commands/xref.md) - CLAUDE.md project guidance snippet — teaches Claude to invoke xref proactively before signature changes, deletions, and refactors - New CLI: clj -M:xref who-calls ns/fn, unused, graph ns/fn, etc. Other queries:

/xref calls-who myapp.web/handler
 /xref who-implements myapp.protocols/Billable                                               
 /xref who-dispatches myapp.events/handle-event                                               
 /xref who-macroexpands myapp.macros/defroutes 
 /xref ns-dependents myapp.db.core                                                     
 /xref call-graph myapp.core/main                                                      
 /xref unused           
 /xref apropos process                                                                  
Also in 0.1.1: derived queries (unused-vars, call-graph, apropos), DOT/Graphviz output, incremental analysis (:only), and best-effort generation that tolerates clj-kondo edge cases. Release notes: https://github.com/danlentz/clj-xref/releases/tag/0.1.1