This blog is where I keep notes on things I learn, along with occasional essays, reflections, and personal stories. Unless otherwise stated, all posts are original and may not be reproduced.

I Launched a Severance Pay Calculator
I recently launched a small tool: SeveranceGO-CN: China Severance Pay Calculator . The source code is also on GitHub: masonblog/SeveranceGO-CN . Its purpose is straightforward. After you enter information such as the start and end dates of employment, last year’s income, the place where the employment contract was performed, whether a written contract was signed, and the reason for departure, the tool estimates statutory severance, damages for unlawful termination, payment in lieu of notice, and the possible double-wage range for failure to sign a written employment contract. ...

With AI, I Built a Provincial Leave Policy Lookup Site
The Impulse: A Law Student’s “Improper Side Quest” As a corporate lawyer, I spend much of my day dealing with statutes, regulations, and relatives or friends who come to me with legal questions. One of the topics people ask about most often is employment law. Local leave policies in particular—how many days of marriage leave, how long maternity leave lasts, and so on—are questions almost everyone eventually runs into. A while ago, a friend moved to a company in Shenzhen and asked me, “How many days of paternity leave does Shenzhen actually give? Everything online is a mess.” I looked around and found that he was right. There is one set of national rules, and then every province has its own local supplements. The information is scattered across human resources department websites, government gazettes, and local regulations. There was no single place where you could compare everything at a glance. ...

Claude Code Source Leak: The Chain Reaction Caused by One .npmignore Mistake
On March 31, 2026, the AI world received an unexpected “April Fools’ Eve gift”: the full source code of Anthropic’s star product, Claude Code, accidentally made its way onto the internet because of a packaging mistake. This was not a hack. It was not an insider leak. Someone simply forgot to add *.map to .npmignore. Just like that, 510,000 lines of TypeScript, 44 hidden feature flags, and a mysterious background autonomous agent called KAIROS were exposed to everyone within hours. ...

How to Use ClawdBot on Windows: Build a Personal AI Assistant with Gemini and Telegram
Have you heard of ClawdBot? It is a very popular open-source personal AI assistant. Unlike traditional chatbots that simply wait for instructions, ClawdBot has a degree of initiative: it can message you proactively, manage tasks, and run on your own local device. Many tutorials recommend running it on a Mac Mini or a Linux server, but running it on Windows is perfectly fine too. In this post, I will walk you through installing ClawdBot on Windows, configuring it to use Google’s Gemini API (currently one of the best AI model options, with a free quota), and connecting it to Telegram, so you can chat with your AI assistant anywhere. ...