Claude can now write code to filter its own web searches
Anthropic just added dynamic filtering to Claude's web search and fetch tools on the API. Instead of dumping raw HTML into context, Claude writes and runs code to strip junk data before reasoning over it, boosting benchmark accuracy by 11% while slashing input tokens by 24%. It is on by default for Sonnet 4.6 and Opus 4.6.