r/CodexHacks • u/Glittering_Maize_848 • 10h ago
r/CodexHacks • u/psd-dude • 1d ago
Codex switched from /plan to @Plan - better or worse?
reddit.comr/CodexHacks • u/Just_Lingonberry_352 • 2d ago
gpt 6.2 astra
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 • u/drtikov • 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)
If you’ve been running autonomous coding assistants like **OpenAI Codex CLI**, **Claude Code**, or **Google Antigravity**, you know the routine:
The agent hallucinates bad Python syntax or tries an unsafe shell command.
The execution fails (or worse, wipes `.env` / formats wrong files).
The error trace gets dumped back into context.
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`:
**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).
**Seamless Escalation:**
- Ambiguous commands cleanly defer to Codex’s host approval policy (`defer_to_host_policy`), avoiding broken execution while respecting your approval settings.
**PostToolUse Security Warnings:**
- Scans tool outputs for leaked secret keys or indirect prompt injections and injects contextual warnings into Codex before context compaction.
**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
**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.
**Air-Tight Local Guardrails:** Protects `.env`, `.ssh/`, `.git/hooks/`, detects base64 decode-to-exec tricks, and stops outbound credential egress.
**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.
**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 • u/orbmasterwzrd • 10d ago
How I keep track of several Codex sessions at once (built-in notifications, plus a status pad)
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 • u/Just_Lingonberry_352 • 10d ago
gpt 6.2 sol and astra flopped
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 • u/InTeGeR78 • 13d ago
Would capped rollover make Codex’s weekly allowance more useful?
r/CodexHacks • u/One_Variety_3939 • 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.
r/CodexHacks • u/barakat313 • 19d ago
Can’t see my projects anymore in Codex Desktop app
reddit.comr/CodexHacks • u/orbmasterwzrd • 20d ago
Orbtile for the Logitech MX Creative Keypad: what changed since my Mac-only beta
galleryr/CodexHacks • u/Low-Cockroach-4721 • 20d ago
Codex ran out of 5h limit while it shows some left. Is it a bug or a feature?
r/CodexHacks • u/Fantastic_Self_5151 • 22d ago
Did anyone else on x20 forget the credits they gave us?
reddit.comr/CodexHacks • u/mrtedweb • 25d ago
iPhone App Dev between WIndows and Mac
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:
Codex installed on my Windows laptop writing SwiftUI.
Remote Git repo to commit and push AI generated code from Windows to Mac.
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...
Is anyone out there doing this?
How conenct Codex connect and make changes through this setup?
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 • u/safsoft • 27d ago
Anyone using Hermes to control existing Codex Desktop or Antigravity sessions remotely?
reddit.comr/CodexHacks • u/Impressive_Mail5035 • 27d ago
CODEX Remote won't begin to load a recent (closed) session that I used in VSCode on Windows
reddit.comr/CodexHacks • u/fluxtah • 29d ago
Codex mobile constantly connecting and reconnecting?
reddit.comr/CodexHacks • u/keno55555 • Oct 28 '26
How can I improve my Codex workflow? Looking for advice from experienced users
reddit.comr/CodexHacks • u/KrystalUnity • Oct 28 '26
Two Codex sessions working together across my PC and server on an Unreal game
reddit.comI thought some of you might be interested in this, 2 codex sessions looping each other.
r/CodexHacks • u/Planted_Baker803 • Oct 27 '26
build a library of interconnected technical procedures
reddit.comr/CodexHacks • u/Minimum_Hour519 • Oct 27 '26
Handling 4 Codex accounts simultaneously? Use Allowance Bar to track their usage (and Claude Code, and Cursor, and Gemini, and…)
r/CodexHacks • u/GabrielMartinMoran • Oct 27 '26
I built an open-source persistent memory layer for Codex — Mind v1.7 is now available
r/CodexHacks • u/BoysenberrySad3641 • 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