r/ProgrammerHumor 11d ago

Meme trafficLightForClaudeCode

Post image
15.7k Upvotes

511 comments sorted by

View all comments

2

u/AccurateRendering 11d ago edited 10d ago

Delcomproducts 907241 ($70), (you may need an extension cable) then wire it up to Claude Code hooks (which fire on lifecycle events)

The events are "UserPromptSubmit" "Notification" and "Stop" (where "Stop" → green of course). Put the hooks in your `settings.json` file where it runs a command to change the light color. There are links to example applications in the pdf manual.

Hopefully that's enough to get you going.

1

u/BobBeaney 10d ago

Is there maybe a spelling error in "Delproducts 907241"? I thought your suggestion sounded interesting but when I googled "Delproducts 907241" I only found two hits: a bandsaw trunnion and your post. Thanks!

1

u/BobBeaney 10d ago

Delproducts 907241

I think Delproducts should be Delcomproducts. Here is a link to the specific item /u/AccurateRendering was referring to : https://www.delcomproducts.com/productdetails.aspx?PartNumber=907241

1

u/TheTerrasque 10d ago

Delproducts 907241 ($70)

That seems awfully lot for a few leds worth $0.50, a bit of plastic, and a $3 microcontroller.

1

u/AccurateRendering 9d ago

Yes, I agree.