HPC Assistant
Agent-agnostic HPC Assistant for AMD GPU systems — site-specific skills, a RAG knowledge base, and an inference proxy for HPC login nodes.
The HPC Assistant brings safe, site-aware AI coding agents to HPC systems where direct LLM
API access and pip install are typically unavailable. It ships site-specific skills for
Slurm, quotas, AMD GPU profiling and energy measurement; a RAG knowledge base served over
MCP; and an Anthropic-to-OpenAI proxy so you can route through alternative backends such as
Aitta on LUMI. Skills are plain markdown that works with Claude Code, OpenCode and other
frameworks, and the target is AMD Instinct GPU workloads on systems such as LUMI and
Frontier.
Features
- RAG knowledge base — a managed remote MCP (the
LUMI AI Factory MCP
is the default on LUMI) or a local ChromaDB built from cloned HPC docs (the default on
Frontier, from the OLCF Frontier User Guide)
- Agent skills — Slurm job management, resource and quota commands, GPU profiling with
rocprofv3, energy profiling with Omnistat, and GPU frequency and power-cap experiments
on Frontier
- Runs where you want it — on your own machine against the cluster over SSH, or on the
login node itself
- Agent-agnostic — generic skill format; Claude Code and OpenCode supported, others
addable
- Login-node friendly — no
pip install required; Python dependencies run inside
Singularity or Apptainer containers
Supported HPC sites
| Site | Skills | Knowledge base | Documentation |
|---|
| LUMI | Profiling, Resource Management, Slurm Job Management, Energy Consumption Profiling | Remote MCP (LUMI AI Factory, default) or local ChromaDB | LUMI User Guide |
| Frontier (OLCF) | Profiling, Resource Management, Slurm Job Management, Energy Consumption Profiling, Frequency and Power Capping | Local ChromaDB, built by hpc-assistant-init on first run | Frontier User Guide (source) |
Frontier is supported on the login node (option B below). Local mode
and the remote-MCP knowledge base are LUMI-only for now.
Quick start
Prerequisites. An agent framework, and Python 3.10+ for local mode.
Install OpenCode
(the default):
curl -fsSL https://opencode.ai/install | bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
Or Claude Code:
curl -fsSL https://claude.ai/install.sh | bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
You also need an API key for whichever inference backend you choose.
Singularity or Apptainer is needed only for the on-cluster extras — the knowledge-base
containers and, for Claude Code with Aitta, the proxy.
Then clone this repository:
git clone https://github.com/silogen/hpc-assistant.git $HOME/hpc-assistant
Decide where the agent runs. In local mode it runs on your own machine and uses the
login node only for scheduler and file operations, which keeps recursive listing and
content search off the parallel filesystem. That is the recommended placement. Run it on
the login node instead when you need to work directly against data that cannot leave the
cluster.
A. Local mode — agent on your own machine (recommended)
Set up SSH multiplexing, then run one command inside a local clone of your project:
# 1. In ~/.ssh/config — without this, every operation opens a new SSH connection
# Host lumi
# HostName lumi.csc.fi
# User <your-username>
# ControlMaster auto
# ControlPath ~/.ssh/cm-%r@%h:%p
# ControlPersist 10m
ssh lumi true && ssh -O check lumi
# 2. Installs the bridge that gives the agent its cluster tools, configures the
# project, and verifies the connection. --remote-host is the Host alias from
# step 1, so these two have to agree.
cd ~/projects/myapp
$HOME/hpc-assistant/scripts/hpc-assistant-local-setup \
--remote-host lumi \
--remote-root /scratch/project_465000000/myuser/myapp \
--account project_465000000
# 3. Run the agent locally
export ANTHROPIC_API_KEY=your-key-here
opencode
The bridge installs into a virtualenv of its own; re-running the command is how you upgrade
it. Nothing is installed on the cluster.
B. On the login node
For sites that install this repository on a shared path, the Lmod module plus
hpc-assistant-init is the shortest route. It copies skills and agent config into your
project directory without prompting for credentials or starting containers:
module use $HOME/hpc-assistant/modulefiles
module load hpc-assistant