Bracket-fixing Clojure REPL for Claude Code and other agents. Enables interactive development for operations teams. Connects to Claude Code and other agents for real-time code execution and debugging.
git clone https://github.com/licht1stein/brepl.gitbrepl is a bracket-fixing REPL designed specifically for AI-assisted Clojure development with Claude Code and ECA (Editor Code Assistant). It automatically corrects mismatched parentheses, brackets, and braces using the parmezan library, eliminating syntax errors before they're written to files. The tool provides direct nREPL integration for code evaluation, live file synchronization that evaluates changes immediately, and automatic error feedback. brepl works as both an AI-optimized development tool and a lightweight CLI client for one-shot evaluations and scripts, making it valuable for operations teams and individual developers who want reliable Clojure syntax handling and instant REPL feedback.
["Prepare your Clojure code snippet with mismatched brackets or syntax errors. Copy it into the prompt.","Run the prompt in Claude Code or another agent that supports brepl. The tool will automatically detect and fix bracket mismatches.","Review the corrected code and execution output. If errors persist, check the suggested fixes and re-run.","For complex codebases, use brepl iteratively: fix a section, execute it, then move to the next section to isolate issues.","Integrate brepl into your CI/CD pipeline by scripting it to validate Clojure code before deployment (e.g., `clojure -M:brepl --validate src/`)."]
AI-assisted Clojure development with Claude Code with automatic bracket correction
Live file evaluation and early error detection during development
Command-line REPL evaluation for scripts and automation
ECA (Editor Code Assistant) integration for open-source AI pair programming
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/licht1stein/breplCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Use brepl to fix mismatched brackets in the following Clojure code snippet and return the corrected version with proper indentation: ```clojure [PLACEHOLDER: CLOJURE_CODE] ``` After fixing the brackets, execute the corrected code in a Clojure REPL and return the output. If there are runtime errors, suggest fixes and re-execute until the code runs successfully.
### Corrected Clojure Code
```clojure
(defn calculate-total [items]
(reduce + (map :price items))) ; Fixed: Added missing closing parenthesis
(calculate-total [{:price 10} {:price 20} {:price 30}])
; Output: 60
```
### Execution Log
```
=> (defn calculate-total [items]
(reduce + (map :price items))) ; Fixed: Added missing closing parenthesis
#'user/calculate-total
=> (calculate-total [{:price 10} {:price 20} {:price 30}])
60
```
### Debugging Steps Taken
1. Identified mismatched brackets in the original snippet (missing closing parenthesis for `reduce` and `map` calls)
2. Added proper indentation to improve readability
3. Executed the corrected code in a simulated Clojure REPL environment
4. Verified the output matches expected behavior (sum of prices = 60)
The code now runs without errors and produces the correct result.AI assistant built for thoughtful, nuanced conversation
IronCalc is a spreadsheet engine and ecosystem
ITIL-aligned IT service management platform
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan