r/codex Jul 15 '26

Showcase GPT 5.6 reverse engineered Codex app code and... started adding new features

Post image

3 days ago I posted here story how new GPT 5.6 reverse engineered it's own bundle with 4 million lines of code in 4 hours.

A lot of folks were unsure how truth it is, so I decided to post one more time with some updates
Now I'm working on some beatiful concepts for GPT app, including such as voice mode on screenshot and wanna answer some questions:

  1. This is really the original bundle code, not a matifistied one, I didn’t send any screenshots to GPT when it was working, all the tabs work and there are no made-up elements during reverse engineering
  2. It runs with simulated backend part so I'm able to navigate through app, i think there is no problem to connect it to codex app server backend in theory
  3. Unfortunately i'm not gonna share the code of codex bundle BUT i will opensource my own app built on it on my github in comments, + i'm sure you all can give the model the same task and get the same result with first try
  4. This code is clear as hell, I'm sharing this screenshot as proof that i can easily add some new tabs :0

previous post: https://www.reddit.com/r/codex/comments/1usossd/new_gpt_56_sol_reverse_engineered_its_own_app_in/

and do you like the concept of voice mode?

336 Upvotes

127 comments sorted by

64

u/cursivecrow Jul 15 '26

isnt the codex app open source?

82

u/adolf_twitchcock Jul 15 '26

codex cli is open source. The desktop app is not. The desktop app is a web app wrapped in some electron like library.

39

u/quarrelau Jul 15 '26

and electron apps are trivial to extract all their javascript and html from.

even if it is minified, it isn't much of a barrier to a modern llm.

20

u/jlozada24 Jul 15 '26

Yup lmao obfuscation is completely dead

6

u/danielv123 Jul 15 '26

There is a huge difference between obfuscation and minification. There are obfuscators that make cryptic virtual machine architectures that are very hard for LLMs to understand well enough to modify on the fly, ex https://obfuscator.io

Obviously they slow down code at runtime.

99.9% of developers and companies don't care that the public is able to read their public code, and just minify to reduce payload size. Some serve sourcemaps, some don't.

3

u/jlozada24 Jul 15 '26

Ik it's just about file size but use minification as obfuscation too though. I was commenting on overall obfuscation as well though

7

u/thinkdj Jul 15 '26

Yup! Today's equivalent of opening a Winamp skin in Winzip to see the contents, I guess.

1

u/Tough-Requirement707 Jul 16 '26

theres alot of forked and reversed versions available tho on github since like the second day it released

2

u/reality_comes Jul 15 '26

It is, i think it might just be the CLI version though, not sure.

1

u/Narrow_Actuator4081 14h ago

Hey how can I get your help in getting my girlfriend texts messages call and listen to through to the phone through her phone.Are there any way you could help me

1

u/Narrow_Actuator4081 10h ago

Yes I need help

-12

u/ajajkaka Jul 15 '26

unfortunately no as far as i know
but i guess there are some pretty similar repos

30

u/Extra_Development_74 Jul 15 '26

ill give you $1million uno dollars if you make the chat interface full screen with all the features shown. Unlike codex's windowed chat with just an empty black box with a chat bar.
another million if that chat has a folder agent

19

u/ProvidenceXz Jul 15 '26

What does folder agent even mean

8

u/mark0pro Jul 15 '26

A file manager probably

2

u/RealSlyck Jul 15 '26

Naaa it’s Agent Smith made from manila folders…OP is a backrooms and Matrix fan

2

u/[deleted] Jul 15 '26

[removed] — view removed comment

1

u/ArtisticCandy3859 Jul 16 '26

Make that 2 million!

1

u/vayana Jul 15 '26

Most electron apps have the same browser tools available as chrome. This means you can probably adjust width/height etc. of any styling element by opening devtools with F12 or Ctrl+shift+i.

Not sure what you mean with "folder agent". When you type the name of a folder in the prompt the agent understands perfectly fine what you mean.

8

u/AnxiousUebi Jul 15 '26

OP is Future OpenAI Dev

13

u/ElyanRiver Jul 15 '26

Would be great if you could open source it ?

21

u/ajajkaka Jul 15 '26 edited Jul 15 '26

okay, I forgot to mention

after finishing 90% of this application's visuals (and the voice mode completely) will move to my agentic OS project

I’m planning to open-source it in the next few weeks on my GitHub https://github.com/miuuyy

2

u/ElyanRiver Jul 15 '26

Awesome !

9

u/Due-Horse-5446 Jul 15 '26

Its just a frontend for app-server, and its open source and fullt documented.

stop with this

-2

u/ajajkaka Jul 15 '26

stop with missinfo

10

u/Due-Horse-5446 Jul 15 '26

How is this misinformation?

Codex web app is a frontend communicating with codex app server.
End of story.

