<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hooks on Tokenise</title><link>https://tokenise.rosvetic.com/tags/hooks/</link><description>Recent content in Hooks on Tokenise</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 05 Oct 2026 22:30:00 +0000</lastBuildDate><atom:link href="https://tokenise.rosvetic.com/tags/hooks/index.xml" rel="self" type="application/rss+xml"/><item><title>A PreToolUse hook is the guardrail that survives bypass mode</title><link>https://tokenise.rosvetic.com/posts/claude-code-pretooluse-guardrail-hook/</link><pubDate>Mon, 05 Oct 2026 22:30:00 +0000</pubDate><guid>https://tokenise.rosvetic.com/posts/claude-code-pretooluse-guardrail-hook/</guid><description>&lt;p&gt;Permission prompts are only as strong as the mode you&amp;rsquo;re running in. Switch to bypass mode, or launch with &lt;code&gt;--dangerously-skip-permissions&lt;/code&gt;, and the prompts are gone. A PreToolUse hook is different: according to the Claude Code &lt;a href="https://code.claude.com/docs/en/hooks-guide" target="_blank" rel="noopener noreferrer"&gt;hooks guide&lt;/a&gt;&#10;, it fires before any permission-mode check, and a &lt;code&gt;deny&lt;/code&gt; from it blocks the tool even in &lt;code&gt;bypassPermissions&lt;/code&gt; mode.&lt;/p&gt;</description></item><item><title>Make Claude Code run your tests before it's allowed to say it's done</title><link>https://tokenise.rosvetic.com/posts/claude-code-stop-hook-tests/</link><pubDate>Wed, 30 Sep 2026 07:00:00 +0000</pubDate><guid>https://tokenise.rosvetic.com/posts/claude-code-stop-hook-tests/</guid><description>&lt;p&gt;Telling Claude Code to run the tests in CLAUDE.md is a request. It usually works, and sometimes it doesn&amp;rsquo;t. If you want it to work every time, Claude Code has a mechanism for that: a Stop hook, a script that runs when Claude thinks it&amp;rsquo;s finished and can refuse to let it stop.&lt;/p&gt;</description></item></channel></rss>