mirror of
https://github.com/safishamsi/graphify.git
synced 2026-10-25 00:03:32 +00:00
The read/search nudge was re-injected on every qualifying Read/Glob/Grep/Bash call with no dedup or session cap (issue #3435 measured ~8,348 injections, ~651k tokens, for 339 graphify calls), and an agent that just ran `graphify query` was still nudged on its very next read. `_nudge_allowed` now gates all three soft-nudge sites with a per-session + per-agent counter (first nudge always fires; later ones suppressed while the query stamp is fresh; hard cap via GRAPHIFY_HOOK_NUDGE_CAP, default 5), with 24h GC and fail-open preserved. Subagents get independent budgets. The strict deny path is unchanged. Landed from PR #3443 (squashed). The README strict-mode note is omitted here because that prose moved to docs.graphify.com in the README trim. Co-Authored-By: Andre Brait <andrebrait@gmail.com> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>