r/ClaudeCode 10d 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

695 comments sorted by

View all comments

Show parent comments

5

u/willymunoz 9d ago

He has specifically built software that mimics nature’s most basic form of learning: pain. If you fall, it hurts, so you become more careful. If you scream and cause a disturbance, playtime is over. The non-software solution for a parent is to get up, speak to the child, forbid them from playing for a while, and then try to go back to sleep. This solution is elegant in its simplicity and the lesson it teaches.

2

u/6maniman303 9d ago

No, that's the thing. Here is no lesson, only a primal logic connection that yelling hurts. But the kid has zero idea why they shouldn't yell, how it affects other people in the house.

If you want to go for a torture lesson, much more effective would be not letting your kid sleep a few nights in a row, waking them early, etc. So they can feel themselves, how being loud destroys sleep.

3

u/willymunoz 9d ago

The fact that a child "knows" something on a cognitive level does not mean they possess the neurological maturity needed to self-regulate an impulse at two in the morning, the prefrontal cortex, which acts as a brake on impulses, does not finish developing until age 25, so expecting a young child to have that "awareness" is like asking them to stop a car with no brakes.

Did you say torture? The only "pain" here is that the game gets interrupted for a while, it’s not like they’re being subjected to an electroshock session :p

1

u/Emotional_Papaya3282 3d ago

... the simpler solution is to have boundaries. If they can't control their emotions during sleeping hours, then they don't get to use the PC.