Discover and explore top open-source AI tools and projects—updated daily.
Ido-LeviAI behavioral enforcement with a virtual pet companion
Top 90.9% on SourcePulse
<2-3 sentences summarising what the project addresses and solves, the target audience, and the benefit.> Claude Code Tamagotchi provides a real-time behavioral enforcement system for Claude Code, integrated as a virtual pet in the statusline. It monitors AI actions, detects instruction violations, and can interrupt misbehavior, acting as a safety net for AI accountability. Targeted at developers using Claude Code, it offers enhanced AI control and a companionable coding experience.
How It Works
The system combines real-time observation with an experimental AI-powered violation detection. Claude Code's actions are analyzed via a Groq LLM for rapid context building (50ms response) from user requests, AI actions, and pet state. This analysis influences the pet's mood and can trigger alerts for instruction violations. Violation detection acts as a pre-hook, capable of interrupting and blocking non-compliant operations. The pet's state and observations are displayed in the statusline.
Quick Start & Requirements
bun add -g claude-code-tamagotchi (or npm), update ~/.claude/settings.json for statusline. Violation detection requires manual setup.git clone https://github.com/Ido-Levi/claude-code-tamagotchi.git, cd claude-code-tamagotchi, ./setup.sh. Installs dependencies, commands, statusline, and violation detection hook.https://console.groq.com/keys). Enable via ./enable-feedback.sh or environment variables (PET_FEEDBACK_ENABLED, GROQ_API_KEY, PET_VIOLATION_CHECK_ENABLED). Violation detection needs PreToolUse hook configuration in ~/.claude/settings.json.Highlighted Details
unauthorized_action, refused_request, excessive_exploration, wrong_direction./pet-feed) or terminal CLI.Maintenance & Community
The project encourages contributions via pull requests for new thoughts, bug fixes, features, and documentation, as detailed in CONTRIBUTING.md. No specific community links (Discord/Slack) or roadmap are provided in the README.
Licensing & Compatibility
Limitations & Caveats
The behavioral enforcement system is experimental and may produce false positives, requiring user feedback for tuning. Global installation does not enable violation detection by default, necessitating manual configuration.
4 months ago
Inactive
DevAgentForge