Repo-wide instructions.
For PR-focused Codex tasks:
-
Focus changes on issue/prompt.
-
Run verification (
go build ./...,go test ./...,golangci-lint run ./...). -
Check
git status --shortand diff. -
Branch under
codex/(notmasterorwork):git switch -c codex/<issue-number>-<short-slug>
-
Stage and commit.
-
Open PR via GitHub CLI (
originset), enable auto-merge:git push -u origin HEAD gh pr create --base master --label codex \ --title "<concise title>" \ --body "<summary of the change and testing, including 'Closes #<issue>'>" gh pr merge --squash --auto --delete-branch
Branch codex/, PR label codex. Auto-merge waits for CI (build, tests, golangci-lint) — never merge manually before CI green.
Don't just claim PR opened. DO NOT use make_pr tool (make_pr only records title/body, never pushes/creates). Task incomplete until gh pr create opens real PR and prints URL.