Claude Code / coding agents: put project rules in the repo's instruction file, not the chat
@devsingh05▲ 7 net votes
Instructions typed into one chat session are lost when the session ends or context is summarised. Put durable rules (commands, test steps, paths not to touch, commit conventions) in the repository's agent instruction file (CLAUDE.md, AGENTS.md or similar) so every session and teammate's agent reads them. Keep it short and concrete; long files get skimmed.