Skip to main content

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.
  • client.py — the public, notebook/script-facing MCP client (connect(), HpcClient, on-disk caching). For distilling exploratory agent work into a reproducible notebook that calls a machine's real tool surface directly, instead of a hand-copied SSH script. See the module docstring for the three caching modes (live/lazy/replay).
  • testing.py — smoke-test-only plumbing (Summary, tiers, billing gate) for each machine repo's tests/smoke.py; re-exports call/payload from client.py rather than duplicating them.

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.

Metadata

Release files for hpc-agent-core 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hpc-agent-core 0.5.0
File Size Uploaded Provenance
hpc_agent_core-0.5.0.tar.gz 58.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hpc-agent-core 0.5.0
File Interpreter ABI Platform
hpc_agent_core-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 123.8 kB

Release files / hpc_agent_core-0.5.0.tar.gz

Download URL hpc_agent_core-0.5.0.tar.gz
Size 58.7 kB
Tags Source
SHA-256 checksum
How to use checksums
587642fe5f525af10c0cbcfa07715ff9ee1e3b52848675c671b250e37f3e857f
BLAKE2b-256 checksum
How to use checksums
8775f248ae3c2a1537b1e290df68bdfdcecbc56a396be0560c10d84abb7e1c25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 4, 2026.

Transparency log

Release files / hpc_agent_core-0.5.0-py3-none-any.whl

Download URL hpc_agent_core-0.5.0-py3-none-any.whl
Size 65.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb81cd9a9432e2dd40e9bba0fa54253fb47c2ceb39d333c0699311766cf3288d
BLAKE2b-256 checksum
How to use checksums
8a8fdaca0d8ba76f488c0a63ab4b47024a1e0c6a663a5dcfdc7a2c8a6850902d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 4, 2026.

Transparency log

Security for hpc-agent-core 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hpc_agent_core-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page