Globus Compute logo

Globus Compute

Organization
AI-ModCon
globus-compute

Submit Python functions as jobs to NERSC Perlmutter via Globus Compute. Use this skill when the user wants to login to Globus, send a compute job, check task status, or get results from a remote HPC endpoint. Covers auth, endpoint configuration via Jinja2 templates, job submission with user_endpoint_config, and result retrieval.

Overview

PublisherAI-ModCon
Repositorygenesis-skills
Skill nameglobus-compute
Stars
37
Forks
16
Bundled files
3
LicenseBSD-2-Clause
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by AI-ModCon on GitHub. Read the source before you install it.

Installation

Install the Globus Compute AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/AI-ModCon/genesis-skills/tree/main/skills/amsc-skills/globus-compute
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AI-ModCon/genesis-skills.git /tmp/genesis-skills
mkdir -p .claude/skills
cp -r /tmp/genesis-skills/skills/amsc-skills/globus-compute .claude/skills/globus-compute
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Globus Compute in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Globus Compute on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Globus Compute is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Globus Compute (NERSC)

Submit Python functions to NERSC Perlmutter via globus-compute-sdk using template-capable endpoints and user_endpoint_config for per-job customization.

Setup

bash
uv venv .venv --python 3.13
uv pip install globus-compute-sdk globus-sdk

Python version MUST match the endpoint workers (Perlmutter default: 3.13). Globus Compute serializes functions as bytecode via dill — version mismatch = opcode errors.

CRITICAL: Login requires interactive terminal

Auth uses browser-based OAuth. input() does NOT work from Claude Code. Tell user to run login commands directly in their terminal (not via ! prefix).

Architecture

Local (gc_run.py)                    Globus Compute Service           NERSC Perlmutter
─────────────────                    ──────────────────────           ────────────────
Executor.submit(func,                Routes task to endpoint          Endpoint receives task
  user_endpoint_config={             via AMQP queue                   ↓
    NERSC_ACCOUNT: "m0000",                                          Renders config.yaml from
    OPTIONS: "#SBATCH ...",                                          user_config_template.yaml.j2
    COMMAND: "module load ..."                                       + user_endpoint_config
  })                                                                 ↓
     ↓                                                               sbatch → SLURM allocates node
polls for result ←──────────────── result returns ←───────────────── worker executes func → result

Template-capable endpoint (on Perlmutter)

The endpoint uses user_config_template.yaml.j2 with Jinja2 variables. Users pass values at submit time via user_endpoint_config dict — no need to SSH and edit config.yaml for each job.

Endpoint setup (one-time, on Perlmutter)

bash
ssh <username>@perlmutter.nersc.gov
module load python
pip install --user globus-compute-endpoint

globus-compute-endpoint configure perlmutter
# If prompted, run: globus-compute-endpoint migrate-to-template-capable perlmutter

Edit ~/.globus_compute/perlmutter/user_config_template.yaml.j2:

yaml
engine:
  type: GlobusComputeEngine
  worker_debug: False

  address:
    type: address_by_interface
    ifname: hsn0

  provider:
    type: SlurmProvider

    launcher:
      type: SrunLauncher
      overrides: -c 128

    scheduler_options: {{ OPTIONS }}
    account: {{ NERSC_ACCOUNT }}
    worker_init: {{ COMMAND }}
    cmd_timeout: 120

    nodes_per_block: 2
    init_blocks: 0
    min_blocks: 0
    max_blocks: 1
    walltime: 00:10:00

Do NOT set partition — Perlmutter auto-selects from the -C constraint in OPTIONS.

Start it:

bash
globus-compute-endpoint start perlmutter
# → Endpoint UUID: <uuid>

Template variables

VariableExamplePurpose
NERSC_ACCOUNTm0000NERSC allocation (required)
OPTIONS#SBATCH -C cpu\n#SBATCH -q debugSLURM scheduler directives
COMMANDmodule load python; source activate myenvWorker init commands

