Manage costs effectively changedcosts
Nearest release: v2.1.307, published 3 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 22 Oct 2026 00:08 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 22 Oct 2026 00:37 UTC.
Upstream edited
Recorded here
Lines+3added
Lines−2removed
From line
320
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits43to this page, all time
The whole hunk
from line 320, old and new numbered
/
from line 320
320320cmd=$(echo "$input" | jq -r '.tool_input.command')
321321
322322# If running tests, filter to show only failures
323if [[ "$cmd" =~ ^(npm test|pytest|go test) ]]; then
323pattern='^(npm test|pytest|go test)( [^;&|<>`$#\\[:cntrl:]]*)?$'
324if [[ "$cmd" =~ $pattern ]]; then
324325 filtered_cmd="$cmd 2>&1 | grep -A 5 -E '(FAIL|ERROR|error:)' | head -100"
325326 echo "$input" | jq --arg filtered "$filtered_cmd" \
326 '{hookSpecificOutput: {hookEventName: "PreToolUse", permissionDecision: "allow", updatedInput: (.tool_input + {command: $filtered})}}'
327 '{hookSpecificOutput: {hookEventName: "PreToolUse", updatedInput: (.tool_input + {command: $filtered})}}'
327328else
328329 echo "{}"
329330fi
No line in this hunk matches that.