#!/usr/bin/env bash set -euo pipefail script_dir="$(cd "$(dirname "$0")" && pwd)" project_dir="$(cd "$script_dir/../.." && pwd)" if ! command -v codex >/dev/null 2>&1; then echo "codex is not installed or not on PATH" >&2 exit 1 fi default_prompt="Read .codex-sync/handoff.md, inspect .codex-sync/runtime/status.json and git status -sb, then continue the task from this server checkout." if [[ $# -gt 0 ]]; then exec codex -C "$project_dir" "$*" else exec codex -C "$project_dir" "$default_prompt" fi