| Age | Commit message (Collapse) | Author |
|
An example plugin to read, copy and change: twenty animated scenes drawn
behind the chat in Claude Desktop, with frosted-glass panels, chosen per
project or per session with /custom-theme, and a short fireworks show.
Adds plugins/theme-examples and its entry in marketplace.json.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013UQQgZFQiVMThRLmS814y8
|
|
The commit and push reviews keep two small records (sg-reviewed-shas,
sg-reviewed-diffs) and one marker per commit under review
(sg-inflight-<sha>) in the git directory.
The plugin should only read and write files it made itself; the session
state file is already written in a similar way. All three are now opened
through one helper, which takes a regular file with no second hard link that
is no larger than a record can be. Anything else at that path is replaced by
a new file when the record is about to be written, and passed over when it
is only read. A folder is left alone. The open never waits, and reads from a
record are capped. Anything old at a marker's path that is not such a file,
other than a folder, is removed without being opened.
Three more fixes on the same lines:
- sg-reviewed-shas was locked with a blocking flock just before the findings
go out, so the findings waited for the lock, up to the hook's timeout. The
hook now waits half a second and then appends without the lock, as it does
where there is no flock.
- Bytes in that record that are not text ended the push review with a
traceback. They now cost only their own row.
- The rewritten record was still in the buffer when the lock was released, so
rows written by several sessions at once were lost. It is flushed first.
Cost: in a repository copied with hard links (cp -al) the records have two
names, so neither copy reads them. The first copy to write starts them
afresh, and commits reviewed before the copy may be reviewed once more.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: Claude <noreply@anthropic.com>
|
|
security-guidance: take the review model from one place, default to the newest listed
|
|
security-guidance: review commits and pushes made through the PowerShell tool
|
|
security-guidance: keep the pip temp folder to a real folder of this user
|
|
security-guidance: review what a commit-and-push command sends out beyond its own commit
|
|
security-guidance: stop custom rule regexes that run too long
|
|
security-guidance: custom rule globs can be relative to the project
|
|
security-guidance: read yaml, torch and numpy load calls across their arguments
|
|
security-guidance: hold back a host's token by the host, not the output setting
|
|
security-guidance: find Claude Code for the gateway sign-in check on Windows
|
|
security-guidance: push review of a merge reviews what the push added
|
|
security-guidance: pack the custom rule counts into one telemetry key
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
newest listed
The commit reviewer asked its CLI for the opus alias, so an out-of-date
CLI reviewed on an older model. It now uses the same lookup as the diff
review, at medium effort, and keeps the alias when the endpoint can't
list models. The retry model comes from the same lookup. Model names
remain only for a direct API call when the endpoint can't list.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: Claude <noreply@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
its own commit
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
security-guidance: bump version to 2.0.19
|
|
security-guidance: keep project rules after the session changes folder
|
|
security-guidance: set an environment variable for the launcher's interpreter probes
|
|
security-guidance: count reviewer verdicts the CLI refused
|
|
security-guidance: send a claude.ai token as a bearer, hold back a gateway's
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
# Conflicts:
# plugins/security-guidance/README.md
|
|
In a session signed in to a Claude apps gateway the check only knew macOS and
Linux paths, so Windows reviews were skipped unless SG_AGENTIC_CLI_PATH was
set. Look at the native installer's claude.exe too.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
security-guidance: count commits that no commit hook saw
|
|
security-guidance: stop the commit reviewer renewing a stored login
|
|
security-guidance: say when a Stop finding is in a file the session has no record of editing
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
The test helper opened the first JSON file in the state directory, which can
be the review model cache depending on directory order. Select the session
state file by its prefix and require exactly one.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
interpreter probes
sg-python.sh asks a candidate interpreter for its version and, for a
packaged Windows alias, for its real path, with `python -c`. Both calls
import only os and sys, so they now run with PYTHONSAFEPATH=1, which tells
Python not to add its usual first entry to the import path.
The variable is set for those two calls alone, so the hook starts with the
same environment as before. Python older than 3.11 ignores the variable.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
The reviewed prefix could end on the merged-in branch, so the diff held
everything the first parent has that the branch lacks. Keep the base on
HEAD's first-parent line. A merge whose history is all reviewed is sent as
its combined diff, so only its conflict resolutions and hand edits are read.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|