Codex IDE extension | ChatGPT Learn

ChatGPT Learn

2 min read Original article ↗

Codex IDE extension

Build with the context already in your editor

Work with Codex beside your code. Bring open files and selections into the prompt, review edits in place, and hand off longer work without breaking your flow.

srcretry.tsretryOperation

1import { wait } from './backoff';

2

3export async function retryOperation<T>(

4 fn: () => Promise<T>,

5 retries = 3,

6): Promise<T> {

7 let attempt = 0;

8 let lastError: unknown;

9

10 while (attempt <= retries) {

11 try {

12 return await fn();

13 } catch (error) {

14 lastError = error;

15 if (attempt >= retries) break;

16 await wait(200 * 2 ** attempt);

17 attempt++;

18 }

19 }

20 throw lastError;

21}

main 0 problemsLn 16, Col 1TypeScript

Trace and fix a flaky retry bug. Retry loop now stops at max retries before waiting. Changes applied.

01

Use the context already open

Reference open files, selected code, and recent chats directly from the composer. Codex starts with the code you are already looking at, so you spend less time restating the problem.

02

Review changes beside your code

Read the summary, inspect a focused diff, and follow up in the same chat. Keep only the changes you want while the source and rationale stay visible together.

03

Delegate when the task grows

Keep quick iterations local, or connect Codex web when a task needs more time and room. Return to a reviewable result from the same editor workflow.

See what Codex can do in your IDE

Stay close to the code while Codex explains, edits, reviews, and delegates.

01

Use the context already open

Add an open file, a selection, or a recent chat to the composer, then ask Codex to explain or edit the code with that context already attached.

Learn more

02

Review changes beside your code

Review a concise summary and the changed lines without an extra navigation pane. Inspect the two affected files, keep the edits you want, and ask for a follow-up from the same view.

Learn more

03

Delegate when the task gets bigger

Choose local work for fast, hands-on iteration, or connect Codex web to delegate a longer task. The chat stays available when you return to review the result.

Learn more

Use Codex IDE extension when…

You are making focused edits

Keep the relevant files and Codex in the same view.

You are learning unfamiliar code

Ask about the files and symbols already open in the editor.

You want to review changes in place

Inspect and apply edits alongside the source.

You want to delegate a larger task

Start cloud work from the IDE and return to the result.