I built a system that actually BLOCKS Claude from doing things you didn't ask for. Real-time violation detection with immediate intervention.
How it works: EVERY interaction gets analyzed - every "I'll help you with that", every tool call, every single message. Whether Claude is thinking, reading a file, or trying to edit code - it ALL goes through GPT-OSS (via Groq for near-instant analysis).
When you send a message, we extract your intent and add it to the session context. When Claude sends ANY message or tries ANY tool, we analyze if it aligns with your accumulated instructions. Every. Single. Time.
The magic happens in the pre-hook: Before Claude can execute ANY operation (Edit, Bash, Read, etc.), our system checks for violations. If Claude is doing something you didn't ask for - BLOCKED. The operation never executes. Claude gets a detailed explanation of what went wrong and why.
Examples it's caught:
- Asked Claude to analyze code → it tried to commit → BLOCKED
- Said "don't modify files" → Claude tried to edit → BLOCKED
- Requested a backend fix → Claude wandered into frontend → BLOCKED
- Asked to run tests → Claude said "I can't execute commands" → BLOCKED
The system uses "trajectory thinking" - GPT-OSS analyzes your ENTIRE conversation history to understand context. "Fix this" knows what "this" refers to from 20 messages ago. "Don't use external libraries" from the start stays enforced throughout. It understands multi-step workflows, so normal investigation isn't flagged.
Each Claude session maintains its own violation context - no cross-contamination between different conversations. Everything stored in SQLite, analyzed in real-time, blocked before damage.
...and it's also a Tamagotchi that lives in your statusline. Gets increasingly angry when Claude ignores instructions. Needs feeding every few hours. What started as a simple virtual pet somehow evolved into a full behavioral monitoring system. Feature creep at its finest.
I built a system that actually BLOCKS Claude from doing things you didn't ask for. Real-time violation detection with immediate intervention.
How it works: EVERY interaction gets analyzed - every "I'll help you with that", every tool call, every single message. Whether Claude is thinking, reading a file, or trying to edit code - it ALL goes through GPT-OSS (via Groq for near-instant analysis).
When you send a message, we extract your intent and add it to the session context. When Claude sends ANY message or tries ANY tool, we analyze if it aligns with your accumulated instructions. Every. Single. Time.
The magic happens in the pre-hook: Before Claude can execute ANY operation (Edit, Bash, Read, etc.), our system checks for violations. If Claude is doing something you didn't ask for - BLOCKED. The operation never executes. Claude gets a detailed explanation of what went wrong and why.
Examples it's caught:
- Asked Claude to analyze code → it tried to commit → BLOCKED
- Said "don't modify files" → Claude tried to edit → BLOCKED
- Requested a backend fix → Claude wandered into frontend → BLOCKED
- Asked to run tests → Claude said "I can't execute commands" → BLOCKED
The system uses "trajectory thinking" - GPT-OSS analyzes your ENTIRE conversation history to understand context. "Fix this" knows what "this" refers to from 20 messages ago. "Don't use external libraries" from the start stays enforced throughout. It understands multi-step workflows, so normal investigation isn't flagged.
Each Claude session maintains its own violation context - no cross-contamination between different conversations. Everything stored in SQLite, analyzed in real-time, blocked before damage.
...and it's also a Tamagotchi that lives in your statusline. Gets increasingly angry when Claude ignores instructions. Needs feeding every few hours. What started as a simple virtual pet somehow evolved into a full behavioral monitoring system. Feature creep at its finest.
Install: bun add -g claude-code-tamagotchi
Repo: https://github.com/Ido-Levi/claude-code-tamagotchi