Add codex-task-server-sync skill

这个提交包含在:
Codex
2026-03-16 23:46:45 -07:00
父节点 b2c5ef588d
当前提交 fc8ad7c145
修改 8 个文件,包含 1257 行新增0 行删除

查看文件

@@ -0,0 +1,18 @@
#!/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