Repository navigation
Releases
v0.3.2
Maintenance release. No new skills, no code changes in the skills' analysis logic, and no tolerance changes.
Changes since v0.3.1
- NumPy 2.5.5 in five skill environments (#10).
design-optical-systemsstays on NumPy 2.4.6 becausenumba0.66.0 requires NumPy below 2.5. - JAX/JAXLIB 0.12.1 for
analyze-optical-designs(#11). - RayOptics pin moved from
5009d933to383f38f4forcross-check-optical-designs(#12): upstream sign fix in Welford's intersection function, non-zero fallback for flat surfaces, no error on blocked chief rays or missing real-height fields, and XDAT-style.zmxparsing. The pinned code manifest was updated to match. - Roadmap: radiometric calibration is the near-term focus, starting with detector nonlinearity in v0.4 (#13). Added an Optiland pin-update item for the first stable release after 0.6.3.
- README and
docs/reproduce-cooke.md: a reproducible Cooke triplet case where one.zmxgives two EFLs (49.999783 mm in Optiland 0.6.3, 50.000394 mm in RayOptics), with a recorded diagnosis report underdocs/examples/cooke/(#14). - Plugin and marketplace descriptions now mention radiometric calibration. Version 0.3.2 in
pyproject.toml, the plugin manifests andoptics_agent_skills.__version__(reported by the MCP server).
Full diff: v0.3.1...v0.3.2
v0.3.1: dependency security patch
A dependency security patch. It updates five transitive pins to resolve the 99 open Dependabot alerts. Code, skills and numerical results are unchanged; the MCP server now reports version 0.3.1.
Updated pins
| Package | Before | After | Environment |
|---|---|---|---|
| Pillow | 12.3.0 | 13.0.0 | design-optical-systems, cross-check-optical-designs |
| urllib3 | 2.7.0 | 2.8.0 | design-optical-systems, cross-check-optical-designs |
| certifi | 2026.7.22 | 2026.11.20 | design-optical-systems, cross-check-optical-designs |
| Tornado | 6.5.10 | 6.6.1 | cross-check-optical-designs |
| setuptools | 83.0.0 | 84.2.1 | analyze-optical-designs |
No other pins moved, and pip check is clean in all three environments. If you installed v0.3.0, recreate these three environments from the new requirements.txt files.
Verification
The Optiland and Chromatix/Prysm self-tests, the Cooke cross-check and the Cooke and Hubble diagnoses were rerun in fresh environments and compared field by field with the v0.3.0 reports, with no differences. Cooke still reports EFL 50.00039433779174 mm and working F-number 4.978262613802968; the Cooke diagnosis remains EXPLAINED and Hubble AGREE.
CI: 17 jobs on Linux and Windows, all passing (run 44889176406).
Install
See the README.
/plugin marketplace add laweit-lxy/optics-agent-skills
/plugin install optics-agent-skills@optics-agent-skills
v0.3.0: radiometric calibration, lens starting points and pupil diagnosis
A new radiometric skill, a catalog of classic lens starting points, an updated RayOptics pin and two new diagnosis experiments. The MCP server now reports version 0.3.0.
New skill
| Skill | Engine | What it does |
|---|---|---|
process-radiometric-calibration |
NumPy 2.5.4 | Convolves spectral radiance with a spectral response function to give band-equivalent radiance and TOA reflectance, and computes a Monte Carlo and a first-order GUM uncertainty budget, reporting whether the two agree. Records a SHA-256 for every input file. |
Lens starting points
The starting-point catalog holds five centered sequential forms: Cooke triplet, Double-Gauss, Tessar, field-flattened Petzval and retrofocus wide-angle. Each entry records its source, field and wavelength samples, glass conventions and first-order references, and CI checks every entry in both Optiland and RayOptics. design-optical-systems points to it; analyze an entry with --input-zmx.
Changes
cross-check-optical-designs: RayOptics pin moves frome25bc579to5009d933, which adds inch-unit imports and a better infinite-object approximation.diagnose-optical-discrepancies: two new elimination experiments, field vignetting and pupil coordinates, plus a surface-by-surface table of what each engine imported (curvature, thickness, glass catalog, index per wavelength). On the Cooke and Double-Gauss samples, the largest marginal-ray image difference falls from 0.024685 mm to 2.70e-8 mm and from 0.001588 mm to 1.06e-7 mm once both engines trace through the same stop intersection, so both samples now reportEXPLAINED.- Documentation now matches the code in several places: the three-point radius sweep belongs to the built-in Cooke qualification only, cross-check reports
INSPECTEDwithout a reference file, diagnose lists differences it cannot explain asUNRESOLVED, andanalyze-optical-designs --outputoverwrites an existing file.
Limits
- The radiometric skill takes spectral radiance one band at a time from two-column CSV files. It propagates independent per-band input uncertainties only, not SRF shape or correlation between spectral samples. DN-to-radiance conversion, calibration-coefficient derivation and atmospheric correction are out of scope.
- The starting-point catalog lives at the repository root; a skill-only installation does not include it.
- The pupil-coordinate experiment does not model physical stop clipping or transmission. With nonzero field vignetting two rays remain unexplained.
CI: 17 jobs on Linux and Windows, all passing (run 44884059920).
Install
See the README.
/plugin marketplace add laweit-lxy/optics-agent-skills
/plugin install optics-agent-skills@optics-agent-skills
v0.2.2: wavelength calibration and optomechanical part skills
Two skills for the instrument around the lens. Both run standalone from a JSON input file and write a report into a new directory. The four existing skills, the shared core and the MCP server are unchanged apart from the version number.
New skills
| Skill | Engine | What it does |
|---|---|---|
calibrate-spectral-wavelength |
RASCAL 0.3.11 | Fits a pixel-to-wavelength polynomial from peak positions you supply and a lamp or custom line list, with optional holdout lines. Reports every assignment and rejection, and withholds the coefficients when a check fails. |
build-optomechanical-parts |
CadQuery 2.8.0 | Builds nominal aperture mounts, baffled tubes and rigid assemblies from dimensions in a JSON file. Exports STEP and STL and checks analytic volume, bounds, the STEP roundtrip and the pose of each placed part. |
Each skill checks its pinned distributions before it imports its engine. Each has a regression that runs the command line in fresh processes; CI runs it on Linux and Windows.
Limits
- The calibration is qualified on a synthetic Hg/Ar/Ne spectrum with a quadratic fit. Real lamp spectra, peak finding and blended lines are not qualified.
- The parts are nominal geometry: no tolerances, threads, fits or collision checks. The hierarchy read back from the assembly STEP is not checked.
- Both scripts reject an input or output path that passes through a symbolic link or junction. If the skill folder is installed as a link, pass the real path of the folder.
- The MCP server does not expose the two skills; run their scripts directly.
CI: 15 jobs on Linux and Windows, all passing (run 43715457525).
Install
See the README.
/plugin marketplace add laweit-lxy/optics-agent-skills
/plugin install optics-agent-skills@optics-agent-skills
🤖 Generated with Claude Code
v0.2.1: diagnosis output safety, untraced rays and engine integrity
A patch release with fixes from an independent read-only audit of v0.2.0. No acceptance threshold or frozen hash changed. On the three bundled samples, the diagnosis gives the same status, causes, residual rays and EFL values as v0.2.0.
Fixes
Output safety. diagnose refuses to write a report through a symbolic link, or over a file that is the same file (a hard link) as the input prescription or the reference JSON. This holds even with --force. Before, a reused output directory whose diagnosis.json was a hard link of the .zmx let the final write replace the prescription. diagnosis.json is now written to a temporary file and then moved into place, and the diagnosis checks the source hash again after writing.
Untraced and missing rays. A ray that agreed before an experiment and cannot be traced under a kept setting becomes an untraced_ray item, and the status cannot be EXPLAINED. Before, such a ray dropped out of the conclusion. A ray missing from one engine's report counts as untraced, so it is no longer read as agreement. A non-finite EFL or working F-number counts as a difference.
Comparable inputs. The diagnosis now compares the primary wavelength, the fields and each ray's wavelength, in addition to the surfaces and wavelengths. If the engines built different surfaces, wavelengths or fields, their outputs do not describe the same rays. In that case no experiment runs, and the status is UNRESOLVED with a not_comparable item. Incomplete probe reports are rejected with a clear error.
Engine integrity. The Optiland probe now checks the pinned Optiland code manifest; before, only the RayOptics probe checked its source. Both probes record their integrity checks under engines.<engine>.integrity in diagnosis.json.
Install requirement. The core needs a repository checkout (pip install -e). A missing skills/ folder or sample data is now reported clearly.
Results on the bundled samples
| Sample | Status | Confirmed causes |
|---|---|---|
| Cooke triplet | UNRESOLVED |
material_catalog, ray_aiming; six pupil-edge rays remain |
| Double-Gauss | UNRESOLVED |
ray_aiming; six pupil-edge rays remain |
| Hubble | EXPLAINED |
object_distance |
CI: 11 jobs on Linux and Windows, all passing (run 42336456374).
Planned for v0.3
- RayOptics source check: accept only the manifest hash, normalized for line endings, instead of the manifest hash or the recorded commit.
- Attribution across cumulative experiments when a later experiment brings back a difference an earlier one removed.
- Infinite-distance normalization applied only to the object surface.
Install
See the README.
/plugin marketplace add laweit-lxy/optics-agent-skills
/plugin install optics-agent-skills@optics-agent-skills
🤖 Generated with Claude Code
v0.2.0: cross-engine discrepancy diagnosis, wave optics and MCP server
Highlights
diagnose-optical-discrepancies: explains why Optiland and RayOptics disagree on the same .zmx. It compares the prescription each engine built (geometry, stop, wavelengths, glass catalog and index per surface, object distance), the first-order values and real rays, then runs elimination experiments on Optiland while holding RayOptics fixed. Results on the bundled samples:
| Sample | Status | Confirmed cause |
|---|---|---|
| Cooke triplet | UNRESOLVED |
The ZMX declares GCAT HIKARI SCHOTT. OpticStudio and RayOptics take F2 from Hikari, Optiland from Schott. With Hikari F2, the Optiland EFL moves from 49.999783 mm to 50.000394 mm, the OpticStudio value. Iterative ray aiming removes the off-axis chief-ray differences. Pupil-edge rays at 14°/20° still differ by up to 0.025 mm. |
| Double-Gauss | UNRESOLVED |
Chief rays are explained by ray aiming. Pupil-edge rays still differ by up to 0.0016 mm. |
| Hubble | EXPLAINED |
RayOptics models the infinite object at 1e10 mm. That defocuses the image by f²/z = 0.33 mm, which accounts for the 6.9 µm edge-ray and 4.8e-5 working-F-number differences. |
analyze-optical-designs: pinned Chromatix + Prysm (JAX) scalar wave optics: propagation, PSF/MTF/OTF and differentiable inverse design, with an analytic self-test.
Shared core and MCP server: src/optics_agent_skills is standard library only and serves the skills, a command line and an MCP server (mcp 2.3.0, stdio). The server's tools are list_samples, analyze_prescription, cross_check_prescription, diagnose_discrepancies, wave_optics_self_test and server_info.
Changes
- Engine environments are named
.venv-<skill>. Other locations can be set withOPTICS_SKILLS_PYTHON_DESIGN,OPTICS_SKILLS_PYTHON_CROSSCHECKandOPTICS_SKILLS_PYTHON_ANALYZE. - The Chromatix power self-test runs in float64. The float32 power sum varies with the CPU's reduction order, so the check gave different results on different machines.
- CI covers 11 jobs on Linux and Windows: the three engine skills, the core and MCP server (Python 3.10 and 3.12) and the diagnosis with both engines.
- Claude Code plugin version 0.2.0.
Install
See the README.
/plugin marketplace add laweit-lxy/optics-agent-skills
/plugin install optics-agent-skills@optics-agent-skills
🤖 Generated with Claude Code
v0.1.0
First release: two optical design agent skills with independent cross-checks.
design-optical-systems: sequential.zmxanalysis with pinned Optiland 0.6.3 (EFL, F-number, spot, OPD, FFT PSF/MTF, radius sensitivity), self-qualified against fixed Cooke, Double-Gauss and Hubble references on every run.cross-check-optical-designs: independent RayOptics (e25bc57) load of the same.zmx, glass-catalog audit, and EFL / paraxial / real working F-number comparison against Optiland or OpticStudio reports (PASS/MISMATCH/FAIL).- Pinned environments installable from public sources; regression tests against OpticStudio 22.2.2 references, green on Linux and Windows.
- Claude Code plugin marketplace and Codex install instructions.
Next: wave-optics analysis, cross-engine discrepancy diagnosis and an MCP server (v0.2). See ROADMAP.md.