Working code examples and configs referenced from Medium articles. Clone this repo to get copy-paste-ready code.
A series on customizing and hardening your Claude Code setup.
| # | Article | Code |
|---|---|---|
| 1 | Claude Code's Hidden Status Line Changed How I Work | claude-code/status-line/ |
| 2 | Your AI Coding Agent Can Run rm -rf / — Here's How to Stop It | claude-code/safety-hooks/ |
# Clone the repo
git clone https://github.com/ridjex/blog-code.git
# Status line setup
cp blog-code/claude-code/status-line/statusline.sh ~/.claude/statusline.sh
chmod +x ~/.claude/statusline.sh
# Safety hooks setup
mkdir -p ~/.claude/hooks
cp blog-code/claude-code/safety-hooks/block-dangerous.sh ~/.claude/hooks/block-dangerous.sh
chmod +x ~/.claude/hooks/block-dangerous.shThen add the relevant settings snippets to your ~/.claude/settings.json. See each directory for the settings-snippet.json.
MIT