Files
wushu/.trae/skills/planning-with-files/.gemini/hooks/after-tool.sh
2026-03-30 02:35:31 +08:00

17 lines
427 B
Bash

#!/bin/bash
# planning-with-files: AfterTool hook for Gemini CLI
# Reminds the agent to update progress after file writes.
# Reads stdin JSON, outputs JSON to stdout.
INPUT=$(cat)
PLAN_FILE="task_plan.md"
if [ ! -f "$PLAN_FILE" ]; then
echo '{}'
exit 0
fi
echo '{"additionalContext":"[planning-with-files] Update progress.md with what you just did. If a phase is now complete, update task_plan.md status."}'
exit 0