@deepvite/fix-codex-reconnecting
ASwitch Codex between HTTP-only and WebSocket/default network modes by editing the Codex config. Use when Codex repeatedly retries WebSocket connections, when the user wants to force HTTP, when the user wants to restore the default provider, or when checking the current mode.
Install
agr install @deepvite/fix-codex-reconnecting --target claudeWrites 3 files into .claude/skills/, pinned to git-4c00b9db.
- .claude/skills/fix-codex-reconnecting/LICENSE
- .claude/skills/fix-codex-reconnecting/README.md
- .claude/skills/fix-codex-reconnecting/SKILL.md
Document
name: fix-codex-reconnecting description: Switch Codex between HTTP-only and WebSocket/default network modes by editing the Codex config. Use when Codex repeatedly retries WebSocket connections, when the user wants to force HTTP, when the user wants to restore the default provider, or when checking the current mode.
Fix Codex Reconnecting
Use this skill to change Codex network mode without touching unrelated settings.
Workflow
- Read the current
~/.codex/config.toml. - Create a timestamped backup before writing.
- Run
scripts/switch_codex_network_mode.ps1for the actual edit. - Preserve unrelated config, plugin, and MCP settings.
- Treat third-party config managers such as
ccswitchas owners of the same file; they can overwrite these changes later. - Validate with
codex debug models. - Tell the user to restart the Codex desktop app.
Modes
http: setmodel_provider = "openai_http"and add[model_providers.openai_http]withsupports_websockets = false.websocket: remove theopenai_httpoverride and return to the built-in provider.status: report the current mode without modifying files.
User Copy
Use README.md when the user wants a copy-paste prompt instead of installing the skill.
Files
scripts/switch_codex_network_mode.ps1: applies the mode change with backup handling.README.md: user-facing prompts, warnings, and recovery notes.
Trustgrade A
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- passLicense
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-4c00b9db4f0f2026-07-31