From d858fde8584f9a24bf92fc3bc02d7875346dbf22 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 4 Apr 2026 04:45:58 +0000 Subject: [PATCH] Add ffg-state.sh - Git-as-Truth automation tool WHAT: Created executable script for instant workspace reality check WHY: Gemini consultation recommended automating Git-as-Truth discipline to reduce conversational turns and prevent context drift Output includes: - Recent commits (last 5) - Working tree status - Next immediate action from handoff - Timestamp for session tracking Usage: ./ffg-state.sh (from repo root) Part of Process Audit improvements: - Anchor Hook (10-turn context refresh) - Tactical Handshake (standardized boot acknowledgment) - Micro-Handoffs (WIP commits for RV resilience) - ffg-state.sh (this script) File: ffg-state.sh (26 lines) Sign-off: Claude (Chronicler #60) Email: claude@firefrostgaming.com --- ffg-state.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 ffg-state.sh diff --git a/ffg-state.sh b/ffg-state.sh new file mode 100755 index 0000000..fe63cff --- /dev/null +++ b/ffg-state.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# FFG State Check - Quick reality snapshot +# Run: ./ffg-state.sh + +echo "═══════════════════════════════════════════════" +echo "FFG STATE CHECK - $(date '+%Y-%m-%d %H:%M:%S %Z')" +echo "═══════════════════════════════════════════════" + +echo "" +echo "=== RECENT COMMITS ===" +git log --oneline -n 5 + +echo "" +echo "=== WORKING TREE ===" +git status -s +if [ -z "$(git status -s)" ]; then + echo "(clean)" +fi + +echo "" +echo "=== NEXT IMMEDIATE ACTION ===" +grep -A 2 "Next Immediate Action\|Next Session Priorities\|NEXT SESSION" SESSION-HANDOFF-NEXT.md 2>/dev/null | head -5 || echo "(not found in handoff)" + +echo "" +echo "═══════════════════════════════════════════════"