frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Is AI code assistance fundamentally unenforceable without hooks?

1•meloncafe•1h ago
I spent ~$2k on Claude Code this year (10+ years dev, non-dev job now, side projects only). The hard lesson: markdown instructions don't work.

AI needs enforcement.

The breaking point was Auto Compact. After context compression, Claude consistently ignores CLAUDE.md - the very file Anthropic tells you to create. It's like hiring someone who forgets their job description every 2 hours.

Core issues I couldn't solve with instructions alone:

- Post-compact amnesia: "interprets" previous session, often destructively

- Session memory loss: asks the same questions like a new intern daily

- TODO epidemic: "I implemented it!" (narrator: it was just a TODO)

- Command chaos: rm -rf, repetitive curl prompts, git commits with "by Claude"

- Guidelines = suggestions: follows them... when it feels like it

After 6 months struggling with this, I built enforcement hooks (command restrictor, auto-summarizer before compact, TODO detector, commit validator). They work, but I feel like I'm working against the tool rather than with it.

Questions for the community:

1. Is this everyone's experience, or am I using Claude Code fundamentally wrong?

2. For those on Cursor/Copilot/etc - same enforcement issues?

3. Is "markdown guidelines → AI follows them" just... not viable at scale?

The hooks are on GitHub (mostly Korean but universally functional):

https://github.com/meloncafe/claude-code-hooks

Really curious if this is a universal AI coding problem or a skill issue on my end.

Comments

spaceprison•1h ago
I’ve run into a similar issue, compacting is pretty much worthless and leads to a lot of churn. I have started having Claude pay constant attention to usage and assess whether the next batch of tasks flirts with compaction. If we’re anywhere close I have Claude create a next steps doc with meticulous notes along with a prompt that I can give to the next llm to hit the ground running.

Then kill the session and start fresh. At least this way I know there’s a fighting chance of not falling into a death spiral of the llm guessing about what it’s supposed to be doing as if it hasn’t just had a self inflicted stroke.

Show HN: React Component for Fibre Management

https://react-networks-example-site.vercel.app/fibre
1•matt-p•1m ago•0 comments

Composite Mod on the Coco 2: The UVD Board

https://nicole.express/2025/cuckoo-for-coco-puffs.html
1•zdw•5m ago•0 comments

Managing Modern HPC Clusters and Supercomputers from Software to Hardware

https://link.springer.com/book/9798868815997
1•teleforce•11m ago•0 comments

A Globally Optimal Alternative to Multi-Layer Perceptrons

https://www.mdpi.com/2078-2489/16/10/921
1•PaulHoule•12m ago•0 comments

AI-Powered Customer Service – 24/7 Global Support

1•twtsaas•13m ago•0 comments

EvSwipe – A gamified mobile app for coding interview prep (free, iOS)

https://devswipe.io/
1•kyanpepper•14m ago•1 comments

Introducing Kit–your new companion through the web

https://discourse.mozilla.org/t/introducing-kit-your-new-companion-through-the-web/146463
1•gluxon•18m ago•1 comments

Scientists Produce Powerhouse Pigment Behind Octopus Camouflage

https://today.ucsd.edu/story/scientists-produce-powerhouse-pigment-behind-octopus-camouflage
1•gmays•20m ago•0 comments

How networking grew to become Nvidia's $46B side hustle

https://www.sdxcentral.com/control-plane/how-networking-grew-to-become-nvidias-46-billion-side-hu...
2•oavioklein•22m ago•0 comments

Small-Town Pension Fund Has a Warning for Retirement Savers

https://www.wsj.com/finance/investing/this-small-town-pension-fund-has-a-warning-for-millions-of-...
2•SirLJ•24m ago•0 comments

Beginning Mathematical Logic: A Study Guide

https://www.logicmatters.net/tyl/
1•perihelions•29m ago•0 comments

Imgui-react-runtime: natively compiled apps with React+JavaScript+Dear ImGui

https://github.com/tmikov/imgui-react-runtime
1•tmikov•43m ago•1 comments

Show HN: AI Content Rewriter – one-line embeddable widget (open-source)

https://github.com/ankurclub/ai-content-rewriter
1•ruchiclub•47m ago•0 comments

Having Fun with Java Reflection and Modules

https://blog.ptidej.net/having-fun-with-java-reflection-and-modules/
1•yann-gael•51m ago•1 comments

When Enforcing Copyright Starts Breaking the Internet's Plumbing

https://quad9.net/news/blog/when-enforcing-copyright-starts-breaking-the-internets-plumbing/
2•HotGarbage•51m ago•0 comments

A software synthesizer modellled on Yevgeny Murzin's ANS synthesizer

https://github.com/frankenbeans/MZ2SYNTH
2•todsacerdoti•52m ago•0 comments

Feeling Great About the Economy? You Must Own Stocks

https://www.wsj.com/economy/consumers/economy-sentiment-stock-market-investors-2eb1e772
1•zerosizedweasle•52m ago•1 comments

Linux Privilege Escalation reference for all things

https://github.com/ThatTotallyRealMyth/LinuxPrivEsc
1•MeowMeowBinks•53m ago•1 comments

Chinese Takeout Menu [video]

https://www.youtube.com/watch?v=ofkdTv39hyw
3•jumpocelot•55m ago•1 comments

Yuzu Switch Emulator Is Over

https://wololo.net/2024/03/05/yuzu-is-over/
2•tyleo•57m ago•0 comments

Automating Benchmark Design

https://arxiv.org/abs/2510.25039
1•bbzjk7•1h ago•0 comments

Show HN: VibeFarm – Modular composition layer for language models

https://app.vibefarm.ai
1•vibefarm•1h ago•0 comments

Hollywood's Music Biopic Boom: Quantifying the Rise of a Soulless Genre

https://www.statsignificant.com/p/the-rise-of-the-soulless-music-biopic
2•gmays•1h ago•0 comments

Error ABI

https://matklad.github.io/2025/11/09/error-ABI.html
1•todsacerdoti•1h ago•0 comments

Who is 'fedora man'? Dapper French teenager in viral Louvre heist photo unmasked

https://www.theguardian.com/world/2025/nov/10/fedora-man-louvre-photo-pedro-elias-garzon-delvaux
2•wslh•1h ago•0 comments

Why your booze-free drink costs just as much as the alcoholic kind

https://www.cbc.ca/radio/costofliving/booze-free-costly-9.6969478
2•BiraIgnacio•1h ago•0 comments

There is no such thing as a tokenizer-free lunch

https://huggingface.co/blog/catherinearnett/in-defense-of-tokenizers
1•mcyc•1h ago•0 comments

AII vs. ASI: Philosophical and Systemic Implications for AI's Future

https://nooneweone.org/aii_vs_asi_the_complete_manifest.html
1•nettalk83•1h ago•1 comments

"Digital Signals Theory" by Brian McFee

https://brianmcfee.net/dstbook-site/
1•n3t•1h ago•0 comments

Apple's Unreleased OS for CHRP

https://www.youtube.com/watch?v=qbIoaulKYJY
3•geerlingguy•1h ago•1 comments