Files
cc-web/.codex/hooks/post-tool-use.sh
2026-06-28 23:12:35 +08:00

12 lines
404 B
Bash

#!/bin/bash
# planning-with-files: Post-tool-use hook for Codex
HOOK_DIR="$(cd "$(dirname "$0")" 2>/dev/null && pwd)"
PLAN_DIR="$(sh "${HOOK_DIR}/resolve-plan-dir.sh" 2>/dev/null)"
PLAN_FILE="${PLAN_DIR:+${PLAN_DIR}/}task_plan.md"
if [ -f "$PLAN_FILE" ]; then
echo "[planning-with-files] Update progress.md with what you just did. If a phase is now complete, update task_plan.md status."
fi
exit 0