Quick start

1. First-time login (user runs in terminal)

bash
.venv/bin/python scripts/gc_auth.py login

2. Configure default endpoint (one-time)

bash
.venv/bin/python scripts/gc_run.py config set-endpoint <endpoint_uuid> --name "perlmutter"

3. Run sample test (get_hostname)

bash
.venv/bin/python scripts/gc_run.py sample \
  --account m0000 \
  --options "#SBATCH -C cpu\n#SBATCH -q debug" \
  --worker-init "module load python"

Expected: SUCCESS: hostname = nid001234 (a Perlmutter compute node)

4. Run a custom function

bash
.venv/bin/python scripts/gc_run.py run my_func.py \
  --account m0000 \
  --options "#SBATCH -C cpu\n#SBATCH -q debug" \
  --worker-init "module load python"

5. Check status / get result

bash
.venv/bin/python scripts/gc_run.py status
.venv/bin/python scripts/gc_run.py result <task_id>

Python API (inline use)

python
from globus_compute_sdk import Executor

def get_hostname():
    import socket
    return socket.gethostname()

endpoint_id = "<endpoint_uuid>"
user_endpoint_config = {
    "NERSC_ACCOUNT": "m0000",
    "OPTIONS": "#SBATCH -C cpu\n#SBATCH -q debug",
    "COMMAND": "module load python",
}

with Executor(endpoint_id=endpoint_id, user_endpoint_config=user_endpoint_config) as ex:
    future = ex.submit(get_hostname)
    print(future.result())  # nid001234

NERSC-specific notes

ItemDetail
AccountAlways pass NERSC_ACCOUNT — no default, jobs fail without it
No partitionNever set partition — SLURM picks from -C constraint
Networkifname: hsn0 (high-speed fabric) in template, not bond0
Python versionLocal and endpoint must match (both 3.13) — bytecode serialization
GPU nodesUse OPTIONS: "#SBATCH -C gpu\n#SBATCH -q debug\n#SBATCH --gpus=4"
CPU nodesUse OPTIONS: "#SBATCH -C cpu\n#SBATCH -q debug"
Debug QOS30 min max, 8 nodes max, high priority — good for testing
Regular QOS48h max — use for real workloads

Auth helper (scripts/gc_auth.py)

bash
.venv/bin/python scripts/gc_auth.py status      # check token (non-interactive)
.venv/bin/python scripts/gc_auth.py login        # interactive login
.venv/bin/python scripts/gc_auth.py token        # print access token
.venv/bin/python scripts/gc_auth.py logout       # remove tokens

Endpoint management (on Perlmutter)

bash
globus-compute-endpoint list
globus-compute-endpoint start perlmutter
globus-compute-endpoint stop perlmutter
globus-compute-endpoint restart perlmutter

Scope

Handles Globus Compute job submission, auth, endpoint config via templates. Does NOT handle: Globus Transfer, Globus Search, other Globus services, academy/exchange framework integration, or endpoint provisioning automation.

Security

Never log or expose access/refresh tokens. Token files are mode 600. Do not commit token databases or config files containing endpoint IDs to git.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Globus Compute AI skill do?

Submit Python functions as jobs to NERSC Perlmutter via Globus Compute. Use this skill when the user wants to login to Globus, send a compute job, check task status, or get results from a remote HPC endpoint. Covers auth, endpoint configuration via Jinja2 templates, job submission with user_endpoint_config, and result retrieval.

Why use Globus Compute on TypingMind?

Because you install it once and use it with any model. Globus Compute is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Globus Compute in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AI-ModCon/genesis-skills/tree/main/skills/amsc-skills/globus-compute. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Globus Compute?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Globus Compute?

As many as you like. As long as a model supports skills, you can use Globus Compute with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Globus Compute AI skill free?

Yes. It is published on GitHub by AI-ModCon under the BSD-2-Clause license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