# AGENTS.md instructions for Codex CLI for local AI coding agent workflows

Use Codex CLI for local AI coding agent workflows only for: Run an AI coding agent from the terminal to inspect code, edit files, run checks, and summarize diffs.

## Default behavior

- Prefer non-interactive commands and stable output formats: text, patch, json.
- Start with read-only inspection commands before changing state.
- Show the exact command before destructive or deployment actions.
- Require explicit user approval for commands marked `requires-review` or `destructive`.

## Useful commands

- requires-review: `codex` — Launches an interactive coding agent session.
- requires-review: `codex "review the current diff"` — Runs a focused coding task in the terminal.

## Safety notes

- Review file edits and shell commands before approving high-impact changes.
- Use repository instructions and scoped worktrees to keep changes bounded.
- Avoid giving unrestricted deploy, billing, or production database access.