This repository is a local-first image-generation workspace: Vue provides the UI, FastAPI owns jobs and files, Codex CLI performs generation, and mcp/ adapts the backend to Streamable HTTP MCP. Docker is optional; native Windows, macOS, and Linux behavior is the primary product path.
- Preserve the existing
/apiand compatibility routes,IMAGE_GEN_*environment variables, persisted batch schema, and theimage_gen_mcpimport path unless a migration is included. - Generation concurrency is configurable downward but must never exceed 9.
- Treat
.codex,auth.json, proxy credentials, device-login output, uploads, logs, runtime state, and generated images as private runtime data. Never print, commit, package, or publish them. - Authentication and proxy status responses may expose state and a redacted proxy endpoint only; they must never return tokens, credential paths, usernames, passwords, or complete authenticated URLs.
- The packaged Windows launcher binds to
127.0.0.1; source launches currently inherit the backend's0.0.0.0default. Do not describe an all-interface deployment as safe beyond a trusted local network without access control, restricted CORS, and a deliberate network boundary. - Preserve the Windows installer
AppIdand legacy%LOCALAPPDATA%\ImageGenServicedata fallback so upgrades do not lose user state. - Keep versions synchronized across Python packages, the frontend, installer defaults, and release workflow. A release tag must match the packaged version.
- Update tests and agent-facing documentation in the same change whenever a contract or workflow changes.
Read README_FOR_AGENT.md before implementation or release work. Use .context/CONTEXT.md for architecture and contracts, and check .context/TODO.md before modifying affected areas.