Use CLAUDE.md to Persist Project Conventions Across Claude AI Sessions

A Reddit user reports that adding a CLAUDE.md file to the project root is the single highest-leverage change they've made with Claude Code. Claude reads this file at the start of every session, so you never need to re-explain conventions like TypeScript usage, Tailwind vs. CSS modules, test folder structure, or data model relationships.
Key Details
- Placement: Create a file named
CLAUDE.md in the root of your project directory. - What to include: Coding conventions (e.g., "We use TypeScript, always. No default exports. Tailwind, not CSS modules. Tests go in tests folders."), plus project architecture context — how modules connect, data models, and which files are critical vs. scaffolding.
- Behavior: The file is read automatically at the start of every Claude session. No manual invocation needed. Conventions are applied without being asked.
- Result: The user noticed "Claude's edits got noticeably better once it had that context baked in from the start of the session."
Practical Example
# CLAUDE.mdConventions
- Language: TypeScript
- Exports: named exports only (no default exports)
- Styling: Tailwind CSS (no CSS modules)
- Testing: tests go in dedicated tests/ folders
Architecture
- Frontend: React with React Router
- API layer: Express routes in /api
- Data models: Prisma schema in /prisma
- Critical files: /src/app.ts, /src/config.ts
After adding this file, the user reports never having to retype those rules per session.
Who It's For
Developers using Claude Code or any Claude-powered coding agent who want consistent behavior across chat sessions without repeating instructions.
📖 Read the full source: r/ClaudeAI
👀 See Also

Claude CLI v2.1.154 Breaks Local vLLM — One-Line Patch Fixes It
Claude CLI ≥2.1.154 adds three new API roles (ctx, msg, system) that break local vLLM compatibility. A one-line patch to vLLM's Anthropic protocol restores it.

Claude's Research Output Varies by Language: Same Prompt, Different Sources
A Reddit test shows Claude returning different sources and developments across English, Chinese, Russian, Spanish, and Hindi prompts — same model, same structure, diverging results.

Annotation-Driven UI: How to Design Templates in Figma and Let Claude Extract Coordinates
Skip building a custom layout engine: design flat PNGs in Figma, draw colored rectangles for slots, feed both to Claude, and get editable area definitions with tap targets. One afternoon instead of weeks.

4 Files That Made Claude Code Write Safe Prod-Database Code
A developer shares four files—CLAUDE.md, MEMORY.md, framework.md, decisions/log.md—plus a Python bridge with idempotency keys and write guards that let Claude Code safely write to a Convex prod database.