frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: How to be SOC2 Type 2 compliant as a solo-entreprenuer?

158•sochix•2d ago•130 comments

SlothDB is an OLAP DB ahead of DuckDB on Clickbench SQL database in C++20

3•souravroy78•8h ago•0 comments

Tell HN: Mindie.dev is scraping emails from profiles to send spam

19•stackghost•17h ago•2 comments

Ask HN: What LLM models are you using and why?

8•rubyn00bie•14h ago•9 comments

Ask HN: We just had an actual UUID v4 collision...

475•mittermayr•1w ago•342 comments

Tell HN: Dont use Claude Design, lost access to my projects after unsubscribing

295•pycassa•3d ago•85 comments

Rumors of my death are slightly exaggerated

1673•CliffStoll•1w ago•258 comments

Ask HN: What are you working on? (May 2026)

288•david927•1w ago•1100 comments

Note-taking software,Novel ideas

5•huaqing•1d ago•6 comments

Viable open source Claude Design alternative?

23•splatzone•2d ago•6 comments

Ask HN: Do you still spend time maintaining Claude.md / AGENTS.md files?

8•david_d8912•1d ago•10 comments

Which country will be the first to pass laws limiting Meta Ray-Ban glasses?

28•nothrowaways•3d ago•8 comments

Ask HN: Can I take Meta to court for banning business Insta or FB account?

12•milanspeaks•2d ago•7 comments

Ask HN: What happened to the movie "Pirates of the Silicon Valley"

11•acossta•2d ago•4 comments

Ask HN: What are you working on (non-AI)?

43•BrunoBernardino•4d ago•51 comments

Ask HN: What happened to ssh-audit.com?

4•Bender•1d ago•1 comments

You've reached the end!

Open in hackernews

Ask HN: Do you still spend time maintaining Claude.md / AGENTS.md files?

8•david_d8912•1d ago
For people using coding agents regularly: do you still invest time in user-level and repo-level instruction files like CLAUDE.md, AGENTS.md, etc.?

It's not a surprise that you don't expect the rules there to be followed even with less than 100 lines of changes. Yet still see folks like Karpathy post rules around with hundreds of stars.

Tell me if you're still spending the effort of trying claude.md, and are they effective, what're you writing in it.

Update: I'm more of talking about behavior rules here (coding standard, comment style, Do this and Don't do that, etc.). For facts like project directories, important doc ref, commands, sure that always helps.

Comments

bisonbear•1d ago
AGENTS.md is extremely important - it's probably the highest leverage thing you can give your agent. It's injected into every turn, and the agents are trained to follow instructions. If anything, I think people are under-investing into AGENTS.md and going purely based on vibes.

For example, if I write a bad AGENTS.md for a repo with 100 engineers actively working in it, then every agent for every engineer gets worse, without anyone really noticing.

I think we should move towards data-based tuning of AGENTS.md, testing out changes, gathering data, and then making a decision on whether or not to ship it.

david_d8912•1d ago
The project directory, sure. I'm more of talking about behavior rules here. What are you guys writing, is it effective
bisonbear•1d ago
My advice, from doing this myself and reading best practices, would be:

- Keep it concise, use progressive disclosure / nested AGENTS.md for information expansion - Give agent the high level repo structure if necessary - Have a "why" section to align the agent, high level, what your code is doing - Keep behavior instructions positive where possible, eg Always clarify intent before acting

david_d8912•1d ago
cool. I agree with all the front points. The last part ```Keep behavior instructions positive where possible```, do you have good experience on it. I'm only asking since my own experience is they're constantly not followed.
bisonbear•1d ago
Yeah, I've found that to be more effective. Going with the example "Always clarify intent before acting" > "Never act without getting intent first", seemingly because telling the agent NOT to do something sometimes primes it to do that exact thing
verdverm•1d ago
I wrote one yesterday, but what goes in them has changed. Now I only put what amounts to a table of contents and some highlights of important things. Other info goes in other markdown, either localized agents.md or a directory of references. Skills are useful too

Anthropic has a new post series on enterprise adoption, their first one is on the setup and AGENTS.md gets a good chunk of that

I now have agents write more of that stuff but deeply review it. As peer commenter points out, a bad instruction can do damage. Keep them lean and clean, adjust them as new models arrive.

rurban•1d ago
Of course. Claude.md is symlinked, and I change it for every new major task. Keeps cost down
alwillis•13h ago
What helps me a lot: if Claude makes a mistake or an incorrect assumption, press # to tell Claude to remember the correct behavior next time.

Put your coding guidelines in the ./claude/rules for additional progressive disclosure, not CLAUDE.md or AGENTS.md.

luodaint•3h ago
The difference that affected my approach: CLAUDE.md includes three types of content, which function differently.

Facts (directory organization, commands, references in docs), always work. There’s no discussion here.

Constraints related to regression prevention (specifying certain restrictions based on a particular failure) – work consistently if each individual item doesn’t exceed one sentence and describes a failure I’ve already observed. Example: “Validate JWT at the route level, not the component.” It works since the agent was caught doing it incorrectly. “Always call workspace provisioning when creating a user” – ditto.

Behavior rules (rules regarding comments, naming, dos and don'ts) – this is where the OP fits in. My observation: such rules work if they are concise, specific, and based on an already existing failure pattern. They don’t work if created in anticipation of some failure that didn’t happen yet. Rules made from scratch are usually not followed. The 50 line limitation is justified for this category.

zambelli•25m ago
I personally don't. I do maintain a repo/obsidian vault of useful skills. They're patterns I've "debugged" (ie, how to setup a systemd unattended batch job specifically on this linux box).

When I start a project, I'll point the agent to a few big behavior concepts on my own standards and preferences, we iterate on the project specific stuff, and once the shape is locked in I point it to the repo to look for relevant patterns.

Once that is covered, it's off to the races. That being said, I don't consider myself an agentic coding power-user.