<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Safety on Chen Kai Blog</title><link>https://www.chenk.top/en/tags/safety/</link><description>Recent content in Safety on Chen Kai Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 22 Apr 2026 09:00:00 +0000</lastBuildDate><atom:link href="https://www.chenk.top/en/tags/safety/index.xml" rel="self" type="application/rss+xml"/><item><title>Claude Code Hands-On (5): Hooks, or How to Stop Worrying About Yolo Mode</title><link>https://www.chenk.top/en/claude-code-learn/05-hooks/</link><pubDate>Wed, 22 Apr 2026 09:00:00 +0000</pubDate><guid>https://www.chenk.top/en/claude-code-learn/05-hooks/</guid><description>&lt;p>If MCP is how Claude reaches out, hooks are how you reach in. They enforce the rules you care about, not just what you hope for.&lt;/p>
&lt;p>&lt;figure class="article-figure">
 &lt;img src="https://blog-pic-ck.oss-cn-beijing.aliyuncs.com/posts/en/claude-code-learn/05-hooks/illustration_1.png?x-oss-process=image/resize,w_1200/format,webp/quality,q_88" alt="Claude Code Hands-On (5): Hooks, or How to Stop Worrying About Yolo Mode — Chapter overview" loading="lazy" decoding="async" class="content-image">
 
&lt;/figure>
&lt;/p>
&lt;hr>
&lt;h2 id="the-model" class="heading-anchor">The model&lt;a href="#the-model" class="heading-link" aria-label="Permalink to this section" title="Copy link to this section">#&lt;/a>
&lt;/h2>&lt;p>A hook is a shell command that Claude Code runs at specific moments. The two you&amp;rsquo;ll use most are:&lt;/p></description></item><item><title>LLM Engineering (11): Safety and Alignment</title><link>https://www.chenk.top/en/llm-engineering/11-safety/</link><pubDate>Mon, 06 Apr 2026 09:00:00 +0000</pubDate><guid>https://www.chenk.top/en/llm-engineering/11-safety/</guid><description>&lt;p>Safety has the worst signal-to-noise ratio of any topic in LLM engineering. There&amp;rsquo;s a lot of philosophy, a lot of marketing, and not a lot of engineering specifics. This chapter is the engineering specifics: what RLHF actually optimizes when it talks about &amp;ldquo;safety,&amp;rdquo; how refusal calibration breaks, what red-teaming looks like in practice, the hallucination measures that actually predict customer impact, and the small but significant 2024-2026 papers (Sleeper Agents, refusal as a feature direction, weak-to-strong generalization) that should change how you think about alignment in production.&lt;/p></description></item></channel></rss>