#!/bin/bash
# Seshat PreToolUse hook — soft nudge before Grep/Glob/Read for code exploration.
# Installed by `seshat init` into ~/.claude/hooks/ or .claude/hooks/.
# Fires on: Grep, Glob, Read, Search tool calls.
# Soft mode: prints reminder but does NOT block (exit 0).
# One nudge per session via atomic gate directory (PPID + bash PID).
# Include $$ (this script's PID) to avoid PPID collisions across OS reuse.
GATE=/tmp/seshat-pre-tool-gate--
# Clean up gate dirs older than 60 minutes (session-scoped, not day-scoped).
# Atomic gate: mkdir succeeds only once per PPID+PID combination.
if ! ; then
fi