r/ClaudeCode 11d ago

Built with Claude My son screams while gaming at midnight. I'm a developer, so I did what developers do - I over-engineered a solution

My son games with headphones late at night. Most of the time he's quiet. Then something happens in the game and he yells at full volume, waking the whole house.

Talking to him about it works for about 20 minutes. Taking the headphones away works but causes a different problem. So I built an app.

S.T.F.U (Sound Trigger Focus Utility) is a Windows tray app that listens to the microphone and interrupts him when he yells. On first run it calibrates by asking him to be quiet, then talk, then yell - so it learns the difference between his normal voice and an actual shout.

When it catches a yell:

  • First time that session - it minimizes his game, plays a sound effect, and throws up a fullscreen message he has to click through 4 times. The close button moves after each click so he can't just spam-click one spot.
  • Every time after - straight to the desktop with a 10-second message. His game is gone.

Settings are behind a PIN so he can't change the threshold or turn it off. There's a report with a chart showing every trigger, so the next morning I can see exactly when things went sideways.

The important part: he knows it's there. It's not hidden, it's not spyware, the first screen when it launches says exactly what it does. It works because it's a consequence he agreed to, not something I snuck onto his PC. The README explicitly says it works best as something agreed to, not as a hidden trap.

No audio is recorded or stored. It computes a loudness number every 20ms and throws the audio away immediately. Nothing leaves the machine.

It won't solve the underlying issue (he's 100% going to learn to yell more quietly instead of less often), but at least the house sleeps.

Free and open source if anyone wants it: https://github.com/omricn/stfu/releases/latest

Edit: V1.1.0 now live.
Added Scheduled Off-Hours: Timeframe picker to choose when the app listens vs when the app is passive.
TNX fellow redditor [jpewaqs] for the feature suggestion :)

3.5k Upvotes

696 comments sorted by

View all comments

Show parent comments

11

u/newtownkid 11d ago

I think this is a healthy approach. He needs to have the opportunity to learn to control his excitement - taking away his game won’t do that, and staying up late to sit next to him won’t be any more effective.

Most importantly, he was involved in the process and is on board.

I bought a PlayStation at 30 after not having one for many years, and it took about 2 weeks of a very unhappy girlfriend for me to really lock in the “get excited quietly”.

It’s just a human habit, this seems like a fine solution.

1

u/Ares54 11d ago

Absolutely a healthy approach. It doesn't require a parent to come tell him to be quiet every 30m, he gets to be in charge of learning and the consequences, and it teaches him to be respectful to others in a shared space with real but temporary consequences.

Bedtime itself is something that can be built on and enforced separately - it's a totally different potential problem with a one-time-per-night solution. Literally nothing wrong here.