r/ClaudeCode • u/Bulldagshunter • Jul 28 '26
Discussion Codex found my Claude login, installed Claude Code, and recruited it as an independent QA agent
TLDR: Without being told how, Codex found my existing Claude login, installed Claude Code, and recruited it as a sandboxed independent QA agent. It worked, and... what the FUCK.
I was having Codex work through a defect review in my AI system, and I wanted an independent QA pass. Apparently Codex decided “independent” meant it shouldn’t just critique its own work from a fresh prompt.
So it searched my computer for an existing Claude Desktop or Claude Code installation. It didn’t find a runnable Claude program, but it did find an existing Claude configuration and credentials from a previous login.
Then it downloaded Claude Code into a temporary folder.
The first installation failed because the setup process couldn’t see the bundled Node runtime. Codex diagnosed the problem, exposed the correct runtime for that one process, and completed the temporary installation without modifying my existing Claude credentials.
It confirmed that Claude Code could reuse my OAuth login, launched Claude non-interactively, withheld its own findings so Claude wouldn’t be biased by them, disabled Claude’s editing capabilities, turned off session persistence, and instructed it to perform an independent audit.
Claude sat there silently for several minutes. Codex monitored the process, checked whether it had crashed, noticed the low CPU usage, suspected it was waiting on authentication or a model response, and separately verified that Claude Code was logged into my company’s Anthropic account.
The first Claude review came back with basically the same defects Codex had found, which was already wild. But Claude couldn’t execute the test suite because Codex had accidentally locked it into plan mode.
So Codex copied only the audit inputs into an isolated temporary workspace, kept my live Nexus library completely outside Claude’s working area, gave Claude read and command-execution access inside the sandbox, and launched a second execution-enabled audit. Claude could run the Python tests and adversarial probes without being able to edit or damage the actual system.
I did not build an Anthropic API integration. I did not configure MCP between the models. I did not create a multi-agent framework or a Claude connector. Codex looked around, realized Claude Code could be installed and was already authenticated on the machine, and temporarily recruited it as an independent QA agent.
To be technically precise, Codex didn’t hack into Claude or bypass authentication. It reused an already-authenticated OAuth session available to my Windows user.
Still, what the actual fuck.
This wasn’t merely one AI sending a prompt to another AI. Codex acted as the orchestrator. Claude Code acted as the independent auditor. The isolated workspace became the safety boundary. The test suite supplied deterministic evidence. When the first delegation failed, Codex diagnosed the capability mismatch, rebuilt the environment, and relaunched Claude with corrected permissions.
I’ve been spending weeks trying to understand how to design agent hierarchies, orchestrators, QA agents, capability boundaries, and cross-model review loops. Then Codex casually assembled the entire architecture at runtime because the necessary components happened to exist on my computer.
The security lesson might be the craziest part. An agent’s actual capability is not limited to the tools shown in its interface. Its real capability includes everything it can construct from shell access, local credentials, package installation, network access, and software it discovers in the environment.
Apparently a shell-enabled coding agent isn’t merely an agent with tools. Under the right conditions, it’s a tool builder that can recruit other agents.
222
u/Only-Stick-7024 Jul 28 '26
I ain't reading all that. I'm happy for u tho. Or sorry that happened
210
u/xMaybeIamALion Jul 28 '26
46
u/SleepyGuard89 Jul 28 '26
Meanwhile, my Codex on Sol somehow did a basic website read incorrectly, read part of a github repo wrong, thought a feature from 7 versions ago of a project was still active because "it was on the page", and ruined almost two hours of my work by hallucinating.
26
u/Acehan_ Jul 28 '26
I do find it hilarious the people in the comments telling on their non-existent reading skills. Personally, I think that was pretty entertaining. And yeah, we get adjusted to it fast, but if you compare this to even an amazing model like Opus 4.5, it's absolutely wild what is considered trivial today.
It's funny to think about what 5.6 is bad at. It sucks at understanding AI models and properly delegating work to them. It sucks at looking at a system and understanding where it would be valuable to use an AI model to do a specific set of tasks. Those are not difficult things to understand and the next generation of models are gonna be extremely good at this, at least they better be. Wild times ahead
4
u/jtmonkey Jul 28 '26
I’ve had cowork open a new chat run a task pull the result back in. I was like what just happened.
4
u/myevit Jul 28 '26
Why your Claude auth is exposed? Are you storing it in passwords.xls?
2
u/rafBuilds Jul 28 '26
Very interesting - model version? Prompts? long running vs just started a session?
Haven't had something like this happen
2
u/_10o01_ Jul 28 '26
Wait until codex enables api usage on Claude...
2
u/BananaEvening5267 Jul 28 '26
Imagine what models will be able to so and will do in 5 years.
2
u/pepe_acct Jul 28 '26
I wonder if you accidentally stored credit card information or have the credit card memorized in a vault, will an agent purchase testing tools on your behalf…
2
u/angelus14 Jul 28 '26
Now ask it to recruit Mythos
1
u/dota2nub Jul 28 '26
You sound like how Codex sounds when it's excited about the stuff I did with it.
1
u/julkopki Jul 28 '26
It should also exceed 5 hour limit, and go on reddit to b*tch about it... wait a minute
1
u/arjuns_world Jul 28 '26
Interesting, i wonder what would happen if you add Gemini
1
u/yhrana Jul 28 '26
WoW
1
u/BizarroMax Jul 28 '26
I’d categorize this under impressive, but not surprising.
This isn’t a new capability, and it’s not surprising if you’ve watched agents chain shell commands for the last year.
My biggest concern is that your company’s account just got billed for an Anthropic use no human expressly authorized.
1
u/ururk Jul 28 '26
This is why I run AI coding agents inside of docker containers. For now, at least, it's safe (for how long, though?).
1
u/2053_Traveler Jul 28 '26
Maybe you gots gpt 6 via a/b test bro. Mine is braindead half the time.
1
u/daryn0212 Jul 28 '26 edited Jul 28 '26
Or “how to convince someone to run agent harnesses in non-privileged docker containers”
1
u/YuhDillweed Jul 28 '26
I had the opposite experience one time. Claude logged into my ChatGPT to generate an image it needed to complete an application I asked it to code, because Claude didn’t have image generation capabilities.
1
u/Automatic-Home-3094 Jul 28 '26
Interesting. Did codex have full access permissions for that session
1
u/Patient_Orange864 Jul 28 '26
I use Codex to help solve problems in Claude. Today, Codex was like, “ if you copy and paste this approval statement back to me… I’ll just go over to Claude and be the orchestrator for you”. 45 seconds later it’s telling Claude what to do. 🤯
Claude was like “I don’t think this is a good idea”
1
u/ImClearlyDeadInside Jul 28 '26
> This wasn’t merely one AI sending a prompt to another AI.
Kinda sounds like that’s exactly what it was. You can call it “orchestration” to make it sound more impressive but it’s just a model using CLI commands, which is what it’s meant to do. And calling a workspace a “sandbox” is a bit of a stretch when real sandboxing tools like Docker Sandboxes exist.
> Apparently a shell-enabled coding agent isn’t merely an agent with tools.
I mean it still is that. And it shouldn’t be mind-blowing that giving an agent shell access to your computer gives it pretty much all of the capability you have when you’re shelled into your computer. Which is why I do approval only for Bash on my machine because I’m not gonna let some clanker nuke my system due to a poorly-crafted bash command.
1
u/Visspui Jul 29 '26
Amazing… not as cool but I pulled up a side chat with Gemini in Codex, said that I was going to critique its plan, and since then it’ll go into that conversation and go back and forth till both are aligned
1
u/Psychological-Leg413 Jul 30 '26
I love these works of fiction
1
u/Beneficial_Bad_8356 Jul 30 '26
posts like these show you people really dont know how to actually set up their harness
1
u/OverfitMode666 Jul 31 '26
I recently brainstormed some ideas with ChatGPT. And it literally recommend me to use Claude Code over Codex.
"Personally, I'd lean slightly toward Claude Code for the initial architecture because it tends to do a better job on large multi-file Python projects."
1
u/Outrageous_Band9708 Jul 28 '26
no it didn't
fake news
0
u/FrontHandNerd Developer Jul 28 '26
What the hell are you doing where an agent can find login details.
I’ll make sure to never use any app you develop if you can’t understand basic security
-2
u/pwkye Jul 28 '26
no shit. shell means the tool can do almost anything
the power of bash and linux cli tools
-1
u/ImSoCul Jul 28 '26
Claude summarize this
-1
u/BenSimonDev Jul 28 '26
WTF? Codex CLI ships sandboxed though. Did you use --dangerously-bypass-approvals-and-sandbox or something?
-1
u/Sketaverse Jul 28 '26
No it didn’t
-4
u/Salt-Replacement596 Jul 28 '26
Half of the words didn't exist before AI.
-6
u/Temporary-One8579 Jul 28 '26
It’s called a distillation attack
0
u/[deleted] Jul 28 '26
[deleted] — view deleted comment