Processing the eclipse with AI agents: Agentic Eclipse Library
Total solar eclipse of 12 August 2026 from Almanza (León, Spain)
On 12 August 2026 I watched a total solar eclipse from Almanza (León, Spain). After the capture came the hard part: turning a handful of totality frames into a picture of the corona. This time I did it with the help of a coding agent, using the Agentic Eclipse Library.
What the Agentic Eclipse Library is
It is an open project by Pere Guerra Serra (github.com/PeterWar/Agentic-Eclipse-Library) under the MIT licence. Rather than a closed program, it is a folder designed so that an AI agent can read it and work with it: it carries instructions (AGENTS.md and CLAUDE.md), seven “skills” with the method step by step, about 180 research notes and a Python package, ael, that does the heavy lifting.
It works with Claude Code (clone the repository or install the plugin and the skills load by themselves) and with Codex (there is a plugin for its desktop app), and any other agent can use it if you point it at AGENTS.md.
How an image is generated
You don't need to know the commands: you open the folder with your agent, tell it where your photos are, and it proposes the steps one at a time. You decide the final look. The workflow is:
- Calibrate and stack. Darks, flats, linearity, saturation and weights.
ael stackbuilds a linear stack with explicit registration. - Registration and fusion. Alignment by ephemeris (with Skyfield and the JPL ephemerides) and linear HDR fusion of frames with different exposures.
- Detail filters. NRGF, RHEF, MGN and other variants, each on its own layer.
- Layered project. A 16-bit Photoshop project with the layers ready for you to tune the look.
- Extra products. A structure image (the fine filaments of the corona), the corona “unrolled” into polar coordinates, and coronal motion between frames.
Its golden rule is that the library only reads observed pixels. Where there is no data it leaves a gap, never a fill or a mirror.
My data
| Item | Detail |
|---|---|
| Location | Almanza (León, Spain), 920 m |
| Date | 12 August 2026, total eclipse |
| Camera | Omegon veTEC571C (bin 2) |
| Optics | Tamron 70-300 mm f/4-5.6 Di VC USD at 300 mm |
| Mount | Proxisky UMi 17 |
| Processing input | 31 long exposures (8 × 2 s and 23 × 1 s, 39 s in total), from 18:28:42 to 18:29:24 UT |
| Library | AEL 1.4.2 |
Results
Structure image of the corona: the filaments show far more detail than in the original frame.
The inner corona around the lunar disc.
What I take away
Having an agent help with processing is convenient, but the valuable part is that the project is designed not to invent data and to tell you when there is nothing to find.
If you have eclipse photos and want to try it, everything is in the repository.
Processed with Agentic Eclipse Library by Pere Guerra.