Claude Code hook

Claude Code Tamagotchi

Virtual pet that watches Claude's actions through hooks and interrupts when it breaks your rules.

435 stars 65 forksHooks Source

Install

Install
npm install -g claude-code-tamagotchi
From source
git clone https://github.com/Ido-Levi/claude-code-tamagotchi.git

From 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,…
Read the full README on GitHub

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.
Claude Code docs

Details

Type
Hooks
Language
TypeScript
License
MIT
Last updated
20 October 2025
Topics
agentic-aiagentsclaudeclaude-aiclaude-codellmsstatusline

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

Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.