Skip to content

Instantly share code, notes, and snippets.

@alextangson
alextangson / dispatch-codex.sh
Created February 13, 2026 06:39
OpenClaw + Codex CLI 零轮询脚本 — 邪修大法第三弹
#!/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.
@alextangson
alextangson / claude-settings.json
Created February 13, 2026 06:38
OpenClaw + Claude Code Hooks 零轮询脚本 — 邪修大法第二弹
{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
},
"hooks": {
"Stop": [
{
"hooks": [
{
"type": "command",