Glowly
by byescaleira
README.md
<div align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/glowly-icon-dark.svg">
<img src="docs/assets/glowly-icon.svg" width="132" alt="Glowly icon: a lens split in half, the left side in its original gray and the right side glowing in warm magenta">
</picture>
# Glowly
**Relight, never retouch.<br>An MCP server that regrades your photos in a new light and hands back the same you.**
[](#tools)
[](#inside)
[](#on-your-google-ai-plan)
<br>
[](LICENSE)
[](LICENSE-DATA)
[](spdd/README.md)
[](docs/roadmap.md)
[Brief](docs/brief.md) · [Looks](docs/looks.md) · [Roadmap](docs/roadmap.md) · [Changelog](CHANGELOG.md) · [How we work](#how-we-work)
</div>
---
Glowly changes the light, color, tone and grain of a photo to match a look, either one of its codenamed looks or the reference shots you pick, and gives you back the same photo: the same face, expression, body, hair, clothes and framing. It runs as an MCP server inside the assistant you already use, and it generates on the quota of the Google AI plan you already pay for.
> **Status:** Glowly is in design. The research and the 1.0 brief are done; code starts in phase 1. The design documents are written in Portuguese.
## Relight, never retouch
Image models rebuild the whole picture on every edit, so asking them to "keep the face" is a request, not a guarantee. Glowly turns it into a guarantee: by default it never ships the model's pixels.
```mermaid
flowchart LR
P["Your photo"] --> S["Scene reading<br/><sub>faces · regions · scopes</sub>"]
L["Look<br/><sub>codename or your references</sub>"] --> G
S --> G["Nano Banana<br/><sub>on your plan quota</sub>"]
G --> A["Align and check<br/><sub>landmarks · hair · clothes · framing</sub>"]
A --> T["Transfer light and color<br/><sub>onto the original, full resolution</sub>"]
P --> T
T --> O["Same photo,<br/>new light"]
```
| Step | What happens |
| --- | --- |
| **Read the scene** | Faces, hair, skin, clothes and background are mapped locally, along with the light direction, its quality and the color scopes of the photo |
| **Plan the light** | Only light that agrees with the existing shadows is allowed, so a noon photo never gets a fake sunset backlight |
| **Generate** | Nano Banana proposes the new light and color from a technical prompt that spells out what must stay exactly as it is |
| **Check** | The result is aligned to your photo and compared region by region: framing, facial landmarks, expression, hair, clothes and structure |
| **Transfer** | A bilateral grid learns the light and color change from the valid pixels and applies it to your original at full resolution. Every edge, texture and facial feature comes from your photo |
If a check fails, Glowly retries from your original, never from a previous edit. It never delivers an image that changes the person.
## Looks
Every look has a codename that describes its light and color, never the name of a person. Twelve make up the core of 1.0:
| Look | Light and color | Best for |
| --- | --- | --- |
| `riviera` | Hard summer sun, natural warm color, restrained sea blues, firm shadows | beach, coastal towns, outdoor tables |
| `poolside` | Luminous 60s slide film, pool turquoise, warm skin | pools, resorts, terraces |
| `alpine` | Subtle timeless grade, true skin, restrained greens | mountains, lakes, snow, forests |
| `ember` | Warm sunset backlight, lifted midtones, clean highlights | backlight, sunsets, cold landscapes |
| `neon` | Lifted night, cyan shadows, magenta and orange lights | night streets with signs, rain |
| `umbrella` | Overcast, low saturation with reds kept alive, soft haze | cloudy days, a single accent of color |
| `prism` | Pure saturated color blocks, complementary contrast, colored blacks | walls, shop windows, colorful interiors |
| `asphalt` | Extreme-contrast black and white, coarse grain | streets, night, flash |
| `petal` | High-key pastels, lifted blacks, light grain | mornings, window light, quiet scenes |
| `linen` | Natural light, soft medium-format color, visible grain | travel, window light, outdoor portraits |
| `honey` | ISO 400 color negative: open shadows, warm skin, fine grain | daylight portraits and travel |
| `tungsten` | Tungsten cinema film: cool balance, saturated, red halation around lights | neon, night, bars |
Twenty more are in beta, two of them variants of core looks. The full catalog, with where each look fails, is in [docs/looks.md](docs/looks.md), generated from the open data in [`data/looks/`](data/looks).
## Match your references
Hand Glowly one or more photos whose look you love and it breaks them down the way a colorist would: tonal scopes and zones, color balance by shadows, midtones and highlights, saturation and luminance across eight hue bands, memory colors such as skin, sky and foliage, the key-to-fill ratio of the light, grain, halation and vignette. References that disagree are grouped, the closest ones to your photo weigh more, and you get a look sheet with the palette, the zones and the split toning. Save it and it becomes a look of your own, in the same format as the built-in ones.
## On your Google AI plan
Glowly calls the official Antigravity CLI, unmodified, in headless mode, as a tool for one photo at a time, the way Google's Antigravity FAQ allows. You sign in to Antigravity yourself; Glowly never reads, copies or reuses your credentials, never automates the Gemini web app and never turns on paid AI credits. When your plan quota runs out, the look is applied in **parametric** mode, locally and without AI, until the quota comes back.
## Tools
| Tool | What it does |
| --- | --- |
| `edit_photo` | Applies a look or your references to a photo and returns a before and after, the file and a structured report |
| `edit_batch` | Gives a whole series the same look from one generation |
| `analyze_photo` | Reads the scene and suggests the three looks that fit it best |
| `analyze_references` | Breaks your reference photos down into a look sheet |
| `list_looks`, `get_look` | Browse the catalog |
| `save_look`, `export_look` | Keep a look, or export it as a `.cube` LUT or an ASC CDL |
| `check_photo` | Compares any two photos with Glowly's checks |
| `setup_status` | Shows the install, the Antigravity sign-in and the quota used |
Modes: `faithful` (default), `parametric` (no AI, no quota), `lut` and `generative` (the model's own pixels, only when every check passes).
**Privacy:** only a downscaled copy of the photo, stripped of its metadata, leaves your machine, through the Antigravity CLI. No telemetry.
## Inside
```mermaid
flowchart TB
Clients["MCP clients<br/>Claude · Antigravity · Cursor · VS Code"] --> Server["server<br/>tools · resources · progress"]
Mac["Mac app (optional)"] --> CLI["glowly CLI"]
Server --> Pipeline
CLI --> Pipeline["pipeline<br/>ingest → scene → look → plan → generate → align → check → transfer → output"]
Pipeline --> Look["look<br/>LookSpec · references · vocabulary · parametric engine"]
Pipeline --> Vision["vision<br/>landmarks · segmentation · scopes · bilateral grid · LUT"]
Pipeline --> Providers["providers<br/>Antigravity CLI · optional own-key providers, off by default"]
Look --> Data["data<br/>looks · rules · thresholds · prompts"]
```
| Layer | What it uses |
| --- | --- |
| Protocol | Official MCP Python SDK, stdio, structured outputs, progress |
| Vision | MediaPipe (478 facial landmarks, 52 expression blendshapes, hair, skin and clothes segmentation), OpenCV (alignment, structure) |
| Color | numpy in Oklab and CIELAB, bilateral grid of local affine color transforms, 3D LUT, ASC CDL |
| Generation | Antigravity CLI with Nano Banana, on your Google AI plan |
| Data | YAML validated by JSON Schema, open under CC BY 4.0 |
| Quality | pytest, a private evaluation set of consented photos, a lab that measures every model and prompt change |
## How we work
Every change follows **SPDD** (Structured-Prompt-Driven Development, from [open-spdd](https://github.com/gszhangwei/open-spdd)). The structured prompt of each change, its REASONS Canvas, is versioned with the code and approved before any code is written.
```mermaid
flowchart LR
A["Analysis<br/><sub>spdd/analysis</sub>"] --> C["REASONS Canvas<br/><sub>spdd/prompt</sub>"]
C -->|approved| G["Generation<br/><sub>operation by operation</sub>"]
G --> R["Review<br/><sub>canvas · code</sub>"]
R --> M["Merge into development<br/><sub>with lab and eval results</sub>"]
M -. what we learned .-> C
```
| Change | Delivers | State |
| --- | --- | --- |
| `GLW-001` | Foundation: package, schemas, looks as data, validation, CLI skeleton | planned |
| `GLW-002` | Lab: the plan route measured first, then prompt, references and resolution | planned |
| `GLW-003` | Color engine and checks: parametric engine, bilateral grid, LUT and CDL, retries | planned |
| `GLW-004` | Looks and references: LookSpec, reference breakdown, visual calibration of the core | planned |
| `GLW-005` | Server and setup: tools, Antigravity provider, quota guard, zero-config install | planned |
| `GLW-006` | 1.0: PyPI, one-click bundle, MCP registry | planned |
| `GLW-007` | Mac app (optional) | optional |
The rules above everything else are in the [constitution](docs/constitution.md); the decisions and their reasons are in the [ADRs](docs/adr/README.md).
## Getting started
There is nothing to install yet. The plan for 1.0 is one command that registers Glowly in every MCP client on your machine, with no configuration file to edit:
```sh
uvx glowly setup
```
### Contributing
The package, the looks as open data and the maintenance CLI are in place; the MCP server comes in a later phase. With [uv](https://docs.astral.sh/uv/) installed:
```sh
uv sync
uv run glowly looks --status core
scripts/verify.sh --quick
```
A new look is one YAML file in `data/looks/` with a codename that describes its light and color. `uv run glowly data validate` checks it against the [schema](data/schema/look.schema.json), and `uv run glowly data docs` regenerates the catalog page.
<details>
<summary><b>All the documentation</b></summary>
- [Brief: how Glowly works](docs/brief.md), [the looks](docs/looks.md) and [the evaluation set](docs/eval-set.md)
- [Constitution](docs/constitution.md) and [rules for agents](AGENTS.md)
- [Decisions (ADRs)](docs/adr/README.md)
- [Research](docs/research/README.md)
- [Roadmap](docs/roadmap.md) and [backlog](docs/backlog.md)
- [SPDD: analyses, canvases and reviews](spdd/README.md)
</details>
## License
The code is under the [Apache License 2.0](LICENSE). The looks, rules and prompts under `data/` are under [CC BY 4.0](LICENSE-DATA). Use only photos you have the right to edit; Glowly exists to change the light, not the people in it.
---
<div align="center">
<sub>Made in Campo Grande, Brazil, for photos that deserve better light.<br>Nano Banana, Gemini and Antigravity are trademarks of Google; Glowly is an independent project by <a href="https://byescaleira.com">byescaleira</a> and is not affiliated with Google or with any photographer.</sub>
</div>
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues