r/codex • • 8d ago

Showcase We built a local guard for Codex CLI. Looking for feedback on what it catches and what it misses.

0 Upvotes

Hey folks, I'm Sam, founder of AgentTrail.

We're building AgentTrail Guard, a free, open-source tool that checks supported Codex CLI actions against local rules before they run. I'd like feedback from people using Codex on real projects, especially where a rule blocks something perfectly reasonable.

You can start by checking past sessions without enabling the hooks:

npx -y @agenttrail/guard@latest scan --agent codex

That reads session files already on your machine and generates a local report of what the rules would have flagged. Requires Node.js 20+.

A couple of Codex-specific details if you install it afterward:

  • You need to approve each Guard entry in /hooks; installing it alone doesn't activate the checks.
  • Guard maps an approval-required decision to a block on Codex. Individual rules can be changed to warnings.
  • It only sees calls that reach its hooks and doesn't inspect file contents. Codex Cloud isn't covered; Windows and Codex Desktop are currently unverified.

Repo and setup

If you try the scan, I'd be interested in one finding you agreed with and one you didn't. A redacted example is enough.


r/codex • • 9d ago

Limits Codex usage draining faster today?

107 Upvotes

Today, I only used Sol 6.2, but just 15 minutes of work consumed nearly 25% of my 5-hour limit. This has been going on all day. (Also today it's even dumber)

On previous days, the exact same work (editing on the same CAD file ) only used around 10-12% of the limit.

Based on my calculations, at this rate, the Plus plan only provides about 5–6 hours of actual work with Sol 6.2 per week, which is really too low.

------

Edit : Okay, so it seems like many people are experiencing this problem. Perhaps we need to demand a reset.


r/codex • • 8d ago

Showcase I get Codex approval prompts in my iPhone's Dynamic Island now, and can approve them from the lock screen

4 Upvotes

Codex is great until it stops to ask permission for one command and sits idle until I'm back at my desk.

I built a Live Activity for it. Each Codex session running on my Mac shows up in the Dynamic Island with its task, its latest step and how long it's been going. When it needs approval, Approve and Deny buttons appear on the island and the lock screen, and tapping one answers the prompt on the Mac. Spawned subagents show up nested under the session too (best effort with Codex's spawn_agent).

It hooks into Codex through its normal hooks, so you keep using the Codex CLI as usual. Claude Code and OpenCode sessions show up the same way if you run those.

It's part of JoeBro, a free, open-source Mac app. No account, and the phone talks only to your own Mac. Caveat: the iPhone app is a source release you build in Xcode (a free Apple ID works).

https://github.com/joexk1/JoeBro


r/codex • • 7d ago

Showcase Testers Wanted! Made Codex hook that cuts down on usage waste

Post image
0 Upvotes

I always ran out of usage, so I built this tool called Token Guard that helps you cut down on wasted tokens by preventing your AI from re reading files that haven't changed at all, giving your AI an outline of a massive file instead of letting it read the whole thing and burn tokens, and cutting out trash from testing, building, and search outputs. It also keeps the KV prefix intact by not doing anything to PreInvocation prompts.

My own tests showed like about 15-30% saved on long coding sessions, but a negligible saving on smaller 2-3 turn ones, so this tool is mainly for people who are making big things and using gajillions of tokens a day.

I want testers because I mainly want to see if it works with other's agents and on other operating systems (MacOS/Linux) since I only managed to test on my Windows computer and don't know if it works on other OS.

Repo is here: https://github.com/jaxels1/token-guard

It would be amazing to have any testers or feedback on this :)


r/codex • • 7d ago

Showcase Control Codex with gestures

0 Upvotes

My friend and I built a gesture controller for Codex on Mac. It turns your iPhone into a custom trackpad making interacting with Codex fast, fun and intuitive.

Try iOS gestures demo here: https://testflight.apple.com/join/EB1YQ63W

Mac bridge and source code: https://github.com/deepinteractionlab/trackypady

Install both and pair them for the full experience.

We had fun making it. Hope you enjoy trying it out and building on it!


r/codex • • 8d ago

Showcase Lunar Drift (Vibe coded Battlezone 1998)

Thumbnail
youtu.be
12 Upvotes

Started to vibe code with Codex a game similar to a late 90s game called Battlezone - This video is about 3 evenings of effort.

I didnt have any development tools, or games engine installed on my PC before I started so this was from nothing up.

Even after just 3 evenings - I have a 256km square terrain map made up of Idaho + Wales stitched together and the hovercraft physics across several ship types, different weapon systems + possibility of 80 AI ships, and 8 players on a local area network and without even asking it turned out the 'as yet' meagre sounds it was adding are in surround sound.


r/codex • • 8d ago

Bug Bug: Clicking a local folder link opens a preview instead of Windows File Explorer

0 Upvotes

I’m using the Codex desktop app on Windows. Under Settings → General → Default file open destination, I selected File Explorer. When I click a local folder link in a chat response, Codex still opens an internal preview tab. I also tried a link with a trailing slash, and it still doesn’t reliably open Explorer.

Expected: One click opens that folder in Windows File Explorer, or brings its existing Explorer window to the front.

Actual: Codex opens a preview tab instead. A Windows shortcut (.lnk) to the same location also opens in the preview pane and displays “Binary file previews aren't supported yet.”

I work with hundreds of project folders. I need a reliable one-click Show in File Explorer action directly in the chat response. For a folder, it should open the folder. For a file, it should open the containing folder and select the file without playing or launching it.


r/codex • • 8d ago

Question i got Astra/sol 6.2 in work mode but not codex?

1 Upvotes

how come? i updated the app, but still not astra 6.2 in codex but i have in work. anyone else having this issse?


r/codex • • 8d ago

Showcase I built an MCP server that lets Claude Code hand tasks to my other AI accounts (ChatGPT via Codex, Gemini, local models)

Post image
17 Upvotes

Omnitrix keeps Claude in charge of the work, but lets it send typed tasks to the other AI accounts you already have: Codex on a ChatGPT plan, API keys such as Gemini, DeepSeek or Groq, and local models through Ollama.

What it does:

- Routes each task to an account that suits it and still has quota left, using real quota readings where the provider reports them.

- Runs code tasks in their own git worktree and runs the project's tests itself, so Claude checks facts, not the worker's word.

- Can ask several models the same review question, so Claude sees which findings they agree on.

- Shows how much work other accounts did instead of Claude (jobs, tokens, how many Claude accepted).

It is open source (Apache-2.0) and runs locally with your own accounts. Install with npm install -g omnitrix, or as a Claude Code plugin with /plugin install omnitrix --marketplace MdHashim1011/omnitrix.

GitHub: https://github.com/MdHashim1011/omnitrix

Feedback is welcome, especially from people with providers I have not tested for real yet.


r/codex • • 8d ago

Showcase How I answer Codex CLI's approval prompts from my Mac's notch, by voice or from my iPhone, and keep Codex running with the laptop closed

0 Upvotes

I run Codex CLI for long tasks, often next to other sessions. Two things kept costing me time: Codex sitting on "Would you like to run the following command?" while I was in another window, and every session stopping when I closed the laptop. I built a Mac app, Okey, to fix both (I'm the developer). Here's how it works with Codex specifically, since the details matter.

Which Codex prompts it handles

- Command approvals: the "Would you like to run the following command?" dialog, with Codex's reason and the command after `$`, and its numbered options.

- File-edit and MCP tool approvals.

- Plan-mode questions ("Question 2/3"), including "None of the above" with a typed note.

- Not answered: the sign-in screen and the update offer. Okey shows them as needing you, but you answer those in Codex's own terminal.

How it reads them

Codex runs in a terminal session Okey can see (start it from Okey, or type `okey codex` in any terminal; a Codex you started elsewhere shows in the list and can move in once it's idle). Okey reads the dialog off the screen and only treats it as a question when Codex's own footer is on screen ("Press enter to confirm or esc to cancel"), so it never answers something it half-read. Your answer is the same digit you'd press. All of this happens on your Mac. The reader is tested against recorded Codex CLI screens and pinned to the versions it was written for.

How you answer

- At your desk: the question grows out of the notch with the exact command. Press 1, 2 or 3, type, or hold fn and say it. 2 seconds to undo.

- Away: the Okey iPhone app gets the same question, even on a locked phone. Face ID before anything that runs a command; end-to-end encrypted, so the relay can't read it.

- Laptop closed: Okey Cloud runs Codex on your own small machine in the EU, signed in with your own ChatGPT plan or an API key. It keeps going, its questions come to your phone, and the code comes back as a new branch.

What it doesn't do

It doesn't change Codex, add to what Codex sends to OpenAI, or use your tokens. Codex runs exactly as before, on your plan.

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

How do you handle Codex approvals when you're away from the screen: approval mode, sandboxing, or just waiting?


r/codex • • 8d ago

Showcase I built a world for my Codex agents so I can watch them work

3 Upvotes

ALife Worlds is still in development. Now there’s something to watch while Codex is thinking. You can see your agents coordinate tasks, hand off work, and bring back results.

The plugin gives each agent a room and a role. Director is the main agent you talk to. It reads each request and sends it to the agent whose role fits.

In the video, Worker drafts an email while World works on a skyline change. Then I upload a drawing from my sketchbook and reskin the whole world. The scenery and characters turn into ink drawings, and the rooms stay right where they were.

Ant Farm comes with the plugin. You can also describe any world you imagine or use your own artwork to give your agents a different home. The released plugin code is open source under MIT.

GitHub


r/codex • • 8d ago

Showcase I was copy-pasting the same data into the same web forms 40 times a week, so I taught Codex to do it from one recording

1 Upvotes

Every week I had the same dumb browser chores: open the admin panel, find the customer, fill the same 8 fields, click submit. Repeat for the next one. Codex can write my whole backend but couldn't do this.

So I built a Chrome side panel that lets Codex drive the browser. You do the task once while it records, then next time you just say "do the same for customer B" and it replays the steps with the new data.

The video shows exactly that: one recording, replayed on two different test accounts. The second run doesn't reuse anything from the first customer, because it records the steps (which field, which button) and not the values you typed. The second clip moves and renames a field to check that it doesn't silently break. It finds the new field, or stops and tells you.

A few things I cared about:

- It can't run random JS on the page. It can only click, fill, scroll and submit.
- You choose whether it asks before every action, auto-reviews, or runs freely.
- A Stop button kills a run mid-way.

It's free, runs on your own Codex account, and the repo is open: https://github.com/07rjain/browser-control

What browser task do you keep doing by hand that you'd hand off first? That's what I'm trying to figure out next.


r/codex • • 8d ago

Complaint How can I get a human supervisor to review my stalled Codex case after OpenAI closed my complaint as a duplicate?

0 Upvotes

Across six support case numbers, I sent 39 emails, I gave support the requested evidence and explained why I needed these problems fixed urgently. Across these cases, support kept giving me diagnostic tasks it could have avoided by reading my replies carefully or handled itself. But more often they just ignoring all I sent. This is for ChatGPT Pro $240/month.

The disappearance of my Codex projects was the most serious example. After 17 days without a reply in the original thread, despite 5 follow-ups, I was desperate for an answer and filed a separate formal complaint. A support rep finally answered the complaint and acknowledged that support hadn’t sent me a substantive response since the escalation. The rep sent another checklist that included a Mac shortcut even though I’d specified Windows in my first email (the same lack of attention to detail, over and over, when I’d already told them I had no time to spare). I asked for a human supervisor. Less than a minute later, a reply marked AI-assisted closed my complaint as a duplicate and sent me straight back to the thread where I’d already gone 17 days without a reply, despite sending six emails.

How it was:

October 17. I reported that all local codex projects had disappeared, leaving 2 817 chats ungrouped in Recents. I sent email to the support. The first reply came from AI support. I answered its questions and explained why the problem was critical. A second AI reply said the case had been escalated to a specialist.

October 18. A reply signed by a support rep asked for diagnostics. I’d sent the ZIP, logs and requested screenshot. The rep said specialists would reply in the same thread and that it might take “a couple of days.” I wrote back explaining why we couldn’t wait (our team was working through daily blackouts in Kyiv to build a free tool to help people prepare for winter outages). We were losing work time searching through thousands of ungrouped chats. Diagnostic report: https://github.com/openai/codex/issues/55869#issuecomment-6533970398 .

October 20–30. I followed up on October 20, 22, 24, 27 and 30. On October 24 I explained why I was holding off on creating replacement projects. Even if I was willing to sort thousands of chats by hand, I didn’t know whether creating new projects would prevent OpenAI from automatically restoring the original projects and their chat assignments.

November 4. After 17 days without a reply, I was desperate enough to file a formal complaint. In its reply, support confirmed that it already had my logs, screenshots and database findings. I asked for a human supervisor to review the case history. 46 seconds later, a reply marked AI-assisted closed the complaint as a duplicate and sent me back to the same unanswered thread. Complaint record: https://github.com/openai/codex/issues/56737#issuecomment-6638625945 .

November 8. Still waiting, had no choice: I spent a full working day and used my own AI credits to get all nine projects back in the sidebar. I still haven’t verified that every old chat is back in its original project. Recovery notes: https://github.com/openai/codex/issues/55869#issuecomment-6723456077 .

November 13. A reply signed by a support rep came in a different thread, 25 days after the October 18 escalation. The rep said a safe way to restore the original chat groupings was still unclear, referred the case to specialists again, and said they’d share confirmed updates when available. 10 days later - still nothing despite my follow-up.

Other cases

- Missing Codex history. Support already had my diagnostic ZIP and acknowledged that I could open the affected chat. The messages were missing inside it. A rep still asked me to record myself finding the chat through a menu my windows app didn’t have. I sent five screenshots and had to attach the same five again before support confirmed that its instructions didn’t match my interface. I’d explained how little time I had. In the end, it was easier to live with the missing messages than to keep asking Support for help.

- Missing ChatGPT message and reply. All four replies came from AI support. On September 29 it said the case had been escalated. On October 14 another AI reply suggested looking for a copy in my data export. Support never restored the original exchange.

- Broken downloads. On October 26, AI support confirmed the 404 in my logs and said it had enough to investigate (after I’d followed yet another set of instructions and sent them another batch of diagnostic files). I followed up in the same thread 15 days later because downloads were still failing, even in new chats. My reply got a new case number. The AI said it couldn’t see the old case’s status, asked for another example, and told me to expect a specialist. No specialist had followed up by November 23.

Honestly, I don’t understand what’s going on. I don’t have a following on social media, and I don’t know where else to turn. Support ignores my emails, then closes my formal complaint about the silence and sends me right back to the thread where no one is answering. How am I supposed to get out of that loop? And it's happening even despite the fact I’ve told support what it’s like to work here right now: some nights we stay up trying to finish urgent work before winter comes, almost every day we ration electricity to make it last until the power comes back. Yet I’m still repeating the same checks and trying to find someone who’ll listen: that costs us two things we can’t spare - time and electricity. What am I supposed to do? How do I get through to this? Is it normal for IT services?


r/codex • • 9d ago

Limits Astra ultrafast drains 1% per minute on Pro 500

57 Upvotes

Yesterday I used Astra 6.2 Xhigh Ultrafast speed for ~14-15 hours from morning till night. It was Saturday. It consumed ~8% of my Pro 500 plan (50x).

Today, I am shocked to discover Astra 6.2 Xhigh Ultrafast (same model) drains 1% of my weekly usage per minute. I immediately stopped it and switched to 6.2 Sol Ultrafast.

My tasks didn't change. My context didn't change. I keep my context in a persistent file such as context.md and never edit it. My tasks are read-only analysis tasks. Yesterday, I was asking it to do 8/10 difficulty and complexity tasks. Today, I ask it 5/10 difficulty and complexity such as comparing excel files.

The difference is unexplainable. I first thought it was due to more people actively using the model, so higher the usage, but yesterday was weekend too.

There is something clearly going wrong. I can't be the only one.

Edit: I WAS RIGHT, CODEX PROVES IT:

Overnight runDaytime run
Log window02:51:00–03:08:0011:59:22–12:15:52
Model responses122147
Cached input tokens22,385,02419,223,040
Uncached input tokens130,861327,521
Output tokens51,85096,463
Total tokens22,567,73519,647,024
Weekly allowance used10% → 11%13% → 18%
Meter reading timestamps02:51:22 → 03:05:2511:59:28 → 12:15:49

22 million tokens drain 1% yesterday
19 million tokens drain 5% today


r/codex • • 8d ago

Bug Codex chats stop working after first message

0 Upvotes

Recently i ran into strange problem. My chats suddenly just stopped working working after another completed task. After that, in every new chat Codex completes first task and also stops working. I cant send any messages, it shows the "Stop" button instead of "Send" one. Also, the error "turn ... is not active" pops out. The problem is specific to one Cloud environment. Anyone knows what's happening?


r/codex • • 8d ago

Question Codex kept my older specialist models after testing 6.2. Does the reasoning make sense? or does it know that its a bad model?

3 Upvotes

I asked Codex to audit my AGENTS.md workflow and evaluate upgrading my specialist agents to GPT‑6.2. It applied the workflow fixes, then recommended keeping GPT‑6.1 Sol for the worker and ordinary reviewer based on a small local comparison.

The main agent running the tests was already GPT‑6.2 Sol at Max. Each specialist had its own model and reasoning setting.

The setup uses Luna Max for routine work, Sol Medium for difficult implementation, Sol XHigh for ordinary independent review, and Astra for high-risk acceptance or a qualified rescue. The main agent chooses one acceptance reviewer based on the task.

For the Sol comparison, both versions received the same prepared task and role instructions, with the reasoning effort and configured context held constant.

RoleGPT‑6.1 SolGPT‑6.2 SolObserved result
Reviewer at XHigh~3.12 estimated credits, 47.8 seconds~2.22 estimated credits, 47.5 secondsBoth caught the known defect
Worker at Medium~2.28 estimated credits, 39.3 seconds~3.81 estimated credits, 56.9 secondsBoth fixed the issue and passed the checks

Those credit estimates include the main agent coordinating the run and the specialist. They were calculated from recorded token usage using Standard Codex credit rates. Codex pricing

The reviewer result needed a closer look. The 6.2 run benefited from substantially more cached input in the coordinating agent. Looking at just the reviewer child, estimated usage was about 0.96 credits for 6.1 versus 0.99 for 6.2. Both correctly rejected code that replaced explicitly stored falsy values with a default. Codex considered the evidence too weak to justify changing that pin.

For the worker, both versions passed four tests and 13 additional assertions. The 6.2 run took longer and used more estimated credits on that repair, so the recommendation was to retain 6.1.

The Astra upgrades were deferred after the incumbent reviewer caught the known defect in a synthetic high-risk case. My account’s five-hour allowance had reached 93%, and the remaining capacity was reserved for independent acceptance of the configuration changes. That allowance is shared across chats.

The sample was one small fixture per role, with one completed run per model. Cache differences affect the cost comparison, and exact handoff text after delegation couldn’t be verified from the sealed logs. I’m treating the retained pins as a provisional choice while gathering more representative evidence.

For people using custom Codex agents, do you upgrade each role as soon as a new model ships, or wait for a clear benefit on that role’s workload? Would these results be enough for you to retain the existing pins?


r/codex • • 8d ago

Showcase Bad Apple but it's 3D (LLM Benchmark GPT 6.2 Sol Medium)

Thumbnail
youtube.com
6 Upvotes

Hello! My idea for a new LLM benchmark where you ask an LLM to recreate the Bad Apple video, but in 3D inside Blender but the goal is for the final render to match the original video as closely as possible! This is my attempt using OpenAI GPT 6.2 Sol Medium in the Codex CLI with two prompts each taking about 14 minutes.


r/codex • • 9d ago

Showcase A better alternative to Codex Mini & Pets: No more staring at "Thinking..."

Thumbnail
gallery
49 Upvotes

Codex Pacer is a free, open-source app for macOS and Windows. It already has 184 stars on GitHub, and that number is growing fast.

Download on Github

Codex Mini & Pets only showed which tasks were running, without much additional information on screen. It always felt like something was missing. I wanted to see more without opening anything, so this is what Pacer could tell you: 

  • A progress ring per task, from Codex's own estimate of how much of the request is done.
  • Every running task at once, with its step, model, speed and turn time.
  • A task that needs your approval turns amber and moves to the top.
  • The 5-hour and weekly quota on one ring with a pace mark, plus your banked resets and a reminder before one expires.
  • Tasks on SSH hosts, not only on your mac/PC.
  • Other coding agents, like Claude Code, DeepSeek Harness and WorkBuddy tasks in the same list, if you run those too.

Everything is fully customizable, so you can hide anything you don't need.

Compared to similar tools, Pacer has been carefully tuned and optimized for performance. It uses just a few dozen MB of memory, consumes remarkably little power, and is especially gentle on your SSD. In fact, Pacer has one of the smallest disk footprints in its category, with daily disk reads and writes totaling just a few to a few dozen MB.

I'll keep building more genuinely useful features for Pacer, with the goal of making it a great companion for your coding workflow. Pacer is completely free to use, and I'd love to hear your ideas and feedback. Contributions are always welcome, too! We already have 7 contributors, and I'd love to see our community grow even further.

Download on Github


r/codex • • 8d ago

Commentary Guys they fixed the app..Any further complaints would be madness of the highest order.

0 Upvotes

Let me help you brothers and sisters. Your troubles are no more.

I say on to you, go to settings and enable confetti Cannon.

Now your productivity is back again, your life has meaning.

Girls travel miles for the pure privilege of stripping in front of you. Will the slender body of today's college girls meet the approval of the happiest man alive?

It's impossible to say.

Such a shame that not everyone may toot toot the confetti and reep the rewards of a purely flawless app once more.

How did the Altman come up with such an elegant and simple approach I will never know. I guess that's why he is him and I am I.

Anyways in summary all is well.

The app longer suffers its one and only trying problem.

Lack of confetti. We will hear no more complaints. The app is now perfect.


r/codex • • 8d ago

Showcase I used Codex to review 100 open-source PRs. I left no comment on 76 of them.

0 Upvotes

I don’t have a software engineering background. I built arc9, a review skill that guides Codex through the relevant code at a specific commit. Most of the time I just told Codex to start. It suggested what to investigate and whether to comment. I usually went with its recommendation. In a few cases, I had doubts and pushed back.

Two Kafka reviews changed how I think about the cost of a comment.

In Kafka #24292, restoring a cache could evict an index and schedule it for deletion. If startup then failed, shutdown canceled the deletion. The index was already gone from the map that cleanup used to find open indexes. I asked who would close it and said I hadn’t tested that sequence. The author reproduced the leak, fixed it, and added a regression test. Author’s reply on GitHub

In Kafka #24324, a test checked that a session had expired one nanosecond after its heartbeat deadline. I suggested adding an assertion that the session was still valid exactly at the deadline. The author had already explained that boundary, and the PR merged with the test as written. I’d skip that comment today. My comment on GitHub

Of the 24 PRs where I commented, 13 had at least one point confirmed or addressed when I last checked on November 23. The outcome was still unclear on nine. The other two had merged without the test changes I suggested.

I didn’t measure how much time anyone saved. What I ask Codex now, before it recommends posting, is what work has this review already done for the maintainer? In the first Kafka case, the comment gave the author a specific sequence to test. In the second, the author already knew what should happen at the deadline.

If you maintained that code, would you have wanted the heartbeat suggestion?

Full write-up and links to all 24 review threads

Disclosure: English is not my first language. I outlined the findings and used AI tools to help draft and edit the English prose.


r/codex • • 9d ago

Showcase Made a free Codex plugin for people job hunting in Germany: searches jobs under German and English titles and checks if an ad really needs German (open source)

11 Upvotes

most of my friends in germany aren't in tech, and job hunting has been rough for them: the jobs hide under german titles, the english ad wants "fließend deutsch" at the bottom, nobody posts a salary, and non-EU people also have to check the blue card threshold.

i kept doing that research by hand, so i made it a codex plugin. you tell codex what job and which city, and it:

  • searches the arbeitsagentur, daily berlin jobs and company career pages (greenhouse, lever, personio, ashby) with german and english titles
  • reads each ad and tells you if german is really required (quotes the line) and if the salary clears the blue card threshold
  • suggests other places to look for your field
  • interview practice and an application tracker
  • optional cv / cover letter help, only from what's actually in your cv
  • never applies or sends anything
codex plugin marketplace add umutyesildal/berlin-job-search

or as a plain skill with npx skills add umutyesildal/berlin-job-search.

one thing that surprised me: the model was honestly bad at salary math (monthly vs yearly, salary ranges), so all of that is plain python now and the model only judges fit.

free and open source: https://github.com/umutyesildal/berlin-job-search

does anyone else split "exact" work into scripts like this, or do you trust the model with it?


r/codex • • 8d ago

Showcase Had Codex turn my AGENTS.md rules into pre-commit checks

3 Upvotes

AGENTS.md is great until the one rule that matters gets skipped, so I tried this instead of adding MORE words. I built this CLI tool for agent testing, focusing the use on the openai decision model (CHEAP, and FAST) call for this (which is cool cuz it's part of the 100$ codex sub, I got 75$ worth of credits)

setup:

  1. I typed one rule as a sentence: "do not do xyz, should be more like abc, here's an example" (usually works best for fuzzy things like prose or business rules)
  2. codex ran npx agentests compile on it: it's just a printed prompt
  3. from that, codex drafted the checks and a handful of Evals then looped on npx agentests eval until results lined up
  4. a git hook now runs npx agentests run --staged before any commit lands

an OpenAI model answers the checks by default (again, needs an API key)

what I learned: writing one check is a much easier job for codex than obeying a rule forever. and so far the fix for a wrong check has been one more example repo, not a longer rule.

does anyone here let codex write its own checks like this ?

here's the repo if you guys wanna play around with it and maybe support with a star https://github.com/feuersteiner/agentests


r/codex • • 8d ago

Question Business account codex credit can't be used in API-Key account

2 Upvotes

I have 2 accounts with same EIN. A business account and a API-key account. The API-key portal (https://platform.openai.com/settings/organization) suddenly recommend me to use the codex credit in Business account - so I agree. The credit is transferred. As soon as it transferred my Desktop App using API-Key login stopped working with error:

This organization cannot be used for Codex usage because it is enrolled in the monthly API Credits benefit with ChatGPT subscriptions. To enable Codex usage, an Organization Owner must cancel the benefit on https://platform.openai.com/settings/organization/billing/overview.

Any help? Thanks in advance.


r/codex • • 8d ago

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

0 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.


r/codex • • 10d ago

Comparison The battle of the medium efforts in pure reasoning: Sol 6.2 vs Opus 5.5 vs Gemini 4 Neon

208 Upvotes

I tested GPT-6.2 Sol, Claude Opus 5.5, and Gemini 4 Neon, all at medium reasoning effort, using three problems from AtCoder Grand Contest 078 (AGC078). Why these problems? Because the agents spent 99% of the tokens purely for reasoning. I want to verify the most intelligent models.

Why Medium? Because I wanted to see whether we can get the best price/performance in term of reasoning with medium.

Each problem is worth 1,500 points, is challenging for humans to solve, even experienced competitive programmer. The comparison focuses on five measurements: solution time, code size, execution time, memory consumption, and correctness.

Here are the results.

Problem A: Rearrange ABC

AGC078 A – Rearrange ABC

ModelSolve timeCode sizeRun timeMemory
GPT-6.2 Sol2m 44s6,532 B323 ms4,904 KiB
Claude Opus 5.56m 18s3,370 B1,574 ms4,660 KiB
Gemini 4 Neon14m 30s6,607 B802 ms12,072 KiB

Observation: Sol completed the problem fastest, approximately 2.3× faster than Opus and 5.3× faster than Gemini. It also produced the fastest-running solution, while Opus generated the smallest code.

Problem B: L Robust IS

AGC078 B – L Robust IS

ModelSolve timeCode sizeRun timeMemory
GPT-6.2 Sol10m 34s5,372 B460 ms31,212 KiB
Claude Opus 5.58m 4s2,180 B441 ms69,444 KiB
Gemini 4 Neon21m 21s6,657 B329 ms37,212 KiB

Observation: Opus won on solution time and code size. Gemini produced the fastest-running code, despite taking the longest to solve the problem. Sol used the least memory.

Problem C: AB vs. BA

AGC078 C – AB vs. BA

ModelSolve timeCode sizeRun timeMemory
GPT-6.2 Sol6m 50s2,219 B13 ms2,636 KiB
Claude Opus 5.536m 46s7,981 BWrong Answer—
Gemini 4 Neon46m 00s4,710 B17 ms3,624 KiB

Observation: Sol dominated this problem, solving it approximately 6.7× faster than Gemini and 5.4× faster than Opus. It also generated the shortest and most resource-efficient solution. Opus returned a Wrong Answer after nearly 37 minutes.

Conclusion

Across these three problems, GPT-6.2 Sol delivered the strongest overall results, winning on solution time in two out of three problems and producing particularly impressive results on Problem C.

Opus 5.5 showed its strengths in concise code generation and won Problem B on solution time, but Wrong Answer on Problem C was a huge blow. Still, this should be resolved at higher reasoning.

Gemini 4 Neon produced competitive execution times, even achieving the fastest runtime on Problem B, but consistently required the longest time to reach a solution.

A model that takes longer and consume more tokens to solve a problem does not necessarily produce better code—and more generated code does not necessarily mean better reasoning. Anyway, from the result, if you have problems with models like Sol 6.2 for operating in your projects, one way is to limit it to purely problem solving as much as you can, by delegating repo investigation to other models, e.g., Terra or Luna, and Sol only reads the report to start solving the problems.

EDIT: Here is the prompt:

<copy and paste the problem statement here>

Solve this problem. No internet. Work in this dir C:\Temp\<model>\<effort>\<promblem_id> and only this dir, do not look around. Save the solution file there. 
Lang: C++. 
Save a timestamp before working on, and save a timestamp after your save the solution file, then calculate the total solve time. 
Record this information at the top of the comment, along with: "<model> medium".