Private Self-Review of GitHub PRs with Codex (Without Posting Comments)
If you like Codex as a reviewer but don’t want its feedback to show up publicly on your pull requests, the trick is simple:
- Use the GitHub integration only when you want a visible PR review.
- Use Codex CLI (local) for private self-review—nothing gets posted back to GitHub.
This tutorial shows exactly how to set that up.
Why this matters
When Codex is connected to GitHub PRs, its review output appears in the PR like any other review comment. Anyone with access to the PR can see it.
So if your goal is:
✅ “Review only when I ask”
✅ “Keep the feedback private for my own self-review”
…then local review via Codex CLI is the right workflow.
Part 1: Stop Codex from auto-reviewing PRs
In Codex → Settings → Code review:
- Keep Personal auto review preferences = OFF
- Don’t enable repository-level automatic review triggers (like “review on PR open”)
This ensures Codex won’t review every PR automatically.
Result: Codex reviews happen only when you explicitly request them.
Part 2: Understand “Will Codex review the entire codebase?”
No. Codex CLI review is usually focused on your diff:
- your PR branch vs a base branch (ex:
main) - a single commit
- only uncommitted changes
Codex may open surrounding files for context, but it is not doing a full repo-wide audit unless you explicitly ask for that kind of analysis.
Part 3: Private self-review of a PR using Codex CLI
Step 1 — Check out the PR branch locally
If you use GitHub CLI:
gh pr checkout <PR_NUMBER>
Code language: HTML, XML (xml)
Or with git:
git fetch origin pull/<PR_NUMBER>/head:pr-<PR_NUMBER>
git checkout pr-<PR_NUMBER>
Code language: HTML, XML (xml)
Step 2 — Run Codex CLI in your repo
cd /path/to/your/repo
codex
Step 3 — Run a private review
Inside Codex CLI:
/review
Then choose what you want to review:
- Branch vs base (recommended): review your PR branch compared to
main - Single commit: useful if your PR is large—review in chunks
- Uncommitted changes: great before you commit or push
Step 4 — Confirm what’s being reviewed (optional)
To see the exact diff Codex is looking at:
/diff
That’s it.
You now get review feedback privately in your terminal/IDE and nothing is posted to the PR.
Best practice workflow (simple and effective)
- Before pushing: run
/reviewon uncommitted or staged changes - Before opening PR: run
/reviewagainstmain - Only when needed: use
@codex reviewin GitHub to get a team-visible review
This gives you both:
- private self-review whenever you want
- public review only when you choose
FAQ
1) Can Codex review my PR privately inside GitHub without others seeing it?
No. If Codex posts a review to the PR via the GitHub integration, it’s visible to anyone who can access that PR. For private feedback, run the review locally using Codex CLI (or your IDE) instead.
Yes — it can “cost” in the sense that it consumes your Codex allowance (quota), and may consume paid credits if you go past the included limits.
If you’re using Codex with your ChatGPT login (Plus / Pro / Business / Enterprise / Edu)
- No extra charge up to your plan’s included limits — Codex is included with these plans. (OpenAI Developers)
- Your PR self-review (via Codex CLI
/review) will consume your local-message / local-task usage window. (OpenAI Developers) - If you hit the included limits, you can extend usage by buying ChatGPT credits (so then it does cost). (OpenAI Developers)
If you trigger review in GitHub (@codex review)
- That counts as Code Review usage (cloud/GitHub), and it’s the type that’s explicitly “charged” in the rate card / credits model. (OpenAI Help Center)
If you authenticate Codex with an API key
- Then it’s pay-as-you-go API billing (“pay only for the tokens Codex uses”), separate from your ChatGPT subscription. (OpenAI Developers)
How to check what you’re spending
- In Codex: usage dashboard (and in CLI you can use
/statusto see remaining limits). (OpenAI Developers)
If you tell me which plan you’re on (Plus/Pro/Business/Enterprise) and whether you’re using GitHub @codex review or CLI /review, I can tell you exactly which quota bucket you’re consuming.
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow , and SEO strategies at Wizbrand.
Do you want to learn Quantum Computing?
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at WIZBRAND
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals