A Claude Code plugin with hooks for Jolt/Clojure projects.
After every Write, Edit or MultiEdit of a .clj, .cljc, .edn or .jolt
file, the hook runs jolt-lsp on it:
jolt-lsp check --fixcloses a dropped trailing paren or an unclosed form the indentation places, on disk. The repair is reported back so the agent can check where the closers went.jolt-lsp diagnosticslints the file with the project's.clj-kondo/config.ednand.jolt-lsp/config.edn.
Syntax it cannot repair, or any error-level finding, blocks: Claude gets the
file:line:col list and fixes the file. Warnings come back as context
without blocking. Nothing outside the edited file is reported.
It needs jolt and jolt-lsp on PATH (or JOLT / JOLT_LSP naming
them). Without jolt-lsp the hook does nothing.
claude plugin marketplace add /path/to/jolt-claude-plugin
claude plugin install jolt-claude@jolt-claude-pluginjolt-claude.kimi runs the same checks under Kimi Code's hooks, and
jolt-kimi-plugin wires it
up. Kimi drops a PostToolUse hook's output, so the work moves to the hooks
that can block:
- PreToolUse (Write, Edit) refuses a change that would leave the file unreadable as Clojure, with the position.
- PostToolUse repairs a dropped closer on disk and notes the file.
- Stop lints the files changed since the last stop and blocks on errors, so the agent fixes them before it finishes.
jolt test
echo '{"tool_input":{"file_path":"/abs/path/src/a/core.clj"}}' | bin/jolt-claude-hookThe idea of mechanical paren repair and a lint gate on every write comes from clojure-agent-starter and clojure-mcp-light; this plugin uses jolt-lsp for both and shares no code with either.