OpenAI Codex in your code editor
By OpenAI
Key Concepts
- Codex: An AI coding collaborator that integrates into code editors.
- IDE Extension: A plugin that allows Codex to function directly within Integrated Development Environments (IDEs) like VS Code.
- Auto Context: A feature that provides Codex with recent IDE activity for better contextual understanding.
- Service Workers: A web technology that enables offline functionality and background tasks.
- Hover State: A visual change that occurs when a user hovers their mouse cursor over an element.
- Sandbox: A secure, isolated environment for running code to prevent unintended modifications.
- Cloud Tasks: Tasks processed by Codex in the cloud, allowing for more complex operations without impacting local resources.
- Local Tasks: Tasks processed by Codex directly within the user's IDE.
- Content Security Policy (CSP): A security measure that helps prevent certain types of attacks, including those involving inline JavaScript.
- Refactor: The process of restructuring existing computer code without changing its external behavior.
Codex IDE Extension Tour
This video demonstrates the capabilities of the new Codex IDE extension, designed to make Codex a more integrated and reliable coding collaborator. The extension allows users to interact with Codex directly within their code editors, such as VS Code, Cursor, and Windsor.
Understanding Code with Codex
The demonstration begins with an example of using Codex to understand a specific code clause within an OpenA FM project that utilizes service workers.
- Scenario: The user encounters an interesting
returnclause and asks Codex for an explanation. - Mechanism: The "Auto Context" button is highlighted, which provides Codex with the user's recent IDE activity. This allows Codex to understand the surrounding code and the user's current focus.
- Codex Response: Codex explains that the clause "short circuits the effect when the browser doesn't support service workers." This indicates that Codex can provide quick and relevant answers for simple queries when it has sufficient context.
Implementing To-Do Items with Codex
The extension facilitates the implementation of tasks identified by to-do comments within the codebase.
- Scenario: A "button component" has a to-do comment to "add a hover state."
- Process:
- The user clicks on the to-do comment.
- This initiates a local conversation with Codex, providing it with the necessary context to address the to-do.
- Codex explores the codebase, identifies the relevant files, and makes the necessary code modifications.
- Behind the Scenes: Codex operates by reading code and executing commands within a safe sandbox. This sandbox ensures that Codex cannot modify files outside the project. If a task requires actions beyond its sandbox capabilities, Codex can request user permission.
- Review: After Codex completes the task, the user can review all the changes made in one place within the IDE.
- Verification: The user then navigates to the browser to verify the implementation. The buttons now exhibit a subtle hover state, with the shadow expanding and the card shifting slightly upwards.
Offloading Tasks to Codex Cloud
The extension allows users to move tasks from their local environment to Codex Cloud for more intensive processing.
- Scenario: The user wants to add hover states to other elements on the website and decides to leverage Codex Cloud.
- Process:
- The user moves the current conversation from "local" to "cloud."
- This utilizes Codex in the cloud to continue the task without consuming local computing resources.
- Implication: This feature is described as "completely changing the way we think about engineering," enabling tasks to be initiated locally and then handed off to a cloud-based collaborator.
- Task Management: Tasks sent to the cloud can be stashed, discarded, or retrieved later.
Initiating Creative Tasks with Codex Cloud
Codex Cloud can also be used for more ambitious and creative tasks, where Codex takes initiative in design and feature development.
- Scenario: The user wants Codex to add a "really interesting thing, something fun" to the header, beyond a simple dark mode.
- Process:
- The IDE settings are changed to run Codex in the cloud.
- A new task is initiated, without relying on local changes or IDE context.
- The user instructs Codex to "add a button to the header to make a really interesting thing, something fun."
- Multiple Attempts: The user can specify the number of times Codex should attempt the task. In this case, Codex is set to attempt the task four different times.
- Codex Cloud's Approach: Each attempt by Codex Cloud is expected to be slightly different, exploring various solutions. The video mentions that Codex is concurrently working on hover states and themes.
Real-World Application: Debugging a Complex Issue
A personal anecdote highlights Codex's effectiveness in tackling difficult bugs.
- Scenario: During the launch of Codex Web, a "fun Lahi animation" worked locally but failed in production due to an obscure "content security policy issue" preventing inline JavaScript.
- Codex Solution: Codex was tasked with attempting the fix four times. Three attempts failed, but one successfully identified and resolved the CSP issue, saving that aspect of the launch.
- Key Takeaway: Codex is valuable for identifying and resolving "nasty or complex bugs" by approaching them from different angles and perspectives.
Reviewing and Applying Codex Cloud Tasks
The video demonstrates how to review and apply the results of tasks processed by Codex Cloud.
- Scenario: The four attempts to add an interesting button to the header are reviewed.
- Process:
- Attempt 1: Applied and reviewed in the browser. The result is described as "very, very good" and "very creative."
- Attempt 2: The previous change is reverted, and Attempt 2 is applied. This attempt resulted in a complete theme change, which is also considered "pretty cool."
- Flexibility: Users can take cloud tasks and check them out locally to continue working on them in their code editor.
Completing Local and Cloud Tasks
The demonstration concludes by checking the status of the initial hover state task that was started locally and then offloaded to Codex Cloud.
- Status: The task is reported as "done."
- Outcome: The hover state task has modified additional files, and upon applying the changes locally and checking in the browser, new items (the "start building button" and the "switch in the top right corner") now have hover states.
Conclusion and Availability
The video summarizes the capabilities of the Codex IDE extension, emphasizing its integration into the coding workflow.
- Availability: The extension is included with a ChatGPT subscription.
- Download: Users can download the extension from
openai.com/codexor by searching for "Codex" in their extension marketplace. - Future Outlook: The presenters express excitement about what users will build with this new tool.
Chat with this Video
AI-PoweredLoad the transcript when you're ready to chat so the initial page stays lighter.
Related Videos

Git Rerere: The Secret Merge Feature
NeuralNine

GLM-5.2 + Z-Code (Ultra Mode - Free Tier): FABLE LEVEL PERFORMANCE!
AICodeKing

Git Crash Course - Full Tutorial For Beginners
NeuralNine

Figma Unveils Full-Stack Canvas for the AI Era
Bloomberg Technology

Stanford MS&E435 Economics of the AI Supercycle | Spring 2026 | Applications, Coding AI
Stanford Online

A Genius With Amnesia - Victor Savkin, Nx
AI Engineer

Google Just Dropped a Masterclass on Agentic Engineering (It's SO Good)
Cole Medin