Update Search Year
Hooks pre-tool
Automatically adds current year to WebSearch queries when no year is specified. This hook intercepts WebSearch tool usage and appends the current year to queries that don't already contain a year, ensuring search results are current and relevant.
npx claude-code-templates@latest --hook pre-tool/update-search-year claude-code — update-search-year
Content
JSON
{
"description": "Automatically adds current year to WebSearch queries when no year is specified. ..."
"hooks": {
"PreToolUse": [1 item]
}
}