Claude Code + Codex CLI plugin · solid_gemc_claude

Describe a SoLID simulation. Run it. Analyze it.

One orchestrator skill and bin/solid-gemc-run. solid_gemc, GEMC, Geant4, and ROOT run inside a pinned JLabCE 2.5 container; analysis stays on the host, in Python.

v0.0.6 2026-05-30 · GitHub → solid_gemc upstream →

See it in action

Two browser-readable reports produced end-to-end by the plugin — same orchestrator, same bin/solid-gemc-run, two very different physics goals.

Install

In Claude Code:

/plugin marketplace add zhaozhiwen/solid_gemc_claude
/plugin install solid-gemc-claude@solid-gemc-claude

In Codex CLI:

codex plugin marketplace add zhaozhiwen/solid_gemc_claude
codex plugin add solid-gemc-claude@solid-gemc-claude

/plugin update (Claude) handles upgrades. Apptainer ≥ 1.4 must already be on the host; the plugin pulls its pinned .sif on first use via wget.

Quickstart

There are no slash commands. The solid-gemc orchestrator skill auto-loads on any SoLID-flavored request (Claude Code or Codex CLI), gap-checks a seven-field spec (project name, physics goal, SoLID config, beam, GCard, output, analysis), shows a plan, and runs it on approval — driving everything through bin/solid-gemc-run (bootstrap the workspace, pick + edit a GCard, run solid_gemc, convert EVIO → ROOT, record provenance, plot).

Ask your harness something like:

Learn the examples at solid_gemc repo "solid_gemc/analysis/hgc_study/" and "solid_gemc/geometry/hgc_moved/",
Do the heavy gas Cherenkov simulation on SIDIS He3 moved configuration with 1000 events of 5 GeV pi- at 10 degree theta angle and full phi angle,
then plot number of photoelectron yield in various illustrative ways,
verify the sim result with physics analytic calculation,
finally show me the results in an html file

init runs once as a one-shot bootstrap (pull the .sif, clone solid_gemc, run both scons builds, scaffold a workspace) — automatically on first use, or when you ask to “init solid-gemc-claude”. After it, two upstream worked examples live in your workspace, both self-contained:

Example What it teaches
solid_gemc/analysis/hgc_study/ the config + run + analyze pipeline — GCards, batch run scripts, ROOT analysis macros
solid_gemc/geometry/hgc_moved/ custom detector authoring — Perl generators, the factory text files they emit, and the GCard wiring

bin/solid-gemc-run analyze runs/<id> produces uproot plots from the post-converted out.root. bin/solid-gemc-run shell drops you into a tcsh prompt with the env exported, to follow upstream’s scripts directly.

What it does

Requirements

Acknowledgments