Found 12 results
I'm at an AI obsessed company and it’s all about speed. People bragging about letting the LLM build stuff over night. Waking up to AI slop code reviews was a real low point. I ended up stumbling onto a system that runs all PRs through Pocock’s review thing + clj-nrepl-eval to test that code actually does what it’s meant to. All the tests are written in various Clojure dialects (non-Clojure company) and it finds so many bugs. Not saying my system is good btw - just highlights the crap being generated by Claude and the fact that people forgot to spec properly and to QA their stuff. I find the strongest devs where I work are generating a ton of code with sometimes serious issues. The weaker ones are creating all sorts of problems with code that looks ok at a glance but is totally the wrong thing. I'm enjoying keeping my token count up by having it write loads of Clojure. The time I’ve freed up is back to me and Emacs.
I honestly use a very basic workflow with claude code, and mostly rely on my own ad-hoc prompting. I've written skills but the only ones I got a lot of use from were for dealing with specific libraries (rama and electric). I was less impressed with the other skills I made on how to structure work, and I kept getting irritated having to iterate on skills that weren't doing what I wanted so I stopped using most of them. I do find having it grill me is a very effective technique but I haven't used prepackaged skills for that. The main thing in my CLAUDE.md is I teach it about clj-nrepl-eval, and I instruct it to act like we're on the bridge of the starship Enterprise and I am Jean-Luc Picard...
i've encountered the following situation with clj-nrepl-eval from clojure-mcp-light, which can mislead coding agents:
1. clj-nrepl-eval "(require 'x.y :reload) (clojure.test/run-tests 'x.y-test)"
2. test succeeds
3. the x.y ns is edited in a way it's rendered unloadable
4. clj-nrepl-eval "(require 'x.y :reload) (clojure.test/run-tests 'x.y-test)"
the require may fail, but evaluation continues, using the code compiled by the last successful require call,
resulting in passing tests, giving LLMs a false sense of success.
would it make sense, if the evaluation would stop on re-loading a namespace?i've encountered the following situation with clj-nrepl-eval from clojure-mcp-light, which can mislead coding agents:
1. clj-nrepl-eval "(require 'x.y :reload) (clojure.test/run-tests 'x.y-test)"
2. test succeeds
3. the x.y ns is edited in a way it's rendered unloadable
4. clj-nrepl-eval "(require 'x.y :reload) (clojure.test/run-tests 'x.y-test)"
5. require prints an exception
6. tests still run and pass
the require may fail, but evaluation continues, using the code compiled by the last successful require call,
resulting in passing tests, giving LLMs a false sense of success.
would it make sense, if the evaluation would stop on re-loading a namespace?Nice. I am working atm. to make Carp fit Rust's memory model, Carpaccio creates automatic bindings because of this, which I think is optimal to "script" Rust. I added the nrepl support, so you can basically use Carp with an LLM and clj-nrepl-eval to iterate on Rust-based prototypes with Clojure iteration times.
llm-repl is pre-released. I extracted it from my runtime into a stand-alone tool. It can be used as a standard clojure nrepl, as well as the llm-repl. The main use-case is for 1 model to drive another model for testing. nrepl allows multiple attachments. I have been running the tui with bb llm-repl and having my eca agent use clj-nrepl-eval to drive the llm-repl. Feedback welcome. https://github.com/michaelwhitford/llm-repl
llm-repl is released. I extracted it from my runtime into a stand-alone tool. It can be used as a standard clojure nrepl, as well as the llm-repl. The main use-case is for 1 model to drive another model for testing. nrepl allows multiple attachments. I have been running the tui with bb llm-repl and having me eca agent use clj-nrepl-eval to drive the llm-repl. Feedback welcome. https://github.com/michaelwhitford/llm-repl
llm-repl is pre-released. I extracted it from my runtime into a stand-alone tool. It can be used as a standard clojure nrepl, as well as the llm-repl. The main use-case is for 1 model to drive another model for testing. nrepl allows multiple attachments. I have been running the tui with bb llm-repl and having me eca agent use clj-nrepl-eval to drive the llm-repl. Feedback welcome. https://github.com/michaelwhitford/llm-repl
we are driving the cursive repl server from claude code via 2 scripts
1. eval
#!/bin/sh
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
NREPL_PORT_FILE="$SCRIPT_DIR/.nrepl-port"
NREPL_PORT="$(cat "$NREPL_PORT_FILE")"
# Assume $NREPL_PORT is opened on the same host as this script is executing on
# which wouldn't be the case, if we see the $NREPL_PORT_FILE over a network
# filesystem.
if nc -z 0.0.0.0 "$NREPL_PORT"; then
CLJ_EVAL_NREPL="$(which clj-nrepl-eval)"
(cd "$SCRIPT_DIR" && direnv exec . "$CLJ_EVAL_NREPL" --port "$NREPL_PORT" "$@")
else
# Remove presumably stale port file, to prevent AI seeing a stale port number
test -f "$NREPL_PORT_FILE" && rm "$NREPL_PORT_FILE"
cat <
2. start-nrepl-server:
#!/bin/sh
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "${SCRIPT_DIR}"
if [ -f deps.edn ]; then
exec direnv exec . clojure -M:test:dev:nrepl "$@"
else
echo "Missing ${SCRIPT_DIR}/deps.edn"; exit 1;
fi
which is introduced to claude via a /.claude/rules/clj-nrepl-eval.md :
---
origin: ""
---
# Clojure REPL Evaluation
This is a monorepo, containing multiple Clojure modules in subdirectories, each
containing an `eval` script, which you must use to run Clojure code, forms,
expressions, programs via nREPL for that module.
If there is no nREPL server process running for this project, the `eval` script
prints the shell command for starting it.
Ask the user whether they want to run that command and run in the background,
then retry the `eval` without any sleep!
`eval` accepts an optional `--timeout ` argument.
Always provide Clojure code via stdin!
Example:
shell
<module-dir>/eval --timeout 3000 <<'EOF'
(require 'some.name.space :reload)
EOF
Clojure code running in REPL should not read from stdin!
The REPL session persists between evaluations, so namespaces and state is
preserved.
Always use :reload when requiring namespaces to pick up source file changes.```What's your preferred way to receive a repro? clj-nrepl-eval cli with raw ops ok?
it was very simple. launch browser nrepl. tell claude to write tetris using reagami and iterate via the repl (via clj-nrepl-eval, see clojure-mcp-lite). but it didn't need to iterate a lot, just a few seconds
@U064J0EFR I just wanna say that https://github.com/bhauman/clojure-mcp-light/tree/main?tab=readme-ov-file#clj-nrepl-eval-llm-nrepl-connection-without-an-mcp has been really useful for me in combination with #jank's nREPL server. Used it here: https://clojurians.slack.com/archives/C03SRH97FDK/p1772926521725949