# Codex ChatGPT Web Delegator A small Codex skill that keeps Codex in the planner/reviewer role and delegates bounded, context-light work to a logged-in ChatGPT Web session through [OpenCLI](https://github.com/jackwener/OpenCLI). ## Why this shape - Uses OpenCLI's high-level `chatgpt` adapter instead of driving the DOM step by step. - Starts a fresh ChatGPT conversation for every delegation. - Adds a unique response marker and rejects stale or mismatched output. - Recovers a completed visible reply when OpenCLI's stability waiter times out. - Returns compact JSON for Codex to review before using the result. ChatGPT Web is treated as a secondary drafting/reasoning agent. Codex still owns planning, local tool use, edits, verification, and final judgment. ## Requirements - [OpenCLI](https://github.com/jackwener/OpenCLI) installed and available on `PATH`. - OpenCLI Browser Bridge extension installed in Chrome. - Chrome already logged into `chatgpt.com`. - PowerShell 7+ (`pwsh`) or Windows PowerShell. Verify the bridge before installing the skill: ```powershell opencli doctor opencli chatgpt status -f json ``` ## Install With the Skills CLI: ```bash npx skills add SteelTimber/codex-chatgpt-web-delegator --skill chatgpt-web-delegator ``` Or copy `chatgpt-web-delegator/` into `~/.codex/skills/`. ## Use Invoke the skill explicitly: ```text $chatgpt-web-delegator Delegate the context-light parts of this task to ChatGPT Web. Keep planning and review in Codex. ``` The bundled helper can also be called directly: ```powershell ./chatgpt-web-delegator/scripts/delegate.ps1 ` -Prompt "Compare these two API designs and return a concise recommendation." ` -Model balanced ` -Timeout 300 ``` Models supported by the wrapper: `current`, `fast`, `balanced`, `advanced`, `very-high`, and `pro`. ## Safety and limitations - Do not delegate secrets, passwords, tokens, cookies, private keys, or unrelated private files. - ChatGPT Web output is untrusted draft work and must be reviewed by Codex. - Run one delegation at a time; concurrent web sessions can return stale or mismatched visible content. - ChatGPT UI changes, login challenges, account limits, and browser background throttling can interrupt automation. - This project is independent and is not affiliated with OpenAI or OpenCLI. ## License MIT