Loading video...

Video Failed to Load

Go Home

GPT 5.4 has been released... + 1M context window! Here's how to enable in Codex: → 1. ~/.codex/config.toml → 2. model = "gpt-5.4" → 3. model_context_window=1000000 → 4. model_auto_compact_token_limit=9000000 Run codex → 5. /statusline → 6. toggle context-window-size I didn't even realise Codex had a statusline tool!

77,099 views • 8 months ago •via X (Twitter)

24 Comments

Chong-U's profile picture
Chong-U8 months ago

The compact token limit should be 900k

Shantanu Goel's profile picture
Shantanu Goel8 months ago

Bad idea

Chong-U's profile picture
Chong-U8 months ago

Good shout !

Matt Stallone's profile picture
Matt Stallone8 months ago

I'd keep it at 500k max cause context rot is real oai's own benchmark shows needle retrieval only at 36% for 1m tokens

David Toniolo's profile picture
David Toniolo8 months ago

Just for everyone reading this, early signs show significant context rot past 272k.

Alberto Nunez-Garcia's profile picture
Alberto Nunez-Garcia8 months ago

Here's how to enable in Codex: Open shell -> type in codex -> press enter -> "Configure codex to use 1m context window" -> press enter -> close -> repeat steps 1 & 2. If you did it any other way, you are doing AI wrong. 😅

Chong-U's profile picture
Chong-U8 months ago

😂

Cipher 🇵🇸 🇲🇦's profile picture
Cipher 🇵🇸 🇲🇦8 months ago

You have an extra 0 9000000

Chong-U's profile picture
Chong-U8 months ago

Yes d’oh!

Tluček ☂️'s profile picture
Tluček ☂️8 months ago

I will stick with 256k. I do not believe that it will be able to maintain a level of perception of context above this :-/

Dylan's profile picture
Dylan8 months ago

May I ask what screen recording tool you use?

Jeremy Daily's profile picture
Jeremy Daily8 months ago

This isn't enabled by default inside the Codex app?

Chong-U's profile picture
Chong-U8 months ago

Not too sure!

Jeremy Daily's profile picture
Jeremy Daily8 months ago

Def have to check

j0xn's profile picture
j0xn8 months ago

Supported by openclaw?

Mohit's profile picture
Mohit8 months ago

I tried it and i feel its kinda dumber with large context window

Jon Jonasson's profile picture
Jon Jonasson8 months ago

is this free? @grok

Kyriakos's profile picture
Kyriakos8 months ago

One million context is a big step forward

Atlasis's profile picture
Atlasis8 months ago

1M context window in a coding agent is insane. that's basically your entire codebase in memory at once no more "sorry I lost context of that file" — the agent just knows everything saving this config

The Last Son's profile picture
The Last Son8 months ago

Any way to do it in the app/for the macos app? Need to use the 2x usage

hckrclws's profile picture
hckrclws8 months ago

that auto_compact_token_limit being 9x the context window is the interesting bit - wonder how aggressively it's compressing vs truncating

Subhash Dasyam's profile picture
Subhash Dasyam8 months ago

That 36% needle retrieval stat at 1M tokens from Matt's comment lines up with the context rot reports others are seeing past 272k. Having the window available and actually getting reliable recall from it are two different problems. The skills repo Peter linked is probably the more immediately useful discovery here, 35+ pre-built modules and I'd never seen it before.

TheLazyIndianTechie 🕹️'s profile picture
TheLazyIndianTechie 🕹️8 months ago

Um. I just updated codex and it works.

Yuanchang's profile picture
Yuanchang8 months ago

However, once you exceed 272k tokens, your cost will be double what it was before.

Related Videos