Integrations
Integrations
OpenAI
Codex
OpenAI Codex / AGENTS.md instructions for Foundry-aware codegen.
AGENTS.md
.codex/config.toml (optional)
Repo-level instructions in your Codex environment
Setup
- Place AGENTS.md at the repository root (Codex and many agents auto-load it).
- Paste Foundry agent rules into AGENTS.md under a clear “UI / Design System” section.
- If using Codex CLI, ensure the working directory is the project root so AGENTS.md is discovered.
- For multi-repo monorepos, put AGENTS.md in the app package that owns the UI.
Tips
- AGENTS.md is the cross-tool standard — also helps Grok Build and other agents.
- Keep “do / don’t” examples short and concrete.
- Re-run codegen after updating AGENTS.md so new instructions apply.
Quick Prompt
Paste into Codex when generating UI.
Works alongside project rules — the prompt steers a single task; files below keep every session consistent.
AGENTS.md
AGENTS.md — Primary instructions file for Codex agents
AGENTS.mdOptional Codex config
.codex/config.toml — Point Codex at Foundry instructions when supported
.codex/config.tomlTask template
Codex task — Structured request for UI codegen
Codex task