FAILOVERHand a scheduled job from Claude to Codex

Links
- code.claude.comOpen the pagecode.claude.com
- Claude CodeInstall it: Anthropic's official guidecode.claude.com
How to do it
- Run Claude headless with --output-format json and capture stdout.
- Don't trust the word 'success' read is_error and api_error_status. 429 means a limit; also match a result like 'hit your limit', which subscriptions can print.
- Only on a limit run codex exec once with the exact same prompt (codex exec - < prompt.md), from the same folder.
- Define done as a file the job writes when it really finishes. Check the file, never the reply.
- If neither run writes it, send yourself one alert instead of retrying in a loop.