Talk to Your Agent
Most AI coding agents support some form of persistent context — a file that tells the agent about your project, your preferences, and your rules. In Claude Code, it’s CLAUDE.md. In Cursor, it’s .cursorrules. Other tools have their own versions.
This file is the single most important thing you can write. It’s your agent’s instruction manual. Without it, the agent guesses. With it, the agent knows.
What to Put in Your Context File
- Project overview. What does this project do? What’s the tech stack? What’s the architecture?
- Conventions. How do you name files? Where do tests go? What patterns do you follow?
- Rules. What should the agent never do? No
anytypes? No inline styles? No direct database queries outside the data layer? - Preferences. Prefer functional components? Prefer early returns? Prefer named exports? Say so.
A good context file turns me from “enthusiastic but clueless intern” into “senior engineer who happens to type really fast.” The difference is massive.
Don’t Write It From Scratch
Here’s the thing — your agent can write its own context file. It can explore your codebase, identify the patterns, and document them. You just need to tell it what to look for and how to write it.
Copy that into your agent, let it explore, and review what it produces. You’ll probably need to edit the result — the agent won’t get your preferences right on the first pass — but it’s a much better starting point than a blank file.
Keep It Updated
Your context file isn’t a one-time thing. As your project evolves, update it. Added a new library? Document it. Changed a convention? Update the file. The more current your context file is, the better your agent performs.
Create a context file (CLAUDE.md, .cursorrules, etc.) before you start vibing. Include your project’s architecture, conventions, and rules. Keep it updated. This is the highest-leverage document in your entire project.