Skip to content

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

  1. Place AGENTS.md at the repository root (Codex and many agents auto-load it).
  2. Paste Foundry agent rules into AGENTS.md under a clear “UI / Design System” section.
  3. If using Codex CLI, ensure the working directory is the project root so AGENTS.md is discovered.
  4. 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.md

Optional Codex config

.codex/config.toml — Point Codex at Foundry instructions when supported

.codex/config.toml

Task template

Codex task — Structured request for UI codegen

Codex task