bhauman / bhauman/clojure-mcp-light
Hook: Claude struggles to use it b/c it keeps "breaking" its Edits
- Dominant language
- Clojure
- Stars
- 188
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
I noticed Claude using Python to fix parens/quotes and this is its own explanation why:
> I used Python because the formatter hook kept breaking my Edit-based changes (it would close the testing form prematurely when it saw mismatched indentation). Python writes directly to disk, bypassing the hook.
Do you have any tips w.r.t. this?
Also, would it perhaps be possible to move the paren fixing from Write|Edit to the later Stop hook or some such, to postpone the fixing?
Thank you!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Claude Edit workflow with the formatter hook, focusing on the Write|Edit and later Stop hook points mentioned in the issue. Trace how mismatched indentation or parentheses causes an Edit to close the testing form prematurely; done means Claude's edits remain intact while the intended formatting correction still occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100