Anthropic adds mods to Claude Code: TypeScript hooks inside the agent loop