Short answer: Codex is OpenAI's coding agent. In a data repository it can read your SQL, Python and pipeline files, edit them and run commands such as tests or a dbt build, in your terminal (Codex CLI), your editor, the ChatGPT desktop app or the cloud. Locally it works inside a sandbox that limits what it may touch, and an AGENTS.md file tells it your project's rules. Start with read-only questions, then small changes you review with /review.
Data engineering repositories are full of jobs an agent is good at: renaming a column across forty models, adding tests to transformations, writing the boring half of a pipeline. They are also full of things it must not touch, like production connections. The sandbox and AGENTS.md are how you draw that line.
What can it do in a data repo?
How do you set the rules?
- Sandboxlimits where it can write and whether it can use the network
- Approvals/permissions: what it may do without asking
- AGENTS.mdthe project's rules: how to test, naming, never touch prod
- Gita checkpoint before each task, so any change can be undone
What should go in AGENTS.md for data?
- The test command and the build command, exactly.
- Which folders hold sources, models and tests.
- The naming rules for tables and columns.
- "Never connect to production; use the dev profile."
Run /init once and Codex writes a first version you then edit.
Where can you check this?
Where do you start?
Take a first small task with your first Codex task on a data repo, and compare it with the Anthropic agent in Claude Code vs Codex for data work.