frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

4•meloncafe•1d 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•1d 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.

yehosef•18h ago
You'll see a lot of advanced users advising against compact. The truth is that you have the entire transcripts in your ~/.claude/transcripts (I give claude permission to look there) so when there is some important discussion I don't want to lose, I use claude extract the notes from the transcript. If it's a long transaction it can be big so it might miss things on the first go around - but if you ask it specifically about the topic you're interested in it'll usually find it.

Ask HN: What Are You Working On? (Nov 2025)

367•david927•1d ago•1109 comments

Is there open source alternative for VAPI or retellai?

6•p_srivastav•1h ago•5 comments

Ask HN: How to grow and become more employable when working with outdated tech?

3•mattfrommars•4h ago•4 comments

Ask HN: How would you set up a child’s first Linux computer?

214•evolve2k•1d ago•287 comments

Ask HN: How do you get over the fear of sharing code?

68•sodokuwizard•1d ago•89 comments

Supply Chain Alert: Sipeed's Official COMTools Software Flagged as Trojan

5•dripmet•9h ago•1 comments

Ask HN: Why has typing on a phone not improved in ~20 years?

7•mvkel•13h ago•9 comments

When the Firefighter Looks Like the Arsonist: AI Safety Needs IRL Accountability

4•fawkesg•13h ago•0 comments

Ask HN: Where did the tech people on Twitter go?

8•stevage•7h ago•13 comments

Ask HN: My family business runs on a 1993-era text-based-UI (TUI). Anybody else?

314•urnicus•5d ago•307 comments

Tell HN: X is opening any tweet link in a webview whether you press it or not

646•stillatit•1w ago•516 comments

Ask HN: Who is hiring? (November 2025)

398•whoishiring•1w ago•556 comments

Ask HN: Why do designers have repugnant websites?

15•admissionsguy•1d ago•10 comments

Ask HN: Do you let your kids use ChatGPT?

7•eibrahim•1d ago•9 comments

Valori – A Python-native Vector Database I built from scratch

8•varshith17•1d ago•9 comments

Ask HN: How do you deal with eye strain as a developer?

4•deterministic•1d ago•8 comments

Ask HN: Who wants to be hired? (November 2025)

197•whoishiring•1w ago•458 comments

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

4•meloncafe•1d ago•2 comments

Tell HN: Mechanical Turk is twenty years old today

94•csmoak•1w ago•62 comments

YouTube A/B testing removing playback speed controls

7•dotancohen•1d ago•8 comments

Ask HN: Why doesn't USPS act as a payment processor?

11•piratesAndSons•1d ago•8 comments

Ask HN: Where to begin with "modern" Emacs?

225•weakfish•1w ago•121 comments

Ask HN: What's a Purchase You Regret?

11•znpy•2d ago•37 comments

Ask HN: Windows/Linux software that has no real equivalent on macOS?

9•fastily•2d ago•21 comments

Ask HN: Any actual AI projects in production at bigcorp?

4•meetingthrower•1d ago•4 comments

LLMs let me maintain my PostgreSQL extension for PRQL after becoming a parent

5•kaspermarstal•1d ago•0 comments

Ask HN: What is the most important thing in life?

14•awesomehry•3d ago•30 comments

You've reached the end!