Repository navigation
Releases
v0.7.0
Operational parity with ursa-bifrost v0.10.5–v0.10.12 plus native SSH file staging and
download for any Slurm cluster.
- New R1 tool
job_waitand CLIclusterwand wait <id>.... Polls listed jobs or job
arrays until completion ortimeout_s(default 120 s, safely below 180 s MCP client
timeouts; reserves 10 s before any caller deadline so timeouts return structured
{timed_out: true, hint: ...}instead of dropping the call). Streams MCP
notifications/progresswhen requested and automatically includes redacted stdout and
stderr log tails (failure_tails) for failed jobs. - New R1 tool
files_downloadand CLIclusterwand download PATH [--out DIR]. Copies
one regular file (text or binary: PNG, HDF5, CSV...) from the caller's home or scratch
folder toresults_dir/filesover the shared SSH connection, refusing hidden/credential
files, symlinks escaping user roots, and shared public roots. - Local-SSH input staging in
job_submit(inputs,unpack_archives) and CLI
clusterwand submit --input LOCAL[:REMOTE] --unpack. Validates local regular files or
inline text/base64 at prepare time (zero cluster writes), unpacks and checks.tar.gz/
.tgzarchives in Go before confirmation (refusing symlinks,..traversal, non-regular
entries, hidden/credential names, and archive bombs), snapshots the verified archive
bound by SHA-256 intoplan_hash, and streams it into~/clusterwand-jobs/<run>/inputs/
over SSH at confirm time. - Slurm job-array rollups and task selection on both plain-text and
--jsonpaths.
ParseSacctTextandAcctJobnow preserve array parent and task IDs (1650_2),
jobs_list(job_ids=["1650"])expands all array tasks without truncating tolen(job_ids)
and attachesarray_summaryrollups ("3 tasks: 1 COMPLETED, 1 FAILED, 1 RUNNING"),
job_show("1650_2")selects task 2 instead of task 0, andjob_explain("1650")surfaces
failed array tasks automatically. Emptysqueue -jresponses on--jsonnow fall through
cleanly tosacct. script_checkand site-profile upgrades: optionalpartitionoverride parameter
(clusterwand check --partition P),--mem-per-cpux CPUs overflow check, per-member
validation across comma-separated fallback partition lists (-p a,b), partition-scoped
modules (modules.module_partitions), bareapptainer/singularitymodule check and
container CUDA hint, and updatedsites/ursa-major/site.yaml(arm,tpu,tpuspot,
tpu6spot,gpu1v1,python-tpu,pytorch-tpu,public_roots, accuraterule_timeout).- Path, log, status, and duration ergonomics: relative path normalization (
.and
./sub, keeping..strictly denied), site-configurablepaths.public_rootswith strict
symlink containment, duration shorthands (24h,7d,30m,2w,now-1hour,
now-1day),cluster_statusoptionalpartitionfilter, graceful empty-log answers when
a running job has not created its log file yet, and GPU/TPU-aware stockout fallback advice. - Diagnosis rules, MCP annotations, and SSH hygiene:
"untrusted log line: "prefix on
quoted log evidence,swallowed-exceptionwarning when an exit-0COMPLETEDjob logged a
Python traceback,requeuedwarning onRestartCnt > 0pending jobs, CPUoom-log
suppressed on CUDA OOM, last 3 log lines quoted onscript-error,destructiveHint: true
onjob_submit_confirm, andPYTHONPATH/PYTHONHOMEstripped fromsshsubprocesses so
ProxyCommandhelpers (gcloud, Python wrappers) never crash on leaked caller Python envs. - Mutation check: 10 new guards (
v070*).
Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.7.0. Clients: docs/CLIENTS.md.
v0.6.0
Cleanup: ClusterWand's core and spec now describe only what ClusterWand is.
- Removed dead hosted-mode plumbing from the core. None of it was reachable from the
CLI or the stdio MCP server: the cross-user shared cache and single-flight
(SharedCache,Command.public), the per-caller in-flight cap and server-wide
accounting gate (MaxInFlight,Gate), program clients (Program,ProgramOwnCaps,
Principal), sealed A1 state (StateSealer) and the remote-service download refusal.
Every CLI command and MCP tool answers as before: the Ursa Major goldens are unchanged. - Fix: tool descriptions follow cost visibility.
cluster_statusno longer promises
"$/hour" andpartitionsno longer promises a price to a caller who cannot see them
(show_cost: false, a tier outsideshow_cost_tiers, or a site not charged in
dollars). Sites can word both variants (tool_cluster_status_nocost,
tool_partitions_nocost); Ursa Major does. The synthetic SU site'scluster_status
description changed accordingly (its only golden change). - Docs: docs/SPEC.md rewritten as a ClusterWand spec (what it is,
SSH-only identity, site profiles, Slurm adapter, discover, tool catalog as built,
safety model, config, testing, roadmap). The inherited ursa-bifrost spec moved unchanged
to docs/history/URSA_BIFROST_SPEC_v0.10.1.md. - Mutation check: 14 guards for removed code dropped, 2 new (v060*).
Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.6.0. Clients: docs/CLIENTS.md.
v0.5.1
Fixes from a fresh-eyes adversarial review of v0.5.0.
- Fix: job arrays now count against the caps per task.
job_submitpriced an
#SBATCH --arrayjob as one task, so a 1000-task array of one-hour jobs was planned at
1/1000 of its real worst case and passed the per-job and per-day caps;-awas not read
at all. The worst case (andscript_check's estimate) now multiply by the number of
tasks, a spec that cannot be counted is refused, and heterogeneous jobs
(#SBATCH hetjob/packjob, whose later components escape the enforced flags) are
refused. - Fix:
job_resultschecks the job folder itself. A job whose working directory was
hidden or credential-like (~/.config/app,~/secrets/run), or a symlink leading out of
the allowed roots or into such a folder, was listed and readable. The folder is now
resolved on the cluster and checked likefiles_listpaths. - Fix:
audit_path: "-"writes to stderr, not stdout, where it would corrupt the MCP
stdio stream. - Docs: the mutation-guard count is no longer pinned (it said 148).
- Mutation check: 10 new guards (v051*).
Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.5.1. Clients: docs/CLIENTS.md.
v0.5.0
- Live campaign on Ursa Major over plain SSH (docs/LIVE_CAMPAIGN_F4.md):
every R1, R2 and A1 tool through the CLI and the stdio MCP server, 25 negative cases
(injected job ids, path escapes, hidden and credential files, bad module/command/user
names, over-cap submit, bogus and reused confirm tokens), a 10-call parallel burst, one
real two-step submit oncheckread back with the tools, anddiscoverrun live. - Fix:
job_resultshonours the hidden/credential rule. It used to list, read and
download files such as.gitignore,.git/*, macOS._*files orid_*keys inside a
job folder, whichfiles_readrefuses. They are now left out (counted inleft_out), and
a whole-folder download skips them. - New diagnosis rule
build-failure: compiler and linker errors (undefined reference,
collect2: error: ld returned,file.c:12:3: error:) with build advice. Sample is the
real log tail of a failed source build on Ursa. - Confirm-token errors no longer read "[REDACTED] the action again" in the audit log.
- Mutation check: 3 new guards (f4*).
Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.5.0. Clients: docs/CLIENTS.md.
v0.4.0
clusterwand discover --site <name> --host <ssh alias>. Read-only probes on the
login node (sinfo --version,scontrol -o show partition,scontrol -o show nodes,
scontrol show configfiltered to 15 keys,$HOMEand scratch folders named after you,
module -t avail) draftsites/<name>/site.yamlandcatalog.json. Both carry
approved: falseand are refused until a person approves them. Roles are inferred from
facts only (default partition, shortest open partition for env_check, open GPU and
high-memory partitions, CLOUD nodes, AVX2-only features); prices, fallbacks, wording and
help stay for a person to fill in. Never overwrites a profile;--forcereplaces only an
unapproved draft.- Host-key pinning. A profile's
host_keys(discover records the keys your own ssh
already trusts) makes ClusterWand connect withStrictHostKeyChecking=yesagainst those
keys alone (own known_hosts file, own control socket). - Local catalogs.
catalog_file:in your own profile reads a catalog kept next to it
instead of one on the cluster; a draft ("approved": false) is refused. --record DIRwrites anonymised probe fixtures (user, private IPs, account and group
names, people in node reasons replaced);--comparelists differences from a reviewed
profile. Recorded Ursa Major probe intestdata/discover/ursa-25.11.- Mutation check: 23 new guards (f3*).
Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.4.0. Clients: docs/CLIENTS.md.
v0.3.0
- Slurm text adapter. Scheduler reads use plain-text formats by default (
squeue -O,
sacct -Pwith a header,scontrol -o show nodes|partition,sacct -Bfor stored
scripts), which read the same on Slurm 21.08 to 25.11.--json(Slurm 25.11's
data_parser) is opt-in per site:slurm: {json: true}in the site profile. Answers are
identical either way: on the fixtures (every tool, field by field) and live on Ursa Major.
Slurm 21.08 works withoutRestarts/StdOut(a finished job's log path is then unknown,
never guessed).doctorreports the Slurm release instead of probingsinfo --json. - Lab-locked partitions. Partitions limited by
AllowAccounts,DenyAccountsor
AllowGroupsare read live with your associations (sacctmgr show user <you> withassoc) and groups.partitionslists only those you may use (restricted_tomarks
limited ones);script_checkandjob_submitrefuse a partition your account may not
use and name one of your accounts that may (#SBATCH --account=...);interactive_help
and the stockout advice skip them. Unreadable limits hide or refuse nothing. - Tests. Real text recordings from Slurm 25.11.4 (Ursa, anonymized) and 21.08.6
(container); JSON/text parity tests; the v0.2.0 goldens kept as the JSON-path golden;
optionalslurmworkflow runs every text read against containerised Slurm 21.08. - Mutation check: 30 new guards (text reads, parsers, lab-lock rules).
Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.3.0. Clients: docs/CLIENTS.md.
v0.2.1
Release v0.2.1. See CHANGELOG.md.
Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.2.1. Clients: docs/CLIENTS.md.
v0.2.0
- Site profiles. Everything ClusterWand knows about a cluster beyond plain Slurm now
lives in a site profile (internal/site): paths, partition roles and fallbacks, CPU notes,
catalog location, cloud-node wording, charge model and site wording. Ursa Major's is
sites/ursa-major/site.yaml(shipped in the binary;site: ursa-major). Your own:
site_file: ~/.config/clusterwand/mysite.yamlwithapproved: true. No profile: a generic
one (home only, no catalog, no charges, no env_check partition). - Charge models.
usd_per_node_hour(as before),su_per_core_hour(service units per
core-hour per partition, SU caps per job and per day; refuses submits without caps or to
an unpriced partition),none(no cost figures; node, hour and submit caps still hold). - Upgrade note. The default
clusteris no longerursa-major. Ursa users add
site: ursa-major(or keepcluster: ursa-major, which selects the profile).
config initwritessite: ursa-majoras an example. - Tests. Golden tests for every MCP tool, prompt and resource and every CLI renderer:
byte-identical to v0.1.0 on the Ursa fixtures. A synthetic second site (SU charges, other
partitions and paths) checks that no Ursa string or dollar figure leaks. - Fixed: on a non-dollar site, partition prices, job cost, waste and allocation no longer
show figures inusdfields. - Mutation check: 167 guards (12 repointed to moved code, 19 new for site validation and
charge models).
Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.2.0. Clients: docs/CLIENTS.md.
v0.1.0
ClusterWand: the Bifrost between AI and your HPC cluster. First release, forked from
ursa-bifrost v0.10.1 (77cb4cd) with full history, then cut down to SSH only. The local
tools (CLI and stdio MCP) behave as in ursa-bifrost v0.10.1; what changed is names,
layout, docs, and the removal of everything hosted.
- SSH only. ClusterWand runs on your own machine and reaches clusters through your own
OpenSSH config, keys and agent. Removed, with their tests and mutation guards: the hosted
server (serve,internal/server: Streamable HTTP, OAuth 2.1, Google sign-in,
users.yaml, program clients), the IAP/OS Login backend (backend: iap) and the
ssh.gcloudconnect mode, Cloud Storage staging (internal/staging; the tools
results_link,upload_prepare,uploads_listandjob_submitinputs), the ursa-agent
dashboard, the Cloud Run deploy,prototypes/, the Dockerfile and
scripts/onboard_lab.py.interactive_helpnow givesssh <ssh.host>as the way in.
Job results still come to your machine withclusterwand results <id> --downloadover
the same SSH connection. - Renamed. Go module
github.com/UCR-Research-Computing/clusterwand; binary
clusterwand, with awandalias installed byscripts/get.sh,scripts/install.sh
and shipped in release archives (clusterwand_<version>_<os>_<arch>.tar.gz). - New default paths (upgrade note for ursa-bifrost users). Config
~/.config/clusterwand/config.yaml, audit and A1 state under~/.local/share/clusterwand/,
downloads in~/clusterwand-results. Nothing is migrated: copy your old config if you
want it, and drop anyssh.gcloudblock (setssh.hostto an alias instead). Installer
variables areCLUSTERWAND_VERSIONandCLUSTERWAND_DIR. - On the cluster. Submitted jobs run in
~/clusterwand-jobs/<stamp>-<name>(config
jobs_root: clusterwand-jobs), carry the sbatch commentclusterwand:<plan hash>, and the
env_check job is namedclusterwand-env-check. The MCP server name isclusterwand, the
SSH control socketcw-%C. - Docs. New README (60-second fixture demo, laptop + any cluster over SSH, client
setup for Claude Code, Hermes, Gemini CLI, GitHub Copilot, Codex, OpenCode), new
docs/SSH.md (keys, agent, ProxyJump, ControlMaster, MFA once per ControlPersist window),
docs/CLIENTS.md rewritten for stdio, GitHub Pages site published fromdocs/by a new
pagesworkflow,sites/ursa-major/README.md, SPEC fork and SSH-only notes.
examples/mcp_client.pyis now a stdio client. - Repo hygiene. Dependabot for Go modules and GitHub Actions; issue forms ask for the
Slurm version; CONTRIBUTING adds "nothing site-specific in the core". The CIagent
check (required by the ruleset) now checks the Python helper scripts. - Mutation check: 148 guards (219 minus 71 for removed code), all killed.
Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.1.0. Clients: docs/CLIENTS.md.