跪拜 Guibai
← All articles
Frontend · Backend · Artificial Intelligence

Eight Codex Config Tweaks That Fix the 'Worse Than Doubao' Problem

By 饼干哥哥 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Teams burning budget on AI coding tools often blame the model when the real bottleneck is a handful of default settings that cripple throughput. These eight changes cost nothing and can flip a tool from dead weight to a daily driver.

Summary

After rolling out $200 Codex Pro seats to an entire team, one group reported the tool was useless while another was flying through work. A side-by-side settings comparison revealed the defaults were the bottleneck. The fixes range from granting full file-access permissions and switching the interaction tone to "Pragmatic" to adopting Andrej Karpathy's open-source custom instructions for agent behavior.

Other changes address workflow friction directly: switching the editor follow-up mode from "Queue" to "Guide" allows mid-task corrections, and session-management tricks let a frozen context continue in a fresh dialog via a copied session ID. Enabling full computer control for Chrome and arbitrary apps turns Codex into a desktop operator rather than just a code editor.

A persistent "Reconnecting 5/5" error traces back to WebSocket incompatibility with local proxies. The fix involves a prompt that rewrites the config to force an HTTP-based provider and, if needed, detects and injects the correct proxy port into the environment file.

Takeaways
Grant full-access permissions immediately; the default per-file confirmation interrupts flow and adds no safety for a developer who already reviews diffs.
Switch the agent's tone from "Affable" to "Pragmatic" to suppress verbose, unhelpful chatter.
Copy Andrej Karpathy's open-source custom instructions from GitHub (forrestchang/andrej-karpathy-skills) into the personalization field to harden agent behavior.
Change the editor follow-up mode from "Queue" to "Guide" so you can correct a running task mid-stream instead of waiting for it to finish.
When a session's context grows too long, copy the session ID and hand it to a fresh dialog to continue without losing state.
Enable computer-control permissions for Chrome and arbitrary applications so Codex can operate the desktop directly.
Use the task-search panel in the left sidebar instead of scrolling through a long task list.
Fix the WebSocket reconnection loop by prompting Codex to add an HTTP-based provider in config.toml and, if needed, detect and inject the local proxy port into .codex/.env.
Conclusions

Identical AI tooling produces wildly asymmetric productivity inside the same team, and the delta often lives in configuration defaults — not model quality or developer skill.

Karpathy's public complaints about agent behavior have been operationalized into a copy-paste ruleset that meaningfully improves output; community-sourced system prompts are becoming a practical layer of tool customization.

The WebSocket reconnection bug is a concrete example of how AI coding tools still assume a direct network path that corporate proxy environments routinely break, and the fix requires the tool to edit its own config.

Concepts & terms
Full Access permission mode
A Codex setting that grants the agent unrestricted file-system access without prompting for confirmation on each modification, reducing interruption during automated edits.
Guide mode
A follow-up behavior in Codex where the agent pauses during task execution to accept mid-stream corrections, as opposed to Queue mode which runs the task to completion before accepting input.
Session ID handoff
Copying a unique session identifier from a frozen or bloated task and pasting it into a new dialog to resume work with a fresh context window while preserving task history.
WebSocket reconnection loop
A failure mode where Codex repeatedly attempts a WebSocket connection through a proxy that doesn't support it, causing an endless 'Reconnecting 5/5' cycle; fixed by forcing an HTTP-based provider in the config.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