Refract

A self-correcting photography log

Push a photo to GitHub. Refract handles the review, edit, documentation, and publish steps.

A GitHub Actions workflow triggers a three-stage pipeline: multiple LLMs (Claude, GPT-4o, Gemini) analyze the photo and generate critique + improvement suggestions, an AI editor applies the enhancements, and a static site generator publishes the before/after with full documentation of what changed and why.

Pipeline

  1. Multi-Critic — Claude + GPT-4o + Gemini each review the photo independently
  2. Editor — Gemini image generation applies the agreed improvements
  3. Generator — Jinja2 rebuilds the static site; GitHub Pages deploys it

Stack

Python · GitHub Actions · Anthropic Claude · OpenAI GPT-4o · Google Gemini · Jinja2 · PIL