Claude Code hook
Claude Code Tamagotchi
Virtual pet that watches Claude's actions through hooks and interrupts when it breaks your rules.
Install
npm install -g claude-code-tamagotchigit clone https://github.com/Ido-Levi/claude-code-tamagotchi.gitFrom the README
Claude Code Tamagotchi š¾ *Real-time behavioral enforcement for Claude Code, disguised as a virtual pet* šØ EXPERIMENTAL FEATURE: BEHAVIORAL ENFORCEMENT SYSTEM šØ This pet now includes an experimental behavioral enforcement system that monitors Claude's actions in real-time and can block operations that violate your instructions. Think of it as a safety net that ensures Claude stays on track with what you actually asked for. This feature is in active development and may occasionally flag legitimate operations - we're tuning it based on real-world usage. š¢ Help Us Make This Amazing: If you encounter false positives (legitimate actions blocked), please open an issue! Your feedback is crucial for refining this feature. Include: - What Claude was trying to do - What you actually asked for - The violation message Every report helps us make the violation detection smarter and more accurate Table of Contents - What's This All About? - Quick Start - Installation Options - AI-Powered Behavioral Monitoring - Commands & Interaction - Understanding Your Pet - The Thought System - Configuration - FAQ - Troubleshooting - Contributing What's This All About? š® Hey! Welcome to Claude Code Tamagotchi - a digital friend that lives in your Claude Code statusline and keeps you company while you build cool stuff. It's literally a Tamagotchi for developers, but instead of a keychain, it lives where you work. But here's the twist: this isn't just a virtual pet. It's a real-time behavioral enforcement system that monitors Claude Code's actions, detects when it's going off-track, and can actually interrupt operations that violate your instructions. The pet is the friendly face of a sophisticated AI accountability system. Your pet lives right in your statusline, breathing, thinking,ā¦
How hooks work
- Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
- They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
- A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Details
- Repository
- Ido-Levi/claude-code-tamagotchi
- Type
- Hooks
- Language
- TypeScript
- License
- MIT
- Last updated
- 20 October 2025
- Topics
- agentic-aiagentsclaudeclaude-aiclaude-codellmsstatusline
- Listed in
- jqueryscript/awesome-claude-code
FAQ
What is Claude Code Tamagotchi?
Virtual pet that watches Claude's actions through hooks and interrupts when it breaks your rules. It is a hook for Claude Code, from Ido-Levi/claude-code-tamagotchi on GitHub.
How do I install Claude Code Tamagotchi?
Run npm install -g claude-code-tamagotchi, then follow the setup in the README.
Is Claude Code Tamagotchi popular?
Ido-Levi/claude-code-tamagotchi has 435 GitHub stars and 65 forks, and is included in 1 curated Claude Code list. It was last updated on 20 October 2025.
More hooks
Claude Code Voice Hooks
563shanraisshan/claude-code-hooks
Adds spoken voice feedback to each Claude Code hook event.
Claude Code Config
1.1kjarrodwatts/claude-code-config
My personal Claude Code configuration - rules, hooks, agents, skills, and commands
Medusa
1kPantheon-Security/medusa
AI-first security scanner. NEW in v2026.7: Claude Code compromise detection ā vet .claude/ hooks, permissions & skills before you clone ā plus an always-on AI attack-signature scanner and native Rust & PHP rules. Also: medusa scan --git to vet any repo, medusa secrets scan for leaked API keys. 40,000+ patterns, zero setup.
claude-hooks
397johnlindquist/claude-hooks
TypeScript framework for writing typed Claude Code hooks with a generated starter setup.
Kubb
1.8kkubb-labs/kubb
Turn your API spec into type-safe code. Generate TypeScript types, API clients, hooks, validators and mocks from a spec such as OpenAPI.
Instagram Skills
728sergebulaev/instagram-skills
Instagram marketing skills for Claude Code and Codex: captions, carousels, hooks, hashtag strategy, and a weekly plan. Draft, humanize, and publish via Publora. MIT. Content engineering by Creative Content Crafts.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.