AGENTS.md
Instructions for Codex and other AI contributors working on Iris.
Operating Mode
- Read the relevant files before editing.
- Keep changes scoped to the request and the current project phase.
- Do not overwrite user changes or unrelated work.
- Prefer existing project patterns once source files are added.
- Use ASCII text unless a file already uses another character set.
- Run
./scripts/check_repo.shbefore committing. - When a real tech stack exists, also run the stack-specific formatter, linter, and tests.
Project Context
- Project name: Iris.
- Repository owner:
khaledyusuf44. - Core AI contributor: Codex.
- Current phase: Day 1 constraint-engine validation.
- Implementation stack: Python validation engine now; Gradio UI later.
- Source files:
iris/package. Local task prompts stay untracked.
Expected Workflow
- Check
git status --short --branch. - Read
README.md,CONTRIBUTING.md, and relevant files indocs/. - Make the smallest useful change that moves the project forward.
- Add or update tests when behavior changes.
- Update
docs/CODEX_LOG.mdfor substantive work. - Run repository checks.
- Commit only intentional files.
Codex Logging
For each substantive Codex change, add a short entry to docs/CODEX_LOG.md with:
- Date.
- Commit hash, once available.
- What changed.
- Validation or test result.
- Whether the Iris quality gate passed or failed.
Do not put secrets, private prompts, local-only handoff notes, or raw API keys in the Codex log.
Source File Intake
When source files arrive:
- Identify the framework, package manager, runtime, and build commands.
- Move files into the stack's normal structure.
- Add install, run, test, and build commands to
README.md. - Update
docs/ARCHITECTURE.mdwith the actual modules and data flow. - Add CI around real project checks.
- Keep secrets in local environment files, not committed files.
Iris Product Rule
The model applies pressure; it does not solve the user's idea. Any output that becomes a finished idea, plan, or generic advice is a product bug.
Commit Style
Use short imperative commit messages, for example:
Bootstrap project structure
Add initial app shell
Wire API client tests