frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Prompt to make Claude more autonomous in web dev

4•louison11•10h ago
Tell your Claude to put this in MEMORY.md file for much more autonomous development sessions.

It's made my Claude work 2x easier in the last week. So many times it'd build something then I'd find a bug. Now it finds the bugs on its own and reiterates until it's sure everything works perfectly. It's so simple but it brings it to the next level in terms of autonomy.

Prompt:

"Add this to your MEMORY.md file (or adapt the following to match our project best):

## Critical Rules

### Always test before delivering

- NEVER tell the user something works without verifying it yourself first

- After every code change: rebuild, restart server, then test the actual page/API response

- After rebuilding Next.js: ALWAYS restart the server — stale JS chunks from old builds cause client-side errors

- Test through the public URL, not just localhost

- Check both server-side rendering (curl the HTML) AND client-side (verify JS chunks load)

- *USE PLAYWRIGHT FOR UI TESTING* — don't just curl pages. Use Playwright with headless Chrome to actually render pages, click buttons, fill forms, and take screenshots. This is the ONLY way to catch client-side JS errors, broken layouts, and UX issues.

- Screenshots go to `/tmp/playwright-screenshots/` — read them to visually verify the UI

- Do NOT ask the user to test. Find the bugs yourself before delivering."

Comments

honzabroski•5h ago
Just implemented Boris Cherny's (engineer behind Claude Code) CLAUDE.md workflow in my project. Game changer.

Key rules that made the biggest difference:

1. Plan Mode Default — enter plan mode for any task with 3+ steps. If something goes sideways, STOP and re-plan instead of pushing forward.

2. Self-Improvement Loop — after ANY correction, CC updates tasks/lessons.md with the pattern. It stops making the same mistake twice.

3. Verification Before Done — never mark complete without proving it works. "Would a staff engineer approve this?"

6. Autonomous Bug Fixing — when given a bug report, just fix it. Don't ask for hand-holding. Zero context switching from the user.

Before this, CC would ask permission for everything and repeat mistakes across sessions. Now it plans first, fixes autonomously, and learns from corrections.

The CLAUDE.md file persists across sessions — it's basically giving CC a working memory and engineering standards in one file.

Tell HN: iPhone 6s still getting security updates

4•uticus•3h ago•2 comments

Why I'm moving away from Regex for LLM Agent security

2•aunicall•4h ago•0 comments

Ask HN: Have you successfully treated forward head posture ("nerd neck")?

41•trashymctrash•16h ago•30 comments

Ask HN: What was it like for programmers when spreadsheets became ubiquitous?

7•yodaiken•8h ago•7 comments

I built a platform to help developers find collaborators for new projects

3•deiv2002•11h ago•0 comments

How not to fork an open source project

5•jsattler•12h ago•0 comments

Toolpack SDK, an Open Source TypeScript SDK for Building AI-Powered Applications

2•sajeerzeji•9h ago•1 comments

Prompt to make Claude more autonomous in web dev

4•louison11•10h ago•1 comments

Claude broke a ZIP password in a smart way

7•jgrahamc•10h ago•2 comments

Ask HN: How do you use Coding Agents/CLIs out of coding?

4•arbayi•15h ago•5 comments

I traced $2B in nonprofit grants for Meta and Age Verification lobbying

89•theseusares•1d ago•20 comments

Ask HN: Why can't we just make more RAM?

23•chatmasta•1d ago•21 comments

Tell HN: Apple development certificate server seems down?

109•strongpigeon•4d ago•39 comments

MiniMax M2.5 is trained by Claude Opus 4.6?

10•Orellius•1d ago•10 comments

Ask HN: Got cancer, a new job,new boss in less than a year What do I do now?

19•Goleniewski•1d ago•17 comments

Ask HN: Would this eliminate bots for good?

2•piratesAndSons•14h ago•11 comments

Ask HN: 100k/year individual token usage?

7•alecsmart1•23h ago•3 comments

Ask HN: What's your biggest pain point when joining a new developer team?

8•KevStatic•1d ago•15 comments

Ask HN: Why have co-ops never played a major role in tech?

13•AbstractH24•1d ago•7 comments

Generate tests from GitHub pull requests

7•Aamir21•1d ago•3 comments

X is selling existing users' handles

197•hac•3d ago•91 comments

Ask HN: Is there prior art for this rich text data model?

5•chrisecker•1d ago•2 comments

Ask HN: Is Claude down again?

86•coderbants•3d ago•73 comments

Ask HN: Has anyone built an AI agent that spends real money?

3•xodn348•1d ago•4 comments

AI, Human Cognition and Knowledge Collapse – Daren Acemoglu

3•aanet•1d ago•3 comments

Ask HN: Looking for a job after layoff and burnout. What should I focus on

6•jacAtSea•16h ago•10 comments

Looking for Partner to Build Agent Memory (Zig/Erlang)

6•kendallgclark•2d ago•8 comments

Enabling Media Router by default undermines Brave's privacy claims

5•noguff•2d ago•2 comments

Instagram Ending Encrypted DMs

6•01-_-•1d ago•1 comments

Claude 4.6 Opus can recite Linux's list.h

25•itzmetanjim•2d ago•4 comments