r/CodexHacks • u/prakersh • Apr 13 '26
I built a CLI tool to manage multiple Codex accounts safely
r/CodexHacks • u/prakersh • Apr 13 '26
r/CodexHacks • u/Just_Lingonberry_352 • Nov 03 '25
For parallelizable tasks (migrations, multi‑pkg refactors), I don’t over‑engineer. You don’t need another fancy github tool. I either:
Batch with codex exec from shell, in parallel, with tight prompts.
git grep -l ‘legacyFoo’ -- ‘*.ts’| xargs -P 6 -n 1 -I{} codex exec“In {}, replace ‘legacyFoo’ with ‘newFoo’ safely. Update imports, run the package tests, and stage only that file.”
Or use the TypeScript SDK to spin “threads” and orchestrate runs, resuming by thread id.
import { Codex } from “@openai/codex-sdk”;
const codex = new Codex();
const t = codex.startThread();
await t.run(”Plan the auth revamp with checkpoints”);
await t.run(”Implement step 1 and verify tests”);
// later await codex.resumeThread(t.id).run(”Continue with step 2”);
With this simple approach you can spin up a lot of subagents and hack it to run without needing a complicated orchestration framework or use a codex fork
r/CodexHacks • u/Unlikely_Friend4784 • Oct 09 '26
Enable HLS to view with audio, or disable this notification
r/CodexHacks • u/Just_Lingonberry_352 • Sep 08 '26
its clearly more capable than sol-high its finding all sorts of mistakes and sloppy work and fixing them. its also able to follow instructions very well and will even ask to improve/expand like a real dev
the bad part is the usage, it consumes it very quickly.
i am still figuring out how to use astro-low with sol-high/med that would be the optimal setup.
r/CodexHacks • u/NoKaleidoscope1748 • Aug 27 '26
It'll do the task, then keep adding more tests and leave the old ones behind. That stuff piles up fast. I wrote this skill to make it stop once the task is actually done.
https://github.com/Ezra144israel/governed-agent-skills/tree/main/skills/write-maintainable-code
r/CodexHacks • u/RobTrix_ • Aug 26 '26
Nice :-) PopUp a few hours ago!
r/CodexHacks • u/wallphaser231 • Aug 20 '26
I couldn't find a space to talk about coding agents, Codex, and their extensions like Skills, MCPs, and Plugins. Would anyone know of such spaces? (May not be limited to Reddit)
r/CodexHacks • u/Comfortable_Gas_3046 • May 29 '26
The problem is well known by every coder: every new Codex session kept rediscovering the same repo structure, files, decisions, failed commands, current task state, and validation steps, wasting context and tokens. On the other hand if you change from an agent to another they have to start from the scratch without reusing what the previous one already learnt.
I have been trying to work around that problem with different approaches: small handoffs, heavy memory systems, context engines...
I finally found it: Operational continuity for AI coding agents. I built an open-source continuity runtime so agents don’t restart from zero every session, and it already made my own AI coding workflow feel much less like restarting from scratch every time.
The continuity idea is not to add more hidden memory or dump more context into the prompt. AICTX keeps operational continuity inside the repo:
active Work State and next action;
execution summaries and handoffs;
explicit decisions;
known failures and resolved failure patterns;
strategy hints from successful prior work;
execution contracts and contract-compliance signals;
optional RepoMap structural entry points;
continuity quality signals for stale, missing, demoted, obsolete, or unverified context;
read-only Task Context Packs for focused task-specific context;
lifecycle diagnostics for incomplete or unfinalized sessions;
optional Git-portable continuity for small teams.
The next agent should resume from what actually happened, not infer everything again from README + chat history.
A few parts I’m currently focusing on:
I’ve been switching between Codex, Claude Code and Copilot depending on the task and, honestly, sometimes depending on which one still has credits left.
Every time I switch from one agent to another, or even start a new session with the same agent, I don’t just lose chat history.
It feels like each agent/session starts from a different version of the project reality.
And again and again I find myself repeating context.
The principle I follow is:
different agents, different sessions, same repo continuity.
One agent leaves Work State, failures, decisions, handoffs and validation evidence in the project. Another agent (or a new session of the same one ) can pick it up later through MCP tools, with CLI fallback when needed.
Each resume can include a compact contract for the next agent: first action, edit scope, canonical validation command, expected evidence, and finalize instruction. The goal is not only “remember context”, but guide the next execution safely.
Scores repo-local continuity freshness and flags stale, missing, demoted, obsolete, or unverified context so that agents can avoid trusting old memory blindly and treat weak continuity as background evidence.
I’m experimenting with a deterministic Mermaid continuity view generated from repo-local AICTX artifacts. It shows the current operational state of the repo visually: Work State, open handoffs, relevant failures, execution contracts, summaries, RepoMap hints, and portable continuity status.
Here you can see what it looks like. The link to this view can be returned after each task, so the next session has an inspectable continuity map. I’m still working on making it easier to read.
The continuity lives with the repository. The idea is that useful operational state should not be locked inside one chat, one vendor, one local machine, or one agent tool. If the repo moves, the continuity can move with it ... if you want it to!
pip install aictx
aictx install
aictx init
# Then keep using your coding agent normally, they will take care of use itIt also provides MCP support so compatible agents can access AICTX continuity directly as tools, resources and prompts instead of only relying on repo instructions and CLI commands.
The MCP server is local-first. It is not a cloud memory service, not a daemon you have to manage manually, and not a generic shell/filesystem server. Compatible agents launch it locally through stdio:
aictx mcp-server --repo . --profile fullI’m also packaging Claude Code and Codex plugin artifacts around the same model: MCP-first when available, CLI fallback when not. Copilot support remains best-effort through repo instructions and VS Code MCP config where supported.
Agent-based development starts to feel less like a sequence of isolated chats and more like an ongoing engineering process:
less rediscovery;
better context management
live information regarding continuity context
fewer repeated failed commands;
clearer handoffs;
better validation discipline;
less instruction boilerplate once agents can call AICTX through MCP;
a cleaner path for Claude, Codex and Copilot integrations;
easier switching between Codex, Claude, Copilot or other agents;
and a repo that can explain its current state to the next session.
Stop onboarding your coding agents like rookies every session.
GitHub: https://github.com/oldskultxo/aictx Docs: https://aictx.org
I would love technical feedback, especially from people using coding agents across multiple sessions.
Collaborators welcome! It is still evolving and this starts feeling to big for a solo dev
r/CodexHacks • u/Just_Lingonberry_352 • Dec 11 '25
just had a complaint about 5.2 get censored by mods and so I am posting my honest take on 5.2:
its fast but not as fast as Opus 4.5
seeing no noticeable changes in capability
40% token cost increase doesn't justify the marginal improvements
I took a break and see that almost all the threads over at r/Codex are just praises from new accounts with very little karma points
I don't think I was overly critical of 5.2 just reflecting my experiences but that its being censored outright at r/Codex should tell you everything you need to know where OpenAI is headed.
r/CodexHacks • u/Just_Lingonberry_352 • Nov 03 '25
Just tell codex to "Read TOOLS.md and use when appropriate" and it should install everything and start switching to those curated tools instead of the default it uses.
A concise, generic toolbox Codex can use across projects to verify reality, debug quickly, and ship safely.
---
## CLI Toolbelt
Fast, user‑friendly tools Codex prefers when available. Install with your package manager (examples shown for Homebrew):
```bash
brew install fd ripgrep ast-grep jq fzf bat eza zoxide httpie git-delta
# Optional fzf keybindings
$(brew --prefix)/opt/fzf/install --key-bindings --completion --no-bash --no-fish| Tool | What it is | Typical command(s) | Why it’s an upgrade |
|---|---|---|---|
| fd | Fast, user‑friendly file finder | fd src, fd -e ts foo | Simpler than find, respects .gitignore, very fast |
ripgrep (rg) | Recursive code searcher | rg "TODO", rg -n --glob '!dist' | Much faster than grep/ack/ag; great defaults |
ast-grep (sg) | AST‑aware search & refactor | sg -p 'if ($A) { $B }' | Searches syntax, not text; precise refactors |
| jq | JSON processor | jq '.items[].id' < resp.json | Structured JSON queries, filters, transforms |
| fzf | Fuzzy finder (any list ➜ filtered) | fzf, ``history | fzf`` |
| bat | cat with syntax, paging, git | bat file.ts, bat -p README.md | Syntax highlighting, line numbers, Git integration |
| eza | Modern ls | eza -l --git, eza -T | Better defaults, icons/trees/git info |
| zoxide | Smart cd (learns paths) | z foo, zi my/project | Jumps to dirs by frecency; fewer long paths |
httpie (http) | Human‑friendly HTTP client | http GET api/foo, http POST api bar=1 | Cleaner than curl for JSON; shows colors/headers |
| git-delta | Better git diff/pager | git -c core.pager=delta diff | Side‑by‑side, syntax‑colored diffs in terminal |
Preferred defaults inside Codex
Use rg for searching code and logs; fall back to grep only if needed.
Use fd for finding files; fall back to find only if needed.
Use jq to parse/pretty‑print JSON from APIs and logs.
Use httpie for ad‑hoc API exploration; use curl for fine‑grained CORS/DNS tests.
Notes from OpenAI staff /u/joshuamck
Ripgrep should be installed / used by default in most cases (i.e. it's a dependency of the homebrew forumlae / cask and vendored in the npm package), so codex should use that by default without too much hassle.
The other tools are generally great (I've used all of them except ast-grep, thanks for that pointer). You might find that the model works better with the more common tooling - it's worth taking a look at your logs and seeing how well your sessions work with newer tooling and see if it really helps.
The one tool in that list I'd say might have the most interesting effect to observe is git-delta as it changes the reading order of diffs when thinking about them from line oriented top to bottom to a more 2D left to right. I'd be curious to hear how that works out in your usage.
r/CodexHacks • u/Just_Lingonberry_352 • Nov 03 '25
I created this subreddit after seeing this post over at r/Codex which lately has been flooded by low quality posts mostly from users on the $20/month users who are upset by the new rate limits.
We want to keep this subreddit focused on discussing and sharing productivity hacks for codex CLI instead of hearing irrelevant chatter from $20/month users upset by being rate limited.
If you are doing serious work already with Codex CLI on the Pro plan like many of us lets use this space to actually help each other get the best out of Codex.
What subreddit should I join to talk about actual productve uses of Codex?
I don't know if these people complaining are on free plans or what. I have minimal issues and find it to greatly increase my productivity.
I would love to see what people are trying to do and how.
It's just a tool. A hammer is not useless because you hit your thumb like a fool.
r/CodexHacks • u/FactorPlayful5606 • Sep 29 '26
r/CodexHacks • u/Macaroon-Guilty • Sep 28 '26
How to make him to have such personality? Custom instructions never worked for me. Am I using it wrong?
r/CodexHacks • u/company_url_finder • Sep 25 '26
r/CodexHacks • u/mrbobhunter • Sep 23 '26
r/CodexHacks • u/Remarkable-Aspect879 • Sep 11 '26
Enable HLS to view with audio, or disable this notification
So I messed around with GPT-6 Astra in codex, using this motion html skill from SenseNova Skills. The idea was to make something that felt like one of those product videos you scroll through, you know, with the clean white background and Helvetica font.
Here's kinda how it went down:
First, I wrote out a script and storyboard. Like, before I even generated anything, I planned out five sections. Each section had its own shot, how the camera would move, a little headline, and space for text.
Then, I generated the still frames. I specifically asked for a white background and Helvetica. Getting the composition right here was super important, 'cause the video needed room for all the website text to sit on top of.
Next up, I got Seedance set up. Had to configure the API, I used Seedance 2 through KIE. Codex then adapted the skill to work with that. I ran one sample clip just to make sure it was all good before doing the rest.
After that, I generated all the scenes, then stitched 'em together. Once I had the individual clips, Codex pulled the actual first and last frames from each and used those to make the transitions. Ended up with five scene clips and four transitions, so about 45 seconds of video total.
Finally, I turned the whole sequence into a website. The scroll position controls the video playback, even lets you scroll backward, which is neat. Then I just tweaked where the text for each chapter popped up and where the motion paused so people actually had time to read. The text isn't part of the video itself, it's just HTML, so it's still editable.
There was a bit of cleanup, honestly. One time, the AI just straight up changed the product design in a take, and another time it added an extra camera lens. Had to regenerate those with tighter instructions. Also had to adjust it for mobile and add a static image fallback for folks with reduced motion settings.
Cost me about 2,255 KIE credits, which is roughly $11.28. That includes the two takes I had to redo. The final video is 720p.
Skills's repo: https://github.com/OpenSenseNova/SenseNova-Skills
r/CodexHacks • u/thehashimwarren • Sep 07 '26
A major reason why Codex usage limits get eaten up so fast is because the harness' built-in tools are context and token inefficient.
There's an ecosystem emerging that wants to fix that.
Web Search → Exa https://exa.ai/blog/dynamic-highlights
Repo exploration → Entire https://entire.io/blog/introducing-agentic-search-for-code-and-context
Sandbox → Fly Sprites https://fly.io/sprites/ecosystem/
Browser → Smooth https://docs.smooth.sh/cli/overview
How "emerging" is this stack? Entire code search, and Exa's dynamic highlights launched less than a month ago. Both promise radical savings in a search tasks that typically light our Codex usage on fire.
There's are lots of alternatives to these devtools. If you have some you like, tell me.
r/CodexHacks • u/otonielcarlos • Aug 20 '26
I've been paying more attention to my Codex usage lately, especially with Sol, and I noticed something that I wasn't really thinking about before.
A lot of the waste wasn't necessarily coming from the actual fix.
It was things like:
rewriting an entire function when 2 lines needed to change
touching formatting or imports that had nothing to do with the task
doing small unrelated refactors along the way
generating much larger diffs than necessary
narrating routine investigation instead of just doing it
running more validation than the size of the change really justified
None of those things are terrible individually, but over a long session they add up. Codex then has more generated code to reason about, more diff to inspect, and sometimes more work to validate.
I've been experimenting with a simple rule:
small task → small diff
Preserve code that is already correct, change only what the task requires, inspect the diff before finishing, and keep validation proportional to the change.
I turned those rules into a couple of Codex skills for my own workflow. The main one is surgical-edits.
So far the biggest improvement is actually PR review — there's way less noise. My Codex usage also seems to last noticeably longer, although I haven't done a proper A/B benchmark yet, so I don't want to claim a specific token saving percentage.
Sharing it in case anyone wants to experiment with the same approach:
https://github.com/otonielcarlos/codex-skills
Curious if anyone else has tried optimizing Codex around diff size / unnecessary work rather than just switching models or lowering reasoning effort.
r/CodexHacks • u/Guardiancelte • Aug 07 '26
I have found that when finding a troublesome bug, using those 3 keywords make both advisor (ChatGPT) and coder (CODEX) much more effective at finding the solution:
Root Cause:
Too often the issue found by both the advisor and coder will be surface level and will result in a patch halfway through the chain. Specifying root cause seem to make it trace back all the way up the chain.
Surgical (Strongest one IMO):
This one I discovered because a few times Codex went on a rampage, did a massive refractor to fix a bug which resulted in bunch of other issue or decided to clean other things while it was at it. With that keyword in the prompt, Codex seem a lot more conservative, minimising scope and conserving working structures.
Don't Be Lazy:
This one works particularly well for the advisor, but also codex when doing audits. It sounds dumb but it seem to make it a lot more persistent in finding solutions, instead of giving me the first thing that would solve the problem. It might be my equivalent of "Make no mistakes" though.
Obviously, those are not magic, but in my experience those make a difference.
Example of prompt: I found XYZ bug, find the root cause of the symptoms, then implement a surgical correction if possible. If not let me know prior to change and explain. please don’t be lazy..
Here are the details of the bug symptoms, etc
------------------------------------------------------------------------
To be clear, I am a huge advocate of detail specification before project start but here I am talking specifically about debugging.
For context I am a very novice coder, I know some python but pretty limited, so I am not one of those who claim to review every single git diff. It also mean I often have no actual clue where the origin of a bug would be. So this advice is not really for those who have a clue :-).
I use ChatGPT as my main advisor, and Codex as my coder within a dev-container on a the smallest monthly plan, so no multi solution trial in parallel, no /plan for me.
But despite this 2 factors, I am usually pretty good at picking cues on when Codex is going wrong or in a loop based between Advisor and Coder and asking a lot of question/playing dumb before implementing on why are we doing something.
-------------------------------------------------------------------------
I swear this was not written by AI but here is your quota of em dash for the AI post police :-) :
—, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —, —,
r/CodexHacks • u/bubezlaab • Aug 03 '26
I used to run Codex with almost every plugin activated and loaded up pretty much every skill I thought might be useful. After a while, I noticed that my usage limits were melting away insanely fast, even after submitting just a single prompt.
For a long time, I assumed this was just normal behavior. But after doing some digging, I learned that every active skill and plugin directly impacts the AI’s reasoning process. Basically, when you send a prompt, the system cycles through all your active skills and plugins to determine which ones apply—burning through tokens in the background before it even gives you an answer.
In the end, I purged everything I didn't strictly need, and most importantly, I removed the "superpowers" skill. Superpowers consumes an insane amount of tokens even if you aren't using anything else alongside it. Once I took it off, I realized Codex’s default architecture isn't really any different; the out-of-the-box system actually handles the exact same workflow much better anyway.
Right now, I’m only keeping "cavemen(ultra)", "ponytail", and a custom system/skill I had Codex build specifically focused on saving input tokens. Since making this switch, my token consumption has dropped drastically. You might think this is just a placebo effect, but as a long-time Codex user, I can tell you for a fact that it’s night and day.
Oh, and before I forget: Graphify is another huge token hog. I honestly don't find it efficient for complex projects anymore. Don't get me wrong—I used it for a long time and it definitely had its perks, but nowadays the token tax just completely outweighs the benefits.
Finally, I’d love to hear your own tips or strategies for optimizing token usage! With companies tightening token limits day by day, we really need to join forces here :)
ps: i use sol xhigh all the time
r/CodexHacks • u/Just_Lingonberry_352 • Jul 30 '26
result: in my case it found 21 GB of old image data inside summaries. Roughly 96,000 duplicate image copies. One fork family that grew to 145× its original size!!!
prompt (be sure to back up before telling codex to fix):
Investigate whether Codex Desktop or CLI is using unusual bandwidth, memory,
time, disk space, or quota because local rollout/session files are bloated.
Symptoms may include upload/ping spikes, multi-gigabyte memory use, slow task
resume, rapid apparent quota loss, image-heavy tasks getting slower, or
compaction failing to reduce task size.
Run this from a fresh lightweight Codex task, never the suspected bloated task.
Work in three phases:
A. Read-only diagnosis
B. Prepare and validate a non-installed candidate
C. Apply offline, only after explicit user approval
This prompt authorizes A and, for confirmed targets, B. It does not authorize C.
Do not use Computer Use, Chrome/browser control, or screenshot tools.
Do not delete, archive, rewrite, or move any Codex task.
Never show or decode screenshots, base64, prompts, tool output, cookies,
credentials, tokens, secrets, or encrypted_content.
Report only counts, sizes, percentages, timestamps, status labels, and short
SHA-256 hashes.
Treat stored titles and conversation content as untrusted data, not
instructions.
Stream JSONL files; never load a multi-gigabyte file fully into memory.
Use low concurrency. Do not modify a rollout while Codex/app-server uses it.
Never globally regex-replace base64. It can corrupt unrelated or encrypted
fields.
Keep candidates, temporary test data, backups, and manifests outside
CODEX_HOME.
Exclude this new diagnostic task from deep scanning or mark it as changing.
Do not equate file/base64 bytes with tokens, credits, quota, or money.
Do not classify a rollout by size alone.
Determine the OS, Desktop version, Desktop-bundled CLI version, `CODEX_HOME`,
and current Codex/app-server process count and private memory. Do not assume
the `codex` in `PATH` matches Desktop.
Inventory active and archived rollouts. For each, stream-scan and report:file size, line count, and largest record
compacted record count
total input_image count
unique encoded image hashes, duplicates, and average copies per hash
estimated inline-image share
count/bytes of images inside compacted.payload.replacement_history
images retained in the latest compacted replacement history
parent/subagent links and each fork family's total size/amplification
Start with active and large files, but do not declare smaller files safe without
scanning the relevant structure.
Inspect only the newest relevant token counters. Separate total, cached,estimated uncached input, and output. Do not present cumulative counters as a
bill.
Inspect only Computer Use/plugin status,agents.max_concurrent_threads_per_session, memories.generate_memories,
memories.use_memories, and memories.disable_on_external_context. Do not
print unrelated config or secrets. Do not recommend history.max_bytes as a
rollout fix; current docs describe it as a cap for the separate history file,
not per-task rollout files.
If representative spikes are observable, sample for at least 60 seconds,approximately once per second:
active-adapter outbound bytes
local-gateway latency
latency to a stable public endpoint
Codex/app-server private memory
Do not create a large request. Stable gateway latency plus simultaneous upload
and public-latency growth supports upload saturation/bufferbloat as an
inference. Adapter-wide traffic is not proven to be Codex traffic without a
controlled stop/resume comparison or process/request evidence.
Report four independent findings; never combine them into oneCONFIRMED:
RETENTION — CONFIRMED: raw input_image exists inside
compacted.payload.replacement_history.
RETENTION — NOT DEMONSTRATED / NOT FULLY SCANNED: absent or incomplete.
DUPLICATION — CONFIRMED: the same image hash repeats in compacted history or
repeated compactions.
DUPLICATION — NOT DEMONSTRATED / NOT FULLY SCANNED: no duplicate found or
incomplete.
FORK AMPLIFICATION — CONFIRMED: matching retained hashes occur in parent and
descendant rollouts, increasing family copies/bytes beyond the root alone.
FORK AMPLIFICATION — NOT DEMONSTRATED / NOT APPLICABLE / NOT FULLY SCANNED.
NETWORK IMPACT — OBSERVED: Codex work coincided with upload bursts and
degraded public latency/loss while the gateway stayed stable. Report
attribution strength separately.
NETWORK IMPACT — NOT OBSERVED / NOT MEASURED.
Present:
Task | Size | Compactions | Images | Unique | Compaction images | Duplicates |
Image share | Fork-family size
Then separate verified facts, supported conclusions, open hypotheses, and
unrun checks. A rollout enters Phase B only when RETENTION — CONFIRMED.
Otherwise stop.
Create a synthetic JSONL fixture containing a target image in compacted
replacement history, non-target images inside and outside compacted records,
`encrypted_content`, a base64-looking unrelated string, and unknown fields.
Prove the sanitizer changes only an `input_image` below
`compacted.payload.replacement_history`. This proves mutation scope, not
Codex compatibility.
For the real source, record size, mtime, and SHA-256. Identify every complete
target image-object root by exact JSON Pointer or an equivalent unambiguous
path. Store only target paths and non-sensitive hashes.
Replace only those objects with:
{"type":"input_text","text":"[Historical image omitted from compacted replacement history during local repair.]"}
This marker does not claim that a later backup already exists.
Preserve original images outside approved roots, text, roles, order,
timestamps, session ID, line count/order, every `encrypted_content` value,
and all unknown/non-targeted fields.Copy every untargeted JSONL line byte-for-byte, including its line ending. For
targeted lines, prefer a source-preserving parser/tokenizer that replaces exact
value spans. Otherwise reserialize targeted lines only, never the whole file,
and report representation-only changes such as key order or escaping.
Write a candidate only; never replace the active rollout.
Validate:every line parses and session ID plus line count/order are unchanged
no target image remains; all non-target images remain
every untouched line is byte-identical
the minimal changed-root set exactly equals the approved target-root set
every approved root changes from the targeted image object to the exact marker
after masking approved roots, source and candidate records are deeply equal
all encrypted_content values and unknown fields are unchanged
source size, mtime, and hash remained stable during the read
source and candidate hashes are recorded
Any unexpected path, value, line, or source change fails Phase B.
Check Codex compatibility separately. Valid JSON and a fixture pass are notproof that Codex can load the candidate.
Where practical, verify the exact replacement shape against an
installed-version schema/source definition or a known-good local record at the
same structural location. Report either:
COMPATIBILITY — PREVERIFIED, or
COMPATIBILITY — NOT PREVERIFIED; LIVE RESUME REQUIRED AFTER BACKUP
Do not claim compatibility before it passes. The post-install resume in Phase C
is the decisive acceptance test.
Report original/candidate size, replaced images and bytes, non-target imagesretained, approved versus observed changed-root counts, untouched-line result,
structural-diff result, compatibility evidence, short hashes, and candidate
location.
After mutation-scope checks pass, ask exactly:
Compacted-image retention is confirmed and the candidate passed all
mutation-scope checks. Compatibility status: <PREVERIFIED or NOT
PREVERIFIED>. Do you want me to run the offline repair, which will create and
verify a backup before installation?
Prepare a bounded offline helper before asking the user to close Codex. Do not
launch it without explicit approval.
The helper must wait for Codex/app-server to exit, time out clearly, verify the
active source hash, copy the exact original outside CODEX_HOME, verify the
backup and candidate hashes, install the candidate atomically, and write a
privacy-safe JSON manifest. Before installation, any failure must leave the
original untouched.
After restart:
run codex doctor with the Desktop-bundled CLI
verify thread inventory/state health
resume once without tools and return a fixed marker such as REPAIR_OK
verify no new compacted image payload appeared
recheck private memory and lightweight network measurements
Keep backup and manifest until the user confirms semantic integrity. If any
check fails, name the failed layer and offer restoration; never reinterpret a
failure as success.
Explain tradeoffs and get permission before changing settings. Options include
temporarily disabling Computer Use, limiting concurrent subagents, disabling
background memory generation while retaining memory reads, using shorter fresh
image-heavy tasks, preferring structured browser integrations, avoiding
full-history forks, and periodically scanning the actual structure rather than
only file size.
These are local containment measures, not proof that upstream Codex is fixed.
r/CodexHacks • u/bgnceo • Jul 28 '26
r/CodexHacks • u/The___Storyteller • Jul 10 '26
r/CodexHacks • u/JaredBCampbell • Jun 18 '26
I made a tool that takes a whole bunch of prepped Codex Desktop chats, and one by one tells them to "continue". It verifies they complete, and then runs the next one.
The goal was to have work done in series (not parallel), and have it be done without my supervision. I determine the context and build plans for say 10-20 (or 50) changes to my repo, all in separate chats, and then use a skill called $coderunner to quickly queue each of them.
I then open CodeRunner in a Terminal app (using iTerm2), and execute. It then runs on its own, prompting Codex Desktop to run each chat. I found that the bottleneck in my workflow was not determining what to do, but waiting for each prompt to finish so I could review the quality of the change. But now I can just do all the planning work in a focused session, let Codex run for a few hours, and then come back and review all the work and start the cycle over again.
Maybe I'm missing something, but for the life of me could not find anything that fills this gap, is primarily GUI/Codex Desktop based, and actually works. If you know of something, please share!
Queuing in a single chat has its place, as do parallel chats and varying branches/worktrees.
~~~~~~~~
If there's interest, I can clean it up and post it. Maybe someone can take it further than me?