Overview
Route well-scoped issues to Claude Code in GitHub Actions or to Codex Cloud, let each work in its own isolated workspace and open a pull request, and merge only after CI and a human review pass.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Claude Code · Codex · GitHub Actions
- Prerequisites
- A GitHub repository with CI and branch protection, the Claude GitHub App with an API key or subscription token, and an eligible ChatGPT plan for Codex Cloud.
How It Works
Label a few issues in your tracker as ready for an agent, each with clear acceptance criteria. For Claude Code, run /install-github-app to add the Claude GitHub App, the repository secret and the workflow files, then mention @claude in the issue (or trigger the workflow on the label) so it analyses the code, makes the change on a branch and opens a pull request. For Codex, create a Codex Cloud environment for the repository and start one task per issue; each task gets its own workspace, and you inspect the changed files and open a pull request when you are satisfied. Keep branch protection on so every pull request needs passing CI and an approving review from a person, then merge and close the issue yourself. Compare which kinds of issues each agent handled with the fewest corrections.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude Code, Codex CLI.
- Connect the toolsConnect the tools this workflow relies on: Claude Code, Codex, GitHub Actions.
- Check the prerequisitesA GitHub repository with CI and branch protection, the Claude GitHub App with an API key or subscription token, and an eligible ChatGPT plan for Codex Cloud.
- Gather your detailsCollect what the prompt asks for: Issue number or link, Repository, Acceptance criteria, File with project conventions, Test command.
- Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.
Practical Starter Prompt: Work one issue to a pull request
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Work on issue [Issue number or link] in [Repository]. The change is done when [Acceptance criteria]. Follow the conventions in [File with project conventions], add or update tests that prove the fix, and run [Test command] before you finish. Open a pull request that links the issue and explains what you changed and why. Do not merge, close the issue or change CI settings; a reviewer will decide.Use the same prompt in the issue mention or the Codex Cloud task. Branch protection requires passing CI and a human approval before merge; the reviewer merges and closes the issue.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The Claude Code docs describe a GitHub Action that responds to @claude mentions, can run on GitHub events and turns issues into pull requests. The Codex Cloud page says each task has its own workspace and that you inspect the changes and commit or open a pull request when ready. Neither page reports success rates on real issue queues, and neither describes automatic merging.
Limitations and Considerations
The GitHub Action needs the Claude GitHub App and an API key or subscription token stored as a repository secret, and Codex Cloud is for eligible paid ChatGPT plans with usage limits that vary by plan; check both before routing many issues. Give the agents no permission to merge or to bypass branch protection. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Official Website
The official site of the main tool or project in this use case.
Visit Website (opens in a new tab)code.claude.com
Related Videos
About anthropics/claude-code
The SECRET Claude Code Upgrade That Has Everyone Going Nuts (Full Guide) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)About openai/codex
Meet the New Codex CLI (opens in a new tab)
Published by the project’s official channel.
Watch on YouTube (opens in a new tab)About anthropics/claude-code
The only Claude Code guide you'll ever need (Opus 4.5) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Claude Code GitHub Actions - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Claude Code GitHub Actions runs Claude Code in GitHub Actions workflows to respond to @claude mentions, automate tasks and turn issues into pull requests.
- The action can be given a prompt to run automatically on any GitHub event.
- Running /install-github-app sets up the authentication secret and workflow files; the credential is saved as a repository secret such as ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN.
- Codex Cloud | ChatGPT Learn (opens in a new tab)
Project documentation · developers.openai.com · Undated · Source checked 25 Nov 2026, 12:11 UTC
What this source supports
- Codex Cloud takes coding tasks to work through in the cloud, from investigating bugs to building features.
- Each task has its own workspace and can keep working while your computer is asleep; you inspect changed files, check results and commit or open a pull request when ready.
- Using Codex with your ChatGPT plan | OpenAI Help Center (opens in a new tab)
Project documentation · help.openai.com · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Codex is OpenAI's coding agent for writing, reviewing and shipping code.


