Overview
Mention @ChatGPT under a bug report in Slack so it hands the repository work to a Codex Cloud task, then review the fix, tests and reported checks it posts back in the same thread before merging.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Codex Cloud · ChatGPT in Slack · Slack
- Prerequisites
- A ChatGPT workspace whose admin has set up the Slack app with Cloud delegation and a published environment shared with the workspace; your account needs Codex Cloud access and access to the repository.
How It Works
A ChatGPT workspace admin sets up the Slack app, enables Cloud delegation and publishes a cloud environment shared with the workspace for the repository. When a bug is reported in a Slack channel, reply in that thread mentioning @ChatGPT with the repository, the steps to reproduce and what correct behaviour looks like, and ask it to investigate, propose a fix and add a regression test. Complete any account connection or approval prompt after checking what access it asks for. ChatGPT runs the work as a separate Codex Cloud task and posts back in the thread; use Follow along to open the task if you want to watch it. When the result arrives, read the diff, the new test and the checks it reports, ask for corrections in the same thread if needed, and only then open or merge the pull request yourself. Reply in the thread so the reporter knows the fix is in review.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Codex CLI.
- Connect the toolsConnect the tools this workflow relies on: Codex Cloud, ChatGPT in Slack, Slack.
- Check the prerequisitesA ChatGPT workspace whose admin has set up the Slack app with Cloud delegation and a published environment shared with the workspace; your account needs Codex Cloud access and access to the repository.
- Gather your detailsCollect what the prompt asks for: Repository, Bug in one line, Steps to reproduce, Expected behaviour.
- Run the starter promptPaste the starter prompt below into Codex CLI and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at developers.openai.com before you rely on it.
Practical Starter Prompt: Hand a Slack bug report to Codex
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
@ChatGPT In [Repository], investigate this bug from the thread above: [Bug in one line]. Steps to reproduce: [Steps to reproduce]. Expected behaviour: [Expected behaviour]. Propose a fix, add a regression test that fails before the fix and passes after it, and run the existing test suite. Reply here with the changed files, the test results and anything you are unsure about. Do not merge or deploy anything; I review the changes and approve the pull request myself.ChatGPT posts the Codex result back in the thread. You review the diff, the regression test and the reported checks, ask for corrections there, and approve and merge the pull request yourself.
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. OpenAI's Slack page says mentioning @ChatGPT can send repository work to a separate Codex Cloud task and return the result to the thread, when Cloud delegation and a shared published environment are set up. The Codex Cloud page says you inspect changed files and check results before committing or opening a pull request. No cited page measures how often such fixes are right.
Limitations and Considerations
Replies in a channel can be read by everyone in it, so keep secrets and customer data out of the thread and use the environment's credential controls. Slack Connect channels shared with other organisations are not supported by this flow. Cloud delegation needs workspace admin setup and Codex Cloud access. Review the diff, the tests and any dependency change before merging, and keep a way to roll back. 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)developers.openai.com
Related Videos
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)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Use ChatGPT in Slack | ChatGPT Learn (opens in a new tab)
Project documentation · developers.openai.com · Undated · Source checked 27 Nov 2026, 11:48 UTC
What this source supports
- Mention @ChatGPT in a Slack channel to start a request. If your workspace has Cloud delegation enabled, ChatGPT can send repository work to a separate Codex Cloud task and return the result to the thread.
- Cloud delegation must be available in your workspace and requires a published environment shared with the workspace.
- ChatGPT returns the result to the thread. Review the answer, changes, and reported checks before using or merging it.
- A response posted to a Slack channel can be read by people with access to that channel.
- 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
- Give Codex coding tasks to work through in the cloud, from investigating bugs to building features.
- Inspect changed files and check results, request follow-up changes, and commit or open a pull request when you're 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 Cloud is available to eligible Plus, all Pro tiers, Business, Enterprise, Healthcare, and Education accounts, subject to rollout and workspace settings. It is not included with Free or Go.
