Julia repl
Use when running Julia code, managing Julia sessions, or working with Julia projects. Provides guidance on using the Julia MCP server's persistent REPL sessions and background job execution. DON'T FORGET TO LOAD THIS BEFORE USING THE MCP SERVERFrom its SKILL.md
npx -y skills add jacobadenbaum/julia-mcp-plugin --skill julia-replAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.0 KB, as published. Nobody here has run it
Julia REPL
Prefer julia_eval for all interactive Julia work
Use julia_eval instead of running Julia via Bash. The MCP server maintains a persistent Julia session with Revise.jl loaded, so:
- Compilation is amortized across calls
- Code changes are picked up automatically without restarting
- Variables, functions, and loaded packages persist between calls
A PreToolUse hook on Bash will block foreground julia commands and redirect you to julia_eval. Background Bash Julia is allowed with a reminder. Do not fight the hook — use the MCP server.
Timeout and background execution
Default: do not set a timeout parameter at all. The built-in default (60s) handles the vast majority of calls — short computations, tests of a function, plot generation, quick queries. Setting a timeout yourself is almost always wrong:
- Don't set
timeout=0speculatively. Backgrounding has real overhead — the poller spins up, you have to wait on a Bash task, and a 20-second job becomes a multi-step polling dance. If the job turns out to be short, you have wasted time and tokens for no reason. - Only set
timeout=0when you have concrete reason to believe the job will run for minutes or longer — a large training run, a full test suite on a fresh session, heavy precompilation after]add, a long simulation. "It might be slow" is not sufficient; estimate based on what the code actually does. - If a job exceeds the default timeout, it auto-backgrounds — no work is lost — and you can switch to polling then. Let the system tell you a job is long instead of guessing upfront.
- Pkg operations auto-disable the timeout, so you don't need to set
timeout=0for those either.
When a job is backgrounded
julia_evalreturns[BACKGROUNDED] job_id=<id> sentinel=<path>.- A PostToolUse hook prints the exact
poll-sentinel.shBash command to run. - Start the poller immediately with
Bash(command="<provided command>", run_in_background=true). A PermissionRequest hook auto-approvespoll-sentinel.shcommands, so no user confirmation is needed. - The poller streams partial output via
tail -fon a log file written alongside the sentinel. When the job finishes it prints=== SUCCESS ===or=== ERROR ===and exits, which surfaces as a TaskOutput notification. - Then wait. Work on other tasks, plan next steps, talk to the user. The notification will tell you when the job is done — you do not need to check on it.
Do not repeatedly poll job status
Once a background job is running and the poller is attached, do not keep calling julia_job_status or TaskOutput to "check in" on it. This is a common failure mode: the agent polls every few seconds, burning tokens and time, when the poller is already going to notify on completion.
- Default behavior: wait for the poller's completion notification. Do nothing else related to the job until then.
- Only call
julia_job_statusorTaskOutputif (a) the user explicitly asks for a status update, or (b) you genuinely need partial output to decide what to do next (rare — usually you can wait). - Use
julia_job_cancel(job_id)to abort a running job if needed.
Session busy
While a background job is running, julia_eval calls to the same session are rejected. You can:
- Check progress with
julia_job_status - Cancel with
julia_job_cancel - For independent concurrent work, use a background Bash
juliacommand (it won't have the persistent session, but works independently)
Don't restart sessions
Revise.jl handles code changes automatically. A PreToolUse hook on julia_restart will deny the first attempt and allow the second. This is a speed bump, not a wall — only restart if the session is truly broken.