Skip to content

About

Claude code plugin for Jolt

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

jolt-claude-plugin

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:

  1. jolt-lsp check --fix closes 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.
  2. jolt-lsp diagnostics lints the file with the project's .clj-kondo/config.edn and .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.

Install

claude plugin marketplace add /path/to/jolt-claude-plugin
claude plugin install jolt-claude@jolt-claude-plugin

Kimi Code

jolt-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.

Develop

jolt test
echo '{"tool_input":{"file_path":"/abs/path/src/a/core.clj"}}' | bin/jolt-claude-hook

The 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.

About

Claude code plugin for Jolt

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages