frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Claude Hooks: 6 hooks to make Claude Code cleaner, safer, and saner

https://github.com/decider/claude-hooks
3•decide•10h ago

Comments

decide•10h ago
> Claude Code hooks are user-defined shell commands that execute at various points in Claude Code's lifecycle. Hooks provide deterministic control over Claude Code's behavior, ensuring certain actions always happen rather than relying on the LLM to choose to run them.

Claude Code released hooks a few days ago, and I set up a few hooks to improve my experience (and velocity) using Claude Code:

• check-package-age.sh: prevents CC from installing outdated packages • code-quality-primer.sh / code-quality-validator.sh: Validates code quality • code-similarity-check.sh: Helps prevent duplicate code (and uses an indexer to support faster method lookup) • pre-commit-check.sh: Blocks bad commits with lint/test checks • claude-context-updater.sh: Auto-updates CLAUDE.md to keep context fresh (and helps CC navigate the codebase faster)

To help me debug that the hooks were running, I added (local) logging, and I can see stats on the hooks that have run.

I tend to add a new hook when I notice CC not behaving as I want. I've got a backlog of hooks to add.

This is mostly functional, though before it being 'perfect' I figured I'd put it out here to get input and maybe some other contributors.

Refrigeration 101 (2022) [video]

https://www.youtube.com/watch?v=4U-XG7cY7bI
1•throw0101a•38s ago•0 comments

Google faces EU antitrust complaint over AI Overviews

https://techcrunch.com/2025/07/05/google-faces-eu-antitrust-complaint-over-ai-overviews/
1•saubeidl•1m ago•0 comments

4me.tools – A Free Online Utility Suite for Devs and Everyday Tasks

https://4me.tools
1•jack5341•5m ago•1 comments

Timex Sinclair 1000 computer: Revisiting its legacy

https://dfarq.homeip.net/timex-sinclair-1000/
1•rbanffy•6m ago•0 comments

The AI Bubble Is Real. So Is the AI Revolution – By OMC

https://omc345.substack.com/p/the-ai-bubble-is-real-so-is-the-ai
1•rbanffy•6m ago•0 comments

Building a Mac app with Claude code

https://www.indragie.com/blog/i-shipped-a-macos-app-built-entirely-by-claude-code
2•gdudeman•9m ago•0 comments

0xlover/auth, a single executable rest authentication API that doesn't fail

https://github.com/0xlover/auth
1•0xlover•9m ago•0 comments

Secret Agent Man (1986)

https://www.rollingstone.com/culture/culture-features/secret-agent-man-52557/
1•thomassmith65•12m ago•0 comments

Open Letter to Organic Maps Shareholders

https://www.comaps.app/news/2025-04-16/1/
1•Timshel•13m ago•0 comments

Thank you to the Hacker News moderators

4•FerkiHN•13m ago•0 comments

Show HN: Pixel Art Generator Using Genetic Algorithm

https://github.com/Yutarop/ga-pixel-art
2•ponta17•15m ago•2 comments

Claude Code Pro Limit? Hack It While You Sleep

https://github.com/terryso/claude-auto-resume
4•suchuanyi•16m ago•0 comments

A brief history of Erlang's BEAM compiler (2018)

https://www.erlang.org/blog/beam-compiler-history/
1•fanf2•23m ago•0 comments

Show HN: I made an app to transform any URL into engaging videos

https://twitter.com/HooxApp/status/1941169596939333679
1•Tafting•25m ago•1 comments

The Midpeninsula Free University (1968)

http://a3mreunion.org/mfu/mfu-1968-02-09.html
1•ilamont•26m ago•0 comments

What the Heck Is MCP

https://www.rkayg.com/blog/understanding-mcp
1•rkayg•26m ago•0 comments

Social media creators hit by burnout

https://www.theguardian.com/media/2025/jul/05/cant-pause-internet-social-media-creators-burnout
1•bookofjoe•26m ago•0 comments

Show HN: GraphFlow – A lightweight Rust framework for multi-agent orchestration

https://github.com/a-agmon/rs-graph-llm
1•alonagmon•28m ago•0 comments

Metacomco / Commodore Amiga Transputer Board

http://transputer.classiccmp.org/metacomco.htm
1•nickt•31m ago•0 comments

Google strikes deal to buy fusion power from MIT spinoff Commonwealth

https://www.reuters.com/sustainability/climate-energy/google-strikes-deal-buy-fusion-power-mit-spinoff-commonwealth-2025-06-30/
2•mpweiher•31m ago•0 comments

Toys/Lag: Jerk Monitor

https://nothing.pcarrier.com/posts/lag/
5•ptramo•31m ago•1 comments

Show HN: JLSP – A Java Expression Parser

https://github.com/gochi9/JLSP
1•gochi9•38m ago•0 comments

A project to track the termination of grants of scientific research agencies

https://grant-watch.us/
1•dangle1•40m ago•0 comments

Reinforcement Learning from Human Feedback (RLHF) in Notebooks

https://github.com/ash80/RLHF_in_notebooks
7•ash_at_hny•41m ago•0 comments

Vulnetic: AI Pentesting

https://www.vulnetic.ai/
2•handfuloflight•43m ago•1 comments

Primitive-Based Generation of Controllable and Editable 3D Semantic Scenes

https://arxiv.org/abs/2506.19117
1•PaulHoule•43m ago•0 comments

Reboots and remakes: why is Hollywood stuck on repeat?

https://www.theguardian.com/news/ng-interactive/2025/jul/06/reboots-and-remakes-why-is-hollywood-stuck-on-repeat
2•tosh•44m ago•1 comments

CursorAI "unlimited" plan rug pull

https://consumerrights.wiki/CursorAI_%22unlimited%22_plan_rug_pull
7•Improvement•45m ago•1 comments

Cory Doctorow reveals how he'd fix Big Tech's domination

https://thenewstack.io/cory-doctorow-reveals-how-hed-fix-big-techs-domination/
4•MilnerRoute•47m ago•0 comments

A Hacker and the Czech Justice Minister Split a Billion Crowns in Bitcoin

https://sotakgregor.com/u/blazek/
1•the21st•47m ago•0 comments