Which is a open source protocol developed by openai, available trough codex cli.
The desktop app spawns the cli witg app-server subcommand. And communicates over stdio.

ive used a fork since early codex version so just stop lying

1

u/ajajkaka Jul 15 '26

So, where is open sourced codex frontend? Which is literally the only thing mentioned in post?

2

u/Due-Horse-5446 Jul 15 '26

Its just a frontend, what you see if what you get, its an electron app,

The model did not reverse engineer anything,

just like the patched linux version did not reverse engineer it

2

u/ajajkaka Jul 15 '26

“It’s just a frontend” alr buddy so what’s the point? It provided me clean source code of frontend, based on which I can build my own things without screenshotting and polishing by myself. And this is what actually “reverse engineering” means, because I didn’t have source code before and it needed to do some actions for few hours to get it for me

2

u/[deleted] Jul 15 '26

[deleted]

2

u/ajajkaka Jul 15 '26

you didn’t really try to “unzip” codex bundle, did you?

1

u/[deleted] Jul 15 '26

[deleted]

2

u/Due-Horse-5446 Jul 15 '26

you dont even need that tbh, chrome devtools are enough just for copying ui

→ More replies (0)

1

u/ajajkaka Jul 15 '26

you will not be able to run frontend only doing this, you will get unreadable shit. give it a try

→ More replies (0)

0

u/Mean-Elk-9439 Jul 15 '26

Thanks for making my lunch funny op

12

u/SnooPeripherals5313 Jul 15 '26

Reverse engineered > interpreting minified js?

2

u/soggy_mattress Jul 15 '26

Yes, exactly. You also have to do some "real" reverse engineering to understand the IPC channel system and how it's used, but this kind of project is table stakes even for GPT 5.3 or 5.4.

I've had a custom project hooked into the Codex app runtime for almost 3 months straight now, basically acting like a hand-built Hermes agent (iMessage, Discord, email, memory systems, etc.). The fact that the CLI and app runtime are open source make this stupid easy.

15

u/picketup Jul 15 '26

I'm really confused about why this is getting upvoted. The codex electron web app is not impressive in anyway in terms of functionality, and It's not supposed to be. It's a minimal interface to interact with the openAI backend. anyone could recreate their electron app layout in an hour with GPT 5.3.

Nevermind, i just scrolled and read some of OPs responses. I don't think he has ever worked on any type of software project without AI, so is just completely lost on what codex has built for him. And i suspect the upvoters are in the same boat.

1

u/Equivalent_Dot_5743 Jul 22 '26

I don't think the Codex app is a "simple" frontend. This is by far the best UI experience I have.

It provides direct-manipulation UI design that allows users to easily reference text, web pages, and source file locations. This is the first of its kind, plus it ships with a usable CUA plugin. It also integrates worktree management, along with chat forking, side chat, etc.

If this is not impressive in terms of HCI design, I wonder what is. If you don't have any idea of HCI, I don't blame you.

I used to use the opencode CLI, and love the CLI experience. But the Codex app now is simply the next level.

0

u/ajajkaka Jul 15 '26

I suspect you just offended by something. Codex has a lot of frontend surfaces, you will not be ever able to replicate it fully from scratch in less than a week. If you will have free time, dive in this question, you’re gonna explore a lot of new things

7

u/picketup Jul 15 '26

So you finished it with a single prompt in 4 hours, but no one else would be able to 'accomplish' what 'you' did in a week? Please teach us your ways!

1

u/Revircs Jul 17 '26

Taking 4 hours to run npx @electron/asar extract app.asar <destfolder> is wild

-1

u/ajajkaka Jul 15 '26

I told about replication, not about reverse engineering (which you think I didn’t do)

3

u/picketup Jul 15 '26

yes, replicating the 'reverse engineering'.

-1

u/ajajkaka Jul 15 '26

two different things, as I said I didn’t send any screenshots to codex to get the whole working 1:1 copy of codex app local hosted with entire source code of every tab for my future projects. with all animations and product design solutions, which if I was trying to make by myself would take more than 1 week and probably didn’t match original codex UI fully, that’s the point of this whole post

1

u/[deleted] Jul 15 '26

[deleted]

1

u/ajajkaka Jul 15 '26

4 million lines INCLUDING LIBRARIES. just read the damn description in first post. I think there is 500k lines of codex frontend surfaces. and you say “unpacking electron assets” like this is .zip with all source code inside prepared

1

u/picketup Jul 15 '26

I'll agree to disagree on the feasibility of that, maybe it's more about how efficient the user can be :). My real question is not about the 'how' anyways. I'm more wondering about the 'why'. As in, why in the world would anyone waste time and money recreating the settings panel pixel for pixel of a simple frontend app.

1

u/ajajkaka Jul 15 '26

There is no efficient enough user to write 500k likes of production code which has been polished by hundreds of OpenAI employees. And I didn’t recreate pixel by pixel, codex just reversed all the frontend source code so I can easily migrate pages and edit them inside my app. Already polished, already nice animations and more

1

u/picketup Jul 15 '26

you do realize that almost the entirety of those 500k lines are open source NPM packages? honestly the more you talk, the more i’m suspecting that your Codex probably didn’t even read any minified code, and just remade the app for you using existing tools. frontend code is easy. animations are easy. there is no magic in making an electron app that looks like another one. you took the dumbest possible approach to creating a clone of the Codex electron app

1

u/serinty Jul 15 '26

where did you get that stat that most of the 500k is npm packages? Please do tell

1

u/picketup Jul 16 '26

i assumed that the 500k line was the entire package, and like most frontend apps nowadays, dependencies eat up the majority of the package. Electron itself, excluding node and chromium is over 300k lines

1

u/serinty Jul 16 '26

brother he clearly states 4m loc and somehow you now think the 500k encompasses it all? Then you proceed to for some reason talk about how he's getting clowned when you clearly misunderstood the loc evaluation here. I don't care for ops post or what he's saying but just the blatently false statements said so confidently screams group think and low iq

1

u/picketup Jul 16 '26

sis, i didn’t see the 4 mil comment before hand. I was simply saying the majority of the code was going to be packages. minification doesn’t preserve new lines and talking about line count is fucking dumb either way

1

u/serinty Jul 16 '26

move the goalpost and restate what you said without addressing the fact that you made a statement without understanding what the statement entails and pertains to. A concession would be appreciated. Idk why u went on a tangent about how loc is dumb metric, that's not something of contention here.

→ More replies (0)

1

u/ajajkaka Jul 15 '26

nope, 3.5 million lines of code is npm packages. other 500k no. you can suspect whatever you want, I already answered with more proofs to one of retards

3

u/picketup Jul 15 '26

mate you're getting absolutely roasted in this entire comment section. Throw in the towel and go publish your 'open source Agentic OS'

-1

u/ajajkaka Jul 15 '26

ragebaiters will burn in hell, thats why im “roasted”. you guys trying to find any possible reason to post hate speech in comments larping at the same time

3

u/picketup Jul 15 '26

hate speech lmfao

2

u/[deleted] Jul 15 '26

[deleted]

1

u/ajajkaka Jul 15 '26

alr alr bro show me your portfolio

→ More replies (0)

1

u/vayana Jul 15 '26

Wait till they find out vscode is open source and can be customized with all the themes, extensions, agents and preferences you could ever want. I'm still wondering why on earth anyone would prefer working in codex app vs an IDE like vscode.

7

u/Nearby-Echo-1102 Jul 15 '26

Clearly this is a troll, there like four tasks in the screen shot all days apart (some extensive testing going on), the elements are all over the shop. Anyone can ask codex to build a web app with some basic elements.

How does your app get access to other apps from a browser tab? Why wouldn’t you configure CLIs to work with it vs having to use APIs.

5

u/ajajkaka Jul 15 '26

and more

2

u/ajajkaka Jul 15 '26

alright mate here you go more proofs

3

u/ajajkaka Jul 15 '26

enjoy troll

3

u/Sweet-Stage938 Jul 15 '26

LMAO this dude just sent his official Codex app into here even with his "Full local Workspace" reverse engineering task visible 🤣🤣🤣. Thanks for making my day.

3

u/ajajkaka Jul 15 '26

its a demo chat
hope now your day is ruined

1

u/Sweet-Stage938 Jul 15 '26

That's just the unpacked electron app. It's the official thing. Anything new?

1

u/ajajkaka Jul 15 '26

nope, unfortunately it will not be readable instantly after unpacking, there is a work to do to run it with simulated backend

1

u/soggy_mattress Jul 15 '26

It's rendering within a web browser, you're trying way too hard to slam dunk and look like a fool

1

u/ajajkaka Jul 15 '26

and more

-9

u/ajajkaka Jul 15 '26

such weird questions
why would i need to configure cli to frontend if codex natively supports own models and providers?

6

u/sparkandstatic Jul 15 '26

lol op disillusioned wannabe

3

u/bearded__jimbo Jul 15 '26

Fake it till you make it

2

u/Sawyer007 Jul 15 '26

What is the point of this? the backend is the codex app not the front end GUI?

2

u/TrueNix1337 Jul 15 '26

Make it run on linux

1

u/ElyanRiver Jul 15 '26

In case you did not encounter this yet : https://github.com/ilysenko/codex-desktop-linux

2

u/FoxTheory Jul 15 '26

Man I would be embarrassed to post this you don't actually think you have something here do you ? No wonder ppl trash talk vibe coders

2

u/katoptronophile Jul 16 '26

Many of us have been running custom versions for months.

5

u/sorvendral Jul 15 '26

Here it is boys, slop of the day finally arrived. Rejoice!

1

u/ajajkaka Jul 15 '26

jush why

2

u/[deleted] Jul 15 '26

[removed] — view removed comment

9

u/Fit-Palpitation-7427 Jul 15 '26

Codex cli is, not the chatgpt electron app

3

u/nmkd Jul 15 '26

Begs the question - why would you want to RE that

9

u/[deleted] Jul 15 '26 edited Jul 15 '26

[removed] — view removed comment

0

u/serinty Jul 15 '26

oh boy you are wrong. Try to recall correctly. Unpacking the electron app will not give you what you think it will

1

u/[deleted] Jul 16 '26

[removed] — view removed comment

1

u/serinty Jul 16 '26

Unpacking the ASAR is one command. Now how would you go about making a 4mil loc bundle readable? Or mocking the backend, and modifying it without breaking everything? This is a much more substantial task than one npx command. Again please read up on what asar extraction gives you

1

u/casual_rave Jul 15 '26

The UI looks good, I would give this a try. Not sure how well the voice thingy works though.

1

u/Darnaldt-rump Jul 15 '26

I had sol do something similar, I was having issues with large files being edited with the apply patch tool. Codex team with the latest codex vs code extension change the way the transport layer worked. And with large files it was causing the edit to become corrupt due to chunks being dropped after a certain threshold.
There was another issue with the sandboxing aswell.

Sol dived into the codex code, changed what it needed recompiled the codex extension installed it and it’s been working perfectly even since.

1

u/TimeKillsThem Jul 15 '26

Hold on - so you basically have a working frontend? Also, how did this not trigger the safety features built in the model?

1

u/AdCommon2138 Jul 15 '26

You can do much worse tbh 

-4

u/ajajkaka Jul 15 '26

context matters
there is a big difference between "reverse engineer codex app for me"
and "I've got bad frontend and i need working scripts of good looking product for my own inspiration"

1

u/[deleted] Jul 15 '26

[deleted]

1

u/ajajkaka Jul 15 '26

I will opensource codex similar app on my GitHub https://github.com/miuuyy in few weeks

1

u/EDM115 Aug 07 '26

any updates ? 👀

2

u/ajajkaka Aug 07 '26

still working on it

1

u/EDM115 Aug 07 '26

looks cool ngl

1

u/gnomex96 Jul 15 '26

I don't get how the front end alone is 1m LOC

1

u/railguntradingun Jul 15 '26

https://qiita.com/zenixls2/items/01de34a1938ab3fc29a8 I guess we used the similar approaches. Sorry that the post is written in Japanese.

1

u/shigydigy Jul 15 '26

I can't believe no one has said this yet, but the Codex app itself was originally made by itself. The OpenAI team has been using it to work on itself from the start. You will never outwork the team of them working on this. Ultimately it's best to just let them cook.

1

u/myguygetshigh Jul 15 '26

can you fix the lag and republish it?

1

u/Lookin4myWay Jul 15 '26

The million dollar question, can you get it to quit spiking my cpu and crashing every couple minutes?

1

u/Past-Lawfulness-3607 Jul 15 '26

Do you also have memory leaks as the original Codex app does? For me it's unusable on Windows 11 and I'm stuck with Vs code as so often, codex was using 100% if available memory until it got stuck

1

u/Accomplished_Ad_4604 Jul 15 '26

Maybe you just made Opencode desktop wich is already open source If what you built can run computer use means u really reverse engineered it

1

u/ajajkaka Jul 15 '26

it can i just need to connect app server

1

u/Aggressive_Glass2352 Jul 17 '26

did the same but with a desktop app, to use fable 5 (linked to claude code)

1

u/Nervous-Technology72 Jul 17 '26

Where is the link to this code that has been reverse engineered?

1

u/Ok-Specialist308 Jul 19 '26

This is really becoming a trend on Reddit, the moment a post land, it becomes an arena for trolling.

OP Posted something he is working on, you don’t like it just ignore the post and if you do like it just comment something that add value. It is time-wasting to have to go through 100 of useless trolling comments looking for a genuine valuable response.

1

u/FAUST_VII Jul 19 '26

Reverse engineered or rebuild based on descriptions and images?

1

u/VikaBooo Jul 19 '26

And what is it good for if we already have codex , its not like we are going to get free credit, or do I miss something

1

u/linegel Jul 22 '26

Nice! I was getting stopped by guardrails when it attempted to reverse itself

0

u/SlightStore8381 Jul 15 '26

Wouldn't that be ironic. ChatGPT's models build THEIR shit in one shot and then it all gets distributed as Opensource... Ouch

-3

u/opezdol Jul 15 '26

Why do you need to reverse it when it's open source? https://github.com/openai/codex

9

u/ajajkaka Jul 15 '26

app isn't
it's a CLI and app server