Codex can automatically run trunk commands for you, by informing it to do so in your AGENTS.md file:
## AGENTS Instructions### Formatting and Linting- Run `trunk check -y --filter=-trufflehog,-semgrep` after modifying code to format and fix linting issues.- Review and verify changes before committing.- If only formatting is required, run `trunk fmt`.- Exclude linters requiring network access by adding them to the negative filter list as shown above.