logoalt Hacker News

anderscoyesterday at 8:34 PM3 repliesview on HN

I have found enabling the codebase itself to be the “Claude.md” to be most effective. In other words, set up effective automated checks for linting, type checking, unit tests etc and tell Claude to always run these before completing a task. If the agent keeps doing something you don’t like, then a linting update or an additional test often is more effective than trying to tinker with the Claude.md file. Also, ensure docs on the codebase are up to date and tell Claude to read relevant parts when working on a task and of course update the docs for each new task. YMMV but this has worked for me.


Replies

Aeolunyesterday at 10:28 PM

> Also, ensure docs on the codebase are up to date and tell Claude to read relevant parts when working on a task

Yeah, if you do this every time it works fine. If you add what you tell it every time to CLAUDE.md, it also works fine, but you don’t have to tell it any more ;)

Havoctoday at 12:36 AM

> Claude.md

It’s case sensitive btw. CLAUDE.md - Might explain your mixed results with it

szundiyesterday at 8:37 PM

[dead]