This Agents.md file provides guidance for OpenAI Codex and other AI agents working with this codebase.
/pixaris: Core library code/data_loaders: dataset loaders/experiment_handlers: experiment orchestration/feedback_handlers: feedback handling/generation: image generation modules/metrics: evaluate experiment/frontend: Gradio UI components/orchestration: glue between the components/utils: helper utilities
/examples: Example scripts demonstrating usage/test: Pytest suite for maintaining quality/docs: Documentation built with Sphinx/assets: Static images and other assets; these should not be modified directly
- Use Python with type hints for all new code
- Follow the existing code style
- Provide descriptive variable and function names
- Add docstrings for non-trivial logic
- Format code with
make fmtand lint withmake lint
- Use Gradio Blocks when adding UI functionality
- Keep components small and well typed
- Prefer a functional style with clear input and output annotations
- Gradio theming is handled centrally; avoid custom CSS unless necessary
Run tests with:
make test- Provide a clear description of the changes
- Reference related issues if applicable
- Ensure
make lintandmake testsucceed - Include screenshots for UI changes
- Keep each PR focused on a single topic
Before submitting changes, run:
make lint
make testAll checks must pass or note any issues in the PR description.