mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-12 18:37:12 +00:00
d193b6277d
Both the agent (session start) and the post-commit hook can run reflect; the runs are deterministic and idempotent, but back-to-back ones are wasted work. Add `graphify reflect --if-stale`, which no-ops when LESSONS.md is already at least as new as every input (the memory docs and the graph). The skill's session-start guidance now uses `--if-stale`, so when the hook just refreshed the file the agent's run costs almost nothing, while a skill-only install still refreshes on demand. New lessons_fresh() helper + 5 tests (mtime freshness in each direction, and the CLI skip/run behavior). Regenerated per-host references + re-blessed expected/; all five skillgen guards pass; full suite 2388 passed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>