This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ============================================================= | |
| # dispatch-codex.sh — Dispatch a task to Codex CLI (background) | |
| # ============================================================= | |
| # Called by OpenClaw/Forge to launch Codex CLI in the background. | |
| # Writes task info to state file, starts Codex in non-interactive | |
| # exec mode, and returns immediately (non-blocking). | |
| # | |
| # On completion, on-codex-complete.sh is called automatically | |
| # to write results and notify OpenClaw. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "env": { | |
| "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" | |
| }, | |
| "hooks": { | |
| "Stop": [ | |
| { | |
| "hooks": [ | |
| { | |
| "type": "command", |