r/OpenaiCodex • • Jul 16 '26

Introducing the Codex Micro

Thumbnail
youtube.com
7 Upvotes

r/OpenaiCodex • • 1h ago

I'm Leaving

18 Upvotes

I've been using Codex for quite some time, but this time I've reached my limit. Since the beginning of the year, OpenAI has been constantly reducing quotas under the pretext of improving the efficiency of their successive models.

In practice, it's as if the rates had increased tenfold since 2025.

The merger of the Codex/Workspace quota with ChatGPT was the last straw

With the improvement of local models, I’ve finally been able to consider a viable alternative. Using PI, I’ve developed a set of modules that allow any LLM to supervise, refine, and correct a local LLM or a commercial model with reasoning deficits, unlike the standard practice of using an advanced LLM alongside less advanced reasoning subagents.

So I’ve put together my most cost-effective setup, and I no longer need OpenAI, cause other providers offer the necessary supervision and advanced reasoning at a much lower cost.

Bye-bye, OpenAI.


r/OpenaiCodex • • 2h ago

Feedback / Complaints Does this mean that now 220eur sub is going to burn in less than an hour rather than 2 hours despite using medium effort and slow mode?

Post image
4 Upvotes

r/OpenaiCodex • • 17h ago

Feedback / Complaints This is my last month with ChatGPT

65 Upvotes

I've been subscribed to ChatGPT Plus since before Codex even existed in its current form. Whether intentionally or not, I guess I eventually became somewhat of an OpenAI fanboy.

Throughout this year, I've heard countless people saying that Claude was miles ahead of OpenAI, but I always thought they were exaggerating.

In my opinion, June and July were OpenAI's peak this year with the release of the 5.6 models. Since then, however, it feels like everything has been going downhill, with no clear signs of a turnaround. It feels like one bad decision after another, and somehow the end of the year is shaping up to be even worse.

A few days ago, I participated in a competition with my team. My teammates were using Claude while I was using Codex, and I simply couldn't keep up with them. They were getting better results, working faster, and by the time they had used around 50% of their allowance, I had already exhausted mine.

That experience really changed my perspective.

And now, after receiving this email explaining that some requests were consuming less of our allowance than intended and that we'll be reaching our usage limits even sooner, I think I've finally had enough.

Paying the same subscription price while effectively getting less usage, especially when the competition already seems to be offering a better experience, is becoming increasingly difficult to justify.

It's genuinely disappointing because I wanted OpenAI to succeed, and for a long time, I defended their products.

For those of you currently using Claude's $20 plan, how does it compare to ChatGPT Plus and Codex in terms of usage limits, coding capabilities, speed, and overall reliability?

I'm currently deciding between switching to Claude or Cursor, and I'd really appreciate hearing from people who have actually used both.

Is anyone else in the same situation?


r/OpenaiCodex • • 30m ago

News Thank you for not charging us for your mistake.

Post image
2 Upvotes

Imagine getting a $500 API bill because OpenAI accidentally overcounted your usage by 30%.😂😂😭😭

Wtff is wrong with them?????

Do they know how competition works? Ask your damn AI.


r/OpenaiCodex • • 8h ago

Do you hand off between sessions, or ride one long session until it compacts?

3 Upvotes

I used to be a ride-it-till-it-dies person. One session, days long if I could keep it alive. Writing anything down felt like overhead.

Then compaction hit mid-refactor once and the session came back cheerful, confident, and missing the one decision that mattered. We had ruled out a whole approach two days earlier because it fell over on empty input. The compacted version rebuilt exactly that approach. I only caught it because the tests started failing in a way I recognised.

So I flipped to handoff notes between sessions. Which worked, until the notes started dropping the same kind of thing, just slower, and in my own words this time.

I built something to fix this for myself, so I am not selling anything here. Just collecting feedback to see if other people landed somewhere smarter, honestly.

Where did you land? Hand off, ride the long session, or some messy mix of both?

What actually made you pick that side? What broke on the other one?

And what goes first when it goes wrong? When compaction eats something, is it decisions, failed attempts, the boring setup details? If your handoff misses something, is it the same stuff?

Does it change for client work vs your own projects? Curious what you are building with this setup anyway, own product, client work, something else?

Phone angle too, because I do a lot of my thinking out loud with speech-to-text on my phone and none of that lives in the session on my laptop. Is that just me? Do you ever plan something on your phone and then have to rebuild the whole thought at the desk?

One more. Have you ever tried a different tool and bounced off it just because re-briefing it from scratch cost too much? That used to stop me trying new tools more than anything else did. Have you ever considered a memory tool that keeps your context across tools, or did you not even know those exist?

What if something handled all of this for you, in the cloud over MCP, so every agent and tool got the same context: decisions, failed attempts, conversations, skills, procedures, tasks. You never touch a file again. Would you guys pay for something that fixes this?

Have you ever thought about paying for a tool to manage all of this for you, or has the thought never crossed your mind?


r/OpenaiCodex • • 3h ago

Discussion Estimating Pro 200 weekly Codex usage by model from 1% intervals

0 Upvotes

I have been looking at how much usage the weekly Codex meter on a $200 Pro subscription represents when different models are mixed. Instead of projecting a single interval, I recorded local token metadata between successive 1% meter changes and fitted all the intervals together. No prompts, project names or work content are included in this analysis.

Snapshot: November 26, 2026; one observed weekly cycle. The fit uses 34 observed 1%-wide intervals and two models. One additional interval containing codex-auto-review was excluded in full because that model appeared in fewer than three intervals.

Under the assumption that each model contributes linearly to the same shared weekly meter, I fit the per-model coefficients by least squares:

Terra_tokens × Terra_coefficient + Luna_tokens × Luna_coefficient ≈ 1% of the meter

Taking the reciprocal of a coefficient gives an estimated number of tokens per 1% if that model alone were used with a comparable workload. Multiplying by 100 is a hypothetical full-cycle extrapolation, not a measured full cycle:

• GPT-6.1 Terra: about 153 million tokens per 1%, or 15.3 billion per weekly cycle. Leaving out one interval at a time gives approximately 15.2–15.5 billion per cycle.

• GPT-6 Luna: about 670 million tokens per 1%, or 67.0 billion per weekly cycle. The leave-one-interval-out range is approximately 57.6–81.5 billion per cycle.

The in-sample root-mean-square residual is about 14% of a 1% interval. The ranges show sensitivity to removing a single interval, not statistical confidence intervals. We have not validated the model on an independent dataset, and Luna is noticeably less stable than Terra.

Important caveats: these are raw token counts, heavily dominated by cached input in this workload; they are not separate model-specific pools, official limits, billing weights or guarantees. Fresh input, cached input, output and reasoning may have different effects on usage, but this fit uses total tokens per model and does not identify those weights. Meter rounding, reporting delays, activity on other devices, missing local records and changes in workload or quota policy can all shift the estimates. Scaling a 1% estimate to 100% also assumes the same mix and rules persist across the whole cycle.

I would be interested in independent measurements, especially with different cache/output mixes or enough variation to separate more models. How would you improve the regression or validate it out of sample?


r/OpenaiCodex • • 1d ago

Feedback / Complaints What fresh hell is this?

Post image
81 Upvotes

r/OpenaiCodex • • 15h ago

Anyone else stuck at email verification in Codex desktop with AAS enabled?

2 Upvotes

I’m trying to sign in to Codex desktop on Windows (build 26.1117.4957.0). After I use my FIDO2 security key, Codex asks for an email code that never arrives.

I tried a fresh ChatGPT sign-in in Chrome Incognito on the same PC, with the same account and the same hardware key. ChatGPT signed me in without asking for an email code. Advanced Account Security was enabled for both attempts, and the account has Daybreak access.

Has anyone else with AAS enabled run into this? If you got back into Codex desktop, what worked while keeping AAS enabled?


r/OpenaiCodex • • 19h ago

Question / Help If i would like to switch, what sub do you recommend + switching flow?

4 Upvotes

So I actually really don't want to switch since i like Codex and 6.2 was quite good for me.

But with that current stupid mail concerning the usage and the still not so good FE performance im considering it more and more.

Right now im on the 100$ plan and I love that we don't have the 5hr limit, in claude that would mean the 180$ subscription.

How far can I go with it compared to my 100 OAI sub? Is it directly comparable to the OAI 200 sub? And are there any other limitations beside image gen, that claude won't do?

And I have quite a few projects and so on and would need to switch them over, anyone has a good flow for that?


r/OpenaiCodex • • 15h ago

Anyone else stuck at email verification in Codex desktop with AAS enabled?

1 Upvotes

I’m trying to sign in to Codex desktop on Windows (build 26.1117.4957.0). After I use my FIDO2 security key, Codex asks for an email code that never arrives.

I tried a fresh ChatGPT sign-in in Chrome Incognito on the same PC, with the same account and the same hardware key. ChatGPT signed me in without asking for an email code. Advanced Account Security was enabled for both attempts, and the account has Daybreak access.

Has anyone else with AAS enabled run into this? If you got back into Codex desktop, what worked while keeping AAS enabled?


r/OpenaiCodex • • 20h ago

Bugs or problems Missing option to move chats into custom sections...only "Move to project" shows up now?

1 Upvotes

Up until a few days ago, I could easily move chats into my created sections. Now that option is gone?I only see the option to move a chat into a project. Also I tried creating a new section and it worked and it say drop chats, pages or projects. I can drag&drop the whole project but not individual chats.

Has anyone else noticed this change or run into the same issue with ChatGPT and Codex? Haven't seen any clear answers or similar reports yet...is this a UI change, a bug, or am I missing something?


r/OpenaiCodex • • 1d ago

limit not tracking?

2 Upvotes

I did an extremely heavy pass through and im on the pro model. My weekly limit stayed constant at 74%, is something not counting properly?


r/OpenaiCodex • • 1d ago

Running more than one agent chat? How much of your day is just relaying between them?

2 Upvotes

I used to run my bigger builds across three separate chats. One for planning, one doing the actual work, one reviewing. Sounds organised. In practice I was the transport layer.

I'd paste the plan into the builder chat, wait, copy the result over to the reviewer, then copy the reviewer's comments back again. Half the comments were not even feedback, the reviewer would read a note like "this still fails on empty input" and treat it as a brand new assignment and go off building something I never asked for. That one cost me most of an afternoon once, untangling work nobody wanted.

The dumber failure was quieter. I'd summarise the plan before pasting it (because the full thing felt too long) and my summary would drop the one constraint that actually mattered. The builder did exactly what I handed it. It just was not the thing we had planned.

I built something to fix this for myself, so I am not selling anything here. I am just collecting feedback to find out whether this relay thing is a real cost for other people or whether I set it up badly.

How do you handle this? How much of a build day actually goes to moving text between your own agents, roughly? And where does it break for you, the dropped constraint, the verdict read as an assignment, pasting into the wrong thread (done that too)?

What have you tried instead? One session with subagents, a handoff file with fixed sections, letting the tools talk to each other directly? If you went back to one chat, did you lose anything the separate reviewer used to catch?

Curious what you are building while you do all this relaying, by the way. Own product, client work, day job, just for fun?

And a phone angle, because I do a lot of my thinking out loud with speech-to-text on my phone and all these chats live on my laptop. Is that just me? Do you ever start a thought on your phone and then have to rebuild it at the desk?

What if something handled all of this for you, in the cloud over MCP, so every agent and tool got the same context: decisions, failed attempts, conversations, skills, procedures, tasks. You never touch a file again. Would you guys pay for something that fixes this, or is the relay kind of where your judgment lives and you would keep it anyway?

Have you ever thought about paying for a tool to manage all of this for you, or has the thought never crossed your mind?


r/OpenaiCodex • • 1d ago

Found the best place to put the weekly allowance

Post image
7 Upvotes

I was like how in the world I still have 70% left and 3 days left to use them, I get lost between work sessions, but I believe here in this place it gives me a perspective on what to do next. Love it.


r/OpenaiCodex • • 1d ago

Question / Help What are the file upload/download limits in Codex Cloud?On the $20 Plus plan, what are the maximum file size, total upload size, and upload frequency limits? Can I upload and download entire ZIP projects without GitHub?

2 Upvotes

What are the file upload/download limits in Codex Cloud?

On the $20 Plus plan, what are the maximum file size, total upload size, and upload frequency limits? Can I upload and download entire ZIP projects without GitHub?


r/OpenaiCodex • • 1d ago

Anything happened with Chatgpt Work/Codex?

0 Upvotes

It keeps on Thinking or Running Command without any response.
Tried everything, however can't see any problem.

Sometimes it delivers what I ask for (working with local files for example), however in the background, without any response.

Tried updating it, restarting, reconfiguring access, nothing.

Using: 26.1120.41243 is currently the newest version available.


r/OpenaiCodex • • 2d ago

News So, does this mean the planned merger between Chat and Work is no longer happening?

24 Upvotes

With the announcement of GPT-6.2 Sol specifically for the Chat tab, I'm wondering if OpenAI still plans to merge Chat and Work into a single experience, or if they've decided to keep them separate.


r/OpenaiCodex • • 1d ago

We just open sourced Filament AI Agent and Orchestrator. Beats Claude, Codex and Cursor in benchmarks and you can use All your subs at the same time

0 Upvotes

Filament is our own internal tool used to help us harness the LLM Models to their full potential beating Claude code in task parallelism, time and the cost.

Use your existing Claude subscriptions with as many accounts at the same time. Comes with powerful orchestration features where you can create as many custom sub agents with any instructions and model.

Comes with powerful memory engine that uses a small local llm model that runs under 500MB Ram and remembers every rule and facts so no more Claude md files or project instructions needed.

Memory Engine knows all about it so every session knows everything about your project.

Give it a shot.

https://github.com/invertibleMatrix/filament


r/OpenaiCodex • • 2d ago

Feedback / Complaints reset window shift question

3 Upvotes

Why OpenAi always sets a new 5 hour and week window when they lanuch or we use a reset card? this just sounds like a deadline delay not usage limit reset, they shift our original reset baseline and time and tell us giving a new usage, it was a trick, could anyone know how Claude or Gemini's reset work? is it same as OpenAi?


r/OpenaiCodex • • 2d ago

Devs: who prunes your agent's context file, and how do you know a line is safe to cut?

2 Upvotes

I used to let my context file just grow. Every session I'd add a line or two, a decision here, a weird workaround there, and I told myself I'd clean it up later. Later never really came. By the time the file was a few hundred lines the agent was following stuff that was not true anymore, like a note about a config file I'd deleted weeks earlier, and I was the one who had put it there.

The annoying part was the pruning itself. Cutting a line felt risky in a way adding one never did. I'd sit there at the end of a session, tired, rereading lines and trying to remember if the code still needed that warning or if I'd already fixed the thing it was warning about. Honestly half the time I just left it in. Rent free, on every single run.

I built something to fix this for myself, so I'm not selling anything here. I'm just collecting feedback to see if this ritual is a real cost for other people or if I was doing it badly.

How do you handle it? What is your actual test for cutting a line, is it that the code already says it, or it has not been touched in weeks, or it points at a file that does not exist anymore? Do you prune on some kind of schedule, or only after the agent follows a dead line and wastes a run?

Has cutting ever bitten you? I deleted a note once about why a test was skipped and then watched the agent confidently unskip it two days later. That one stung.

Also curious what you're building with the agent while all this piles up. Own product, client work, day job stuff, just messing around?

And a phone thing, because I do a lot of my thinking out loud with speech-to-text on my phone and the context always lives on my laptop. Is that just me? Do your notes and plans travel with you at all, or is this strictly a desk job for you?

What if something handled all of this for you, in the cloud over MCP, so every agent and tool got the same context: decisions, failed attempts, conversations, skills, procedures, tasks. You never touch a file again. Would you guys pay for something that fixes this, like would you pay for the still-true check to happen without you sitting there doing it, or is your judgment kind of the whole point of the ritual?

Have you ever thought about paying for a tool to manage all of this for you, or has the thought never crossed your mind?


r/OpenaiCodex • • 2d ago

Codex & Dot: What Helped You Resume The Same Task Without Starting Over?

1 Upvotes

I had my app’s local development preview open in Chrome on my Mac. The page still looked fine. A fresh request to the same loopback address returned “Connection refused,” and Terminal found no listener on the port. Chrome still had the old page on screen. That gave me a definite answer about my preview server. I’m looking for an equally useful check when Dot says it’ll continue an existing Codex task and I’m left wondering what happened.

I’m not a developer by training. These tools have helped me build things I couldn’t have built on my own. I’d appreciate hearing what people actually checked before restarting, retrying, or rebuilding a handoff, especially if your first guess turned out to be wrong.

How I Got Here: May Through November

May–September: moving the work between sessions. I sometimes copied Terminal output and excerpts by hand. One handoff had passing runtime checks and unresolved TypeScript errors. Another had checksums but didn’t give the receiving session the full source. An older handoff also left out decisions the next session needed. In September, a fresh coding session did reopen the transferred files and verify their hashes. That confirmed those bytes arrived. It didn’t establish that a later session would pick the right checkout, recover the decisions, or exercise the same behavior.

October: several attempts stopped at different points. I saw a model-capacity warning on one path and approved rule changes that didn’t save on another. Some ChatGPT Library files were listed but full reads returned HTTP 403 / scope_violation, even on newly attached copies in my tests. In a separate Mac session, the computer still showed as connected after the task lost the browser access it needed. And an unattended cloud reconciliation did finish and leave a receipt I could reopen. I can’t explain all four outcomes as a single service outage or a Mac problem.

November: a completed pass didn’t always lead to another pass. Twice, Dot later acknowledged that it finished one pass without starting its successor. In a different gap, I couldn’t establish whether the follow-up was ever submitted. Yet another unattended cloud follow-up ran without my Mac connected and left a result I could reopen. An acknowledgment, a scheduled time, and a result I could actually read were three different kinds of evidence.

What The Measurements Did (And Didn’t) Show

  • Local listener vs. cloud browser. The Mac’s stopped listener was a local result. In a separate cloud rehearsal, an HTTP client in the preview server’s own network environment fetched all 88 expected files, but Chromium failed before navigation. Fetching files didn’t execute the app or verify a click. Running a command against the same localhost string from another environment wouldn’t test that listener, either. And passing code checks in a separate run didn’t verify a browser interaction at that checkpoint.
  • Proxy refusal vs. a working alternate route. An archive fetch was refused by a proxy before artifact bytes arrived. A later download by another route worked. That got the file through; it didn’t establish whether the first route had recovered. In a separate Codex Cloud report, the reporter could read a saved allowlist draft, but publication failed and runtime artifact fetches still got proxy CONNECT 403. Their evidence points to a draft/runtime distinction in their setup. I don’t know whether my refusal had anything to do with configuration publication.
  • Reconnect vs. actual work. Two Mac connections came back in about five seconds. One recovery showed an authorization error, but that doesn’t put authorization at the start of the incident. I didn’t verify the interrupted task’s first successful operation afterward. On a different recovery I reopened files and checked them against eight pinned manifests. That’s the kind of readback I’d want, from the task that needs the files rather than from just any working session.
  • Commander vs. Mac performance. One Remote Desktop Commander probe took about 6.9 seconds end to end; the local command itself took about 0.18 seconds. Most of that wait was before execution, but I couldn’t locate it more precisely. Removing Commander didn’t eliminate the lag I later noticed. That doesn’t make the remote path irrelevant to local work, and it doesn’t explain a cloud pass that never started.
  • Saved vs. delivered vs. usable. A fresh reader on the producing host reopened an export, but I didn’t verify that the intended reader could open the pinned revision and read the uncertainty label correctly. Separately, replies sometimes appeared on my phone sooner than on my Mac. Fast headers in Chrome DevTools didn’t tell me when the complete reply arrived or when it rendered. I didn’t line those events up for the same reply. Letters appearing late before Send is another symptom; it doesn’t time Codex execution.

The Newer Comparisons That Changed What I’d Check

Who created the thread, and where does it run? In a Nov. 23 macOS report, a new manually created Codex thread accepted its initial message locally. Dot could read it but reported read-only access, and no follow-up appeared, even after a restart. An older thread had previously accepted Dot follow-ups, though it wasn’t retested side by side. In a three-case Windows comparison, Dot could only read both of the user-created threads, one local and one cloud; a Dot-created cloud task accepted follow-ups. I didn’t capture an explicit send error in my own unexplained gap. These reports make exact-thread eligibility worth checking, but I can’t infer an ownership rule from them.

Can another route recover the same task? In u/Prior-Palpitation393’s r/Codex thread, u/ItsCremepai got an existing cloud task to answer on the web after Windows desktop couldn’t open it, then reported that Dot follow-ups were accepted through the cloud route. That’s a reported recovery of work on the original task, without fixing desktop. I’d love to know whether anyone managed the same thing on a Mac or with a genuinely local-only task.

Did it finish, or just stop? Was the answer missing, or only missing on screen? A Codex CLI report on Ubuntu using Terra logged task_complete while the implementation was still unfinished. That run had clearly started. In a separate Windows desktop report, the assistant text was saved but didn’t appear in the affected client. Those are better comparisons for different symptoms than treating every quiet window as a failed send. And a Library report found real search excerpts while full retrieval returned 403 in a different conversation. Direct upload worked for that reporter, but my newly attached copies also failed in October. I wouldn’t assume that workaround repairs either set of saved files.

What Would You Check First?

The smallest test I can think of is an existing disposable Codex task with a harmless marker file at a known revision. I’d send one labeled, read-only request through Dot. On the receiving side I’d look separately for the exact message, a turn starting, and the first actual read from the intended checkout. Then I’d check whether the returned marker and label reached the conversation that initiated the request. I’d note who created the thread, whether its environment was local or cloud, and which client I used. If the label never appeared, I’d check for it before retrying and use a different label for a direct-Codex comparison. If I can’t see an event, I’d mark it unverified rather than assume it didn’t happen.

Is there a simpler supported check or a better control for this? If you’ve recovered an existing task, what’s the first thing you checked that changed what you did next? I’d especially appreciate hearing what still failed after your workaround, or whether I’m expecting Dot to continue a kind of thread it isn’t meant to write to. One good example or correction would help a lot. Thanks.


r/OpenaiCodex • • 2d ago

I kept coming back to Codex waiting on "Would you like to run the following command?", so I built a way to answer it from anywhere

0 Upvotes

Codex CLI is at its best on long tasks, which is exactly when I'm not watching it. I'd switch to another window, come back an hour later, and find it had stopped on its second approval.

So I built Okey, a Mac app (I'm the developer). When Codex asks, the question shows in the Mac's notch with the exact command, and you answer with the same digit you'd press in the terminal, by typing, or by holding fn and saying it. If you're away, the Okey iPhone app gets the same question, even on a locked phone, with Face ID before anything that runs a command. And if you close the laptop, Okey Cloud keeps Codex running on your own small machine in the EU, on your own ChatGPT plan or an API key.

It handles Codex's command, file-edit and MCP tool approvals, and Plan-mode questions. Codex's sign-in and update screens stay in its own terminal. It doesn't change Codex or use your tokens.

It also works with Claude Code, Mistral Vibe, OpenCode and Grok, if you run several agents.

Mac with Apple silicon, macOS 14+. Free to start, with 7 days of Pro: getokey.com

Do you run Codex in a stricter approval mode and answer every prompt, or loosen it so it doesn't wait on you?


r/OpenaiCodex • • 3d ago

GPT-6.2 Sol blocked a legitimate security fix twice. Switched to GPT-6.1 Sol and it completed the task no issues.

23 Upvotes

I've been developing my own Windows desktop application, SlipUpClipz, using Codex.

During development, I discovered a legitimate PostgreSQL security vulnerability in an isolated staging environment. A database role had excessive permissions that could allow unauthorized changes to reward balances.

I asked GPT-6.2 Sol (Medium) to fix the permissions, preserve the existing migrations, and run security tests against disposable local PostgreSQL databases.

Instead of completing the task, ChatGPT put a restriction, or 6.2 has a weird bug and it returned:

"This content can't be shown. We take extra care with some cybersecurity requests. If you're doing authorized security work, apply for Daybreak to get broader access."

I figured the original prompt was too detailed, so I tried again with a much shorter prompt focused exclusively on defensive remediation.

Same restriction.

I even contacted OpenAI Support, which acknowledged that legitimate security work can trigger false positives and suggested narrowing the prompt or applying for Daybreak.

Then I switched to 6.1 Sol (Extra High) and submitted the original, comprehensive prompt.

It completed the task successfully.

The agent:

  • Identified the excessive database permissions.
  • Implemented a new versioned PostgreSQL security migration.
  • Restricted direct writes to protected reward balances.
  • Introduced transaction-bound authorization permits.
  • Verified that unauthorized database operations were denied.
  • Passed 94 offline reward tests, 21 staging database tests, 13 authorization tests, and 43 Pro licensing tests.
  • Preserved the production environment without deploying anything.

All of this was authorized development on my own software, using disposable local databases.

I'm not saying GPT-6.2 is less capable. This could simply be a difference in how the models or their safety checks handle cybersecurity-related requests.

But it was frustrating that the newer model couldn't proceed with a legitimate security correction that another model completed without issue.

Has anyone else noticed GPT-6.2 Sol triggering more cybersecurity restrictions than GPT-6.1 Sol, particularly during defensive programming or security maintenance?

I'd be interested to know whether this is an isolated false positive or something other developers are experiencing.


r/OpenaiCodex • • 2d ago

News Stop wasting tokens & nuking files: I built Aetheris Microbrains, a deterministic sub-2ms pre-flight gate for OpenAI Codex CLI (and Claude Code / Antigravity)

1 Upvotes

If you’ve been running autonomous coding assistants like **OpenAI Codex CLI**, **Claude Code**, or **Google Antigravity**, you know the routine:

  1. The agent hallucinates bad Python syntax or tries an unsafe shell command.
  2. The execution fails (or worse, wipes `.env` / formats wrong files).
  3. The error trace gets dumped back into context.
  4. You burn $0.10–$0.50 and 3–5 recovery turns just getting the model back on track.

To solve this locally with zero GPU overhead, I built **Aetheris Microbrains** — an ultra-lightweight, deterministic 4-layer pre-flight AST policy engine and tool gate that intercepts tool calls in `< 2 ms` before execution.

We just added native integration for **OpenAI Codex CLI** (alongside Claude Code, Hermes, and Google Antigravity).

🔗 **GitHub Repo:** https://github.com/drtikov/microbrainsforagents

---

### 🤖 What it does in OpenAI Codex CLI

Codex CLI supports native `PreToolUse` and `PostToolUse` command hooks. Microbrains plugs directly into `.codex/hooks.json` via `--host codex`:

  1. **PreToolUse Hard Deny (`exit 2` + `permissionDecision: "deny"`):**

    - Structural AST validation catches broken Python syntax (unclosed brackets, bad indentation) before Codex ever touches disk.

    - Vetoes credential exfiltration (`cat .env | curl`, `AWS_SECRET_KEY` in code) and destructive commands (`rm -rf /`, raw disk writes).

  2. **Seamless Escalation:**

    - Ambiguous commands cleanly defer to Codex’s host approval policy (`defer_to_host_policy`), avoiding broken execution while respecting your approval settings.

  3. **PostToolUse Security Warnings:**

    - Scans tool outputs for leaked secret keys or indirect prompt injections and injects contextual warnings into Codex before context compaction.

  4. **Zero Hassle Setup:**

    - Install with one command:

```bash

pip install -e .

python .agents/skills/microbrains/install_codex_hook.py --profile dev

python .agents/skills/microbrains/install_codex_hook.py --self-test

```

- Supports a safe **`--shadow`** mode so you can audit what it *would* block in `decision_journal.jsonl` before turning on active enforcement.

---

### 📊 Measured Benchmark Results (Windows / Python 3.10.6)

Here are direct measurements from our deterministic benchmark suites:

#### 1. Deterministic 26-Step Coding Session A/B (`test_skill_gain_ab.py`)

Tested across 14 benign tool calls and 12 seeded hazards:

* **Hazards caught:** **12 / 12 (100%)** *(0/12 without gate)*

* **Python syntax crashes:** **4 → 0 (100% fewer)**

* **Unsafe actions allowed:** **8 → 0 (100% blocked)**

* **Benign false positives:** **0 / 14 (0.0% false alarm rate)**

* **Wasted recovery turns:** **8 turns eliminated** (~37,055 modeled input tokens saved, ~$0.1112 saved per session)

* **Error-feedback tokens in context:** **146 → 37 (-74.7%)**

* **Local gate latency:** **0.73 ms mean / 1.27 ms p95** (pure CPU NumPy/AST)

#### 2. Security & Anti-Evasion Benchmark (`10_agent_security_benchmark.py`)

* **Attack vectors caught:** **22 / 22 (100.0%)**

* **Benign controls blocked:** **0 / 12 (0.0%)**

* **Local decision latency:** **0.41 ms p50 / 2.79 ms p95**

#### 3. Real SWE-bench Lite Gate (300 Real GitHub PR Diffs)

* Real gold patches evaluated: 71.7% auto-allowed, 27.3% safely escalated, and 1.0% denied (only for hardcoded `eval`/`exec`).

* **AST Syntax False Positives on real code:** **0.0%**

* **Synthetic code mutations caught:** **60 / 60 (100%)**

#### 4. Hook Overhead Note

The engine itself evaluates in under **1.5 ms**. On Windows, spawning a fresh Python subprocess for command hooks takes ~400 ms p50 per hook (Python interpreter cold-start). If you want that down to single-digit milliseconds, Microbrains includes a local warm daemon (`aetheris-daemon`).

---

### 🏆 What You Win by Using Microbrains

  1. **Lower API Bills & Fewer Context Bloats:** Stopping a syntax error or hallucinated shell call before execution prevents 5–15 seconds of waiting and the cascading multi-turn error loops that burn through prompt context.
  2. **Air-Tight Local Guardrails:** Protects `.env`, `.ssh/`, `.git/hooks/`, detects base64 decode-to-exec tricks, and stops outbound credential egress.
  3. **Prompt Cache Protection:** Includes sticky-session tool narrowing that cuts tool schema tokens by **up to 56.7%** without breaking Anthropic/OpenAI prompt cache prefixes.
  4. **Complete Forensic Journal:** Everything evaluated is logged with SHA256 hashes and rationale. Run `python -m aetheris_microbrains.audit --explain` to see exactly why an agent call was blocked or escalated.

Code is open-source (Apache-2.0):

👉 **Check it out on GitHub:** https://github.com/drtikov/microbrainsforagents

Feedback, PRs, and test cases are welcome! Let me know if you run it in your own Codex or Claude Code setups.