Repository navigation
Conversation
The session-context hook compares the release in AGENTS.md's stamp with the framework repository's newest vX.Y.Z tag, asked with git ls-remote at most once a day, cached under ~/.cache/adf, with a 2-second timeout and silence offline. Once per session; UPDATE_CHECK in config.sh turns it off. Closes #88 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e-notice # Conflicts: # CHANGELOG.md
…e-notice # Conflicts: # CHANGELOG.md
Contributor
Author
|
On hold. The concern is the overhead it adds to every session. Measured: on a cached day the hook takes the same time with the check on or off; the first session of the day on a machine waits up to 2 s for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #88.
plugins/adf/hooks/session-context.sh: when the release in the stamp onAGENTS.md's first line (orCLAUDE.md's) is behind the framework repository's newestvX.Y.Ztag, prints "adf vX.Y.Z is available (this project is on vA.B.C) — run/adf:upgrade".git ls-remote --tags --refsat most once a day, caches in${XDG_CACHE_HOME:-~/.cache}/adf/(outside the repository), gives up after 2 seconds, and says nothing offline or on a timeout; a failed check is cached too, so an offline machine doesn't wait every session. Pre-release tags are ignored.UPDATE_CHECKin.claude/hooks/config.sh(skeleton) and_lib.sh's default:"1"; empty turns it off.tee: the Claude Directory check rejects redirects to computed paths.evals/static/test-hooks.shwith a local repository standing in for the network: behind, current, offline, a hanging remote, cache hit, stale cache, once per session, off, unfilled stamp, no stamp.scripts/build-committed.py --checkand./evals/run-evals.shpass.🤖 Generated with Claude Code