Skip to main content

Shared runtime for the HPC MCP agent family: SSH middleware, PSI/J-style job models, scheduler backends, docs RAG, doctor, and serving, reused across per-machine plugins (Rikyu, HOKUSAI, Octopus, ...).

Project description

hpc-agent-core

Shared runtime behind the RIKEN family of HPC agent plugins — Claude Code / Codex plugins that let an agent submit and monitor jobs, manage files, and search documentation on a supercomputer over SSH.

Used by:

Building a new agent for a new cluster? Read PORTING.md.

PORTING.md is the complete porting guide — what facts to gather about a machine, how to wire up config.py/compute.py, what the MCP tool surface should look like, and how to validate a port before calling it done. If you're an agent (or a person) about to build a new machine repo on top of this package, start there, not here.

What's here

  • config.py — settings resolution (env var > config file > default).
  • middleware.py — the SSH execution layer; the only thing that talks to the cluster.
  • models.py — PSI/J-style job models (JobSpec, ResourceSpec, Job, ...).
  • compute/slurm.py, compute/gridengine.py — config-driven scheduler backends (script rendering, submit/status/cancel).
  • rag/ — the docs-search pipeline: BM25 keyword search, with optional vector embeddings, over a machine's bundled guide.
  • docs_server.py, doctor.py, serving.py, mcp_server.py — the generic MCP plumbing. A machine repo mostly just supplies its own facts, guide, and tool surface on top of these.

Tool surface: the IRI Facility API

Each machine's MCP tool surface is meant to mirror the IRI Facility API (the DOE standard this family targets — not vendored here; fetch it fresh when checking coverage). See IRI_CHECKLIST.md for how that spec's capability groups map onto what this package provides versus what a machine repo still has to write itself. Coverage verdicts (implemented/deferred/why) are machine-specific and live in each machine repo's own IRI_CHECKLIST.md, not here.

Development

python3 -m venv .venv && .venv/bin/pip install -e .

No machine repo depends on an unreleased local copy of this package, so there isn't a meaningful smoke test to run standalone — validate changes against a real machine repo (tests/smoke.py) before releasing.

License

AGPL-3.0-or-later — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hpc_agent_core-0.4.13.tar.gz (51.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hpc_agent_core-0.4.13-py3-none-any.whl (57.8 kB view details)

Uploaded Python 3

File details

Details for the file hpc_agent_core-0.4.13.tar.gz.

File metadata

  • Download URL: hpc_agent_core-0.4.13.tar.gz
  • Upload date:
  • Size: 51.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hpc_agent_core-0.4.13.tar.gz
Algorithm Hash digest
SHA256 e87a6c7e6d89709b5575f30e483fe1fc04b1906c264dcdf7853922e8386a0ca4
MD5 b00cbe375ca56628c7be3516fd234d49
BLAKE2b-256 6cd0c0c30517b480fea03915b2db4eb6054aafe40ba1a0182d8fbcc3b5ea2171

See more details on using hashes here.

Provenance

The following attestation bundles were made for hpc_agent_core-0.4.13.tar.gz:

Publisher: publish.yml on william-dawson/hpc-agent-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hpc_agent_core-0.4.13-py3-none-any.whl.

File metadata

  • Download URL: hpc_agent_core-0.4.13-py3-none-any.whl
  • Upload date:
  • Size: 57.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hpc_agent_core-0.4.13-py3-none-any.whl
Algorithm Hash digest
SHA256 6a47a6b81581fe0e10f6ef3aa7b3c0fe05e0e1ce46f3c53694f5b7b62fbc5c52
MD5 620e2e10e3daec72426b407a716b370a
BLAKE2b-256 1ed45681863b14d0fe779171d804c345dd5a97b70dcc19802ee007611c45afbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for hpc_agent_core-0.4.13-py3-none-any.whl:

Publisher: publish.yml on william-dawson/hpc-agent-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page