Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

HDF5 h5dump

$ h5dump Foundation Low Risk
The HDF Group · Database & Data · BSD-3-Clause · macos / linux / windows

h5dump is the official HDF5 utility from The HDF Group for examining .h5 / .hdf5 containers—printing object headers (-H), slicing specific datasets (-d), or exporting XML (-x) and binary/ASCII outputs (-o).

FCRS-1.0 Score
68 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install hdf5
CLI vs MCP Decision CLI Only

Inspects HDF5 group hierarchies, tensor shapes, and attributes (h5dump -H) locally without writing Python h5py scripts.

Agent-Readiness Checklist

— JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 13 / 25

Non-interactive, but emits custom HDF5 DDL text or verbose -x XML with zero JSON support, and bare h5dump file.h5 floods stdout with full arrays.

  • No JSON output (DDL text or -x XML only)
  • Unbounded stdout dump unless -H or -s/-c slicing is passed
Trust & Safety 24 / 25

Strictly read-only inspection unless -o <file> is explicitly used to export dataset values.

  • Read-only inspection; explicit -o for file export
Setup & Portability 10 / 15

Available via Homebrew and system package managers, though tied to native HDF5 C library builds.

  • Native C toolchain (brew install hdf5)
Utility & Efficiency 9 / 15

Handy for quick -H header/shape checks on ML/scientific .h5 files, though h5py or vitables is needed for structured JSON transforms.

  • Fast header (-H) and hyperslab (-d -s -c) inspection
Maintenance & Lineage 7 / 10

Maintained by The HDF Group (HDFGroup/hdf5) under permissive BSD-style license.

  • Official HDFGroup/hdf5 repository
Docs & Verifiability 5 / 10

Legacy reference manuals with dense hyperslab flag syntax (-s, -S, -c, -k) that agents easily misquote.

  • Dense legacy CLI syntax in HDF Group docs

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None; operates purely on local .h5 / .hdf5 files.

Side Effects
Read-Only Local Write
Cost & Quotas

Permissive BSD-style open-source license from The HDF Group; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# HDF5 h5dump Agent Rules
- ALWAYS pass `-H` (header-only) or `-n` first; running `h5dump file.h5` without `-H` dumps every array element to stdout.
- Use `-d <dataset_path>` with hyperslab slicing (`-s`, `-c`) when reading values.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect HDF5 hierarchy and tensor shapes without data
h5dump -H model.h5

Prints groups, dataset paths, datatypes, and dimensions (-H header-only) without dumping multi-megabyte tensor values.

Dump a single sliced dataset subset
h5dump -d /metrics/loss -s 0 -c 10 results.h5

Selects dataset /metrics/loss with hyperslab start (-s) and count (-c) bounds.

Controlled Writes & Previews

Export a dataset to an ASCII text file
h5dump -d /table/values -y -o values.txt data.h5

Writes raw values (suppressing indices with -y) to values.txt.

Strengths for Agents

  • + h5dump -H inspects deep HDF5 group hierarchies and tensor dimensions without touching array payloads.
  • + Standard pre-installed or package-managed utility in HPC and ML environments.

Caveats & Pitfalls

  • ! Zero JSON output—only HDF5 DDL text or XML (-x).
  • ! Running h5dump <file> without -H can print millions of floating-point numbers into agent context.
  • ! Flag ordering matters (e.g., -H must precede -d in older releases).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI