feat: support passing Github issue as a context

Resolved 💬 2 comments Opened Apr 21, 2025 by sethupavan12 Closed Dec 2, 2025

What is this issue for

To track the work for supporting Github issue as an input or context for Codex

Why

While Codex is built to help devs with their code locally, in most real-world workflows, devs start by addressing a GitHub issue — just like this one. Enabling Codex to understand the context of an issue, clone the relevant repository, and work toward resolving the problem or GH issue would significantly boost its usefulness and alignment with real dev usecases. For example, SWE Agent, which is currently SOTA on SWE-bench full supports this functionality.

View original on GitHub ↗

2 Comments

Stewart86 · 1 year ago

I have already been using Codex this way. just use gh CLI and it will know what to do to retrieve github issue, similar to how Claude Code does it. But adding more instruction on usage will always be helpful. Not only it will retrieve Github issues, it will create new branch and open PR, review PR add comments to issues and PR. all this with gh cli

g1ddy · 14 hours ago

Codex on the web does not support this and it's not authenticated to be able to use the CLI:

Blocked: GitHub Issue Retrieval Failed
Per your instruction, I stopped without making, committing, or proposing any changes.

Check

⚠️ gh issue view 240 --repo .../... --json number,title,body,labels,assignees,state,url — failed with the exact error: