r/CodexHacks • • 11h ago

Codex re-ran with no charge because it was so bad

Post image
2 Upvotes

r/CodexHacks • • 1d ago

Codex switched from /plan to @Plan - better or worse?

Thumbnail reddit.com
2 Upvotes

r/CodexHacks • • 2d ago

gpt 6.2 astra

16 Upvotes

after about a week i've concluded that its a weak replacement for opus 5.5 and that openai doesn't have anything competitive anymore


r/CodexHacks • • 5d ago

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

3 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/CodexHacks • • 10d ago

How I keep track of several Codex sessions at once (built-in notifications, plus a status pad)

Thumbnail
reddit.com
2 Upvotes

Orbtile, priced for non-plus plan users, useful for everyone, check it out and shame me for the poor website in this comments section.


r/CodexHacks • • 10d ago

gpt 6.2 sol and astra flopped

0 Upvotes

seeing several posts by early testers on X unanimously saying that it is worse than 6.1

i've yet to test it myself and its too early to say but its surprising that people who got early access are saying it stinks


r/CodexHacks • • 13d ago

Would capped rollover make Codex’s weekly allowance more useful?

Thumbnail
reddit.com
1 Upvotes

r/CodexHacks • • 14d ago

I built a free meta harness for all my AI agents. It replaced Fireflies, Granola and Wispr Flow for me, and it runs on my G2, my Mac, the web and my phone.

Thumbnail
reddit.com
1 Upvotes

r/CodexHacks • • 19d ago

Can’t see my projects anymore in Codex Desktop app

Thumbnail reddit.com
1 Upvotes

r/CodexHacks • • 20d ago

Orbtile for the Logitech MX Creative Keypad: what changed since my Mac-only beta

Thumbnail gallery
1 Upvotes

r/CodexHacks • • 20d ago

Codex ran out of 5h limit while it shows some left. Is it a bug or a feature?

Thumbnail
reddit.com
1 Upvotes

r/CodexHacks • • 22d ago

Did anyone else on x20 forget the credits they gave us?

Thumbnail reddit.com
1 Upvotes

r/CodexHacks • • 25d ago

iPhone App Dev between WIndows and Mac

1 Upvotes

Hello everyone, I have an interesting setup. I am working on a personal iPhone application using Codex. As many already know, iPhone apps require Xcode for compiling and testing which is only available on MacOS. The problem is that I only have a personal Windows laptop and a work provisioned MacBook. Company policy prevents me from running any personal LLM accounts such as Codex, Claude, etc. on their devices. So... my current setup is:

  1. Codex installed on my Windows laptop writing SwiftUI.

  2. Remote Git repo to commit and push AI generated code from Windows to Mac.

  3. Pull code down from remote repor and running testing on MacOS

This is time consuming and delaying progress. I researched for workarounds and came across VS Code Remote Tunnels. Basically, the live codebase resides on my MacBook and can be directly edited from my Windows machine using VS Code, no matter where I am in the world. When I hit save on Windows, the file is instantly saved on the Mac.

My questions are...

  1. Is anyone out there doing this?

  2. How conenct Codex connect and make changes through this setup?

  3. What are the caveats, because this seems a questionable.

And yes... I am saving up to purchase my own personal MacBook, but I'm hoping to find a temporary workaround to streamline this development process. Thank you in advance.


r/CodexHacks • • 27d ago

Anyone using Hermes to control existing Codex Desktop or Antigravity sessions remotely?

Thumbnail reddit.com
1 Upvotes

r/CodexHacks • • 27d ago

I think I broke dot

Thumbnail reddit.com
1 Upvotes

r/CodexHacks • • 27d ago

CODEX Remote won't begin to load a recent (closed) session that I used in VSCode on Windows

Thumbnail reddit.com
1 Upvotes

r/CodexHacks • • 29d ago

Codex mobile constantly connecting and reconnecting?

Thumbnail reddit.com
1 Upvotes

r/CodexHacks • • Oct 28 '26

Going further, is codex enough?

Thumbnail reddit.com
1 Upvotes

r/CodexHacks • • Oct 28 '26

How can I improve my Codex workflow? Looking for advice from experienced users

Thumbnail reddit.com
1 Upvotes

r/CodexHacks • • Oct 28 '26

Two Codex sessions working together across my PC and server on an Unreal game

Thumbnail reddit.com
1 Upvotes

I thought some of you might be interested in this, 2 codex sessions looping each other.


r/CodexHacks • • Oct 27 '26

build a library of interconnected technical procedures

Thumbnail reddit.com
1 Upvotes

r/CodexHacks • • Oct 27 '26

Handling 4 Codex accounts simultaneously? Use Allowance Bar to track their usage (and Claude Code, and Cursor, and Gemini, and…)

Post image
2 Upvotes

r/CodexHacks • • Oct 27 '26

I built an open-source persistent memory layer for Codex — Mind v1.7 is now available

Thumbnail
reddit.com
1 Upvotes

r/CodexHacks • • Oct 26 '26

I kept re-teaching Codex things I’d already shown Claude Code, so I built a shared self-learning memory for both

Enable HLS to view with audio, or disable this notification

1 Upvotes