Agree on it once.Start well again.
Which files are authoritative? How should the work be checked? What still needs permission to publish? A small instruction file gives new AI sessions a clear place to start.
The guide, step by step
7 sectionsAn instruction file defines how to work
JRV.01AGENTS.md and CLAUDE.md are text files containing project instructions for an AI. Use them for agreements that stay relevant: where the source lives, which checks matter and what boundaries apply to the work.
Write down decisions the AI would otherwise have to guess. “Do good work” says little. “Check the contact form on a narrow screen before finishing the change” explains what good work means here. Include only instructions that fit this project.
Choose the file your app actually reads
JRV.02Codex uses AGENTS.md for project instructions. Claude Code uses CLAUDE.md and current versions can also read AGENTS.md, depending on version and project instruction settings. Check which files your own app actually loads.
If you work with both apps, keep common agreements in one place. Do not blindly add a new instruction file to an established project: existing files may already determine what gets loaded. Read those first and add only what is missing.
Write instructions that change a decision
JRV.03This example is deliberately small. It tells the AI where to begin, how to distinguish an idea from a completed result and when publication requires an instruction from the owner. Adapt the file names and checks to your project.
Keep credentials, private customer information and access keys out of instruction files. These files may enter version control or be shared with more people than an ordinary conversation.
# Project agreements Read context.md and handoff.md first. Check that referenced files exist. Preserve other people’s changes. State what you checked and what remains uncertain. Publish only when the owner asks you to.
Stable rules and today’s state
JRV.04An instruction file is not a diary. Your working method changes less often than task status. Store the current project state separately: the selected direction, latest check and next action.
This keeps the instructions readable. A rule can refer to context.md while that document changes as work progresses. A reference alone is not proof that the AI read the file. For important work, ask it which source it is using.
Check that the instructions arrive
JRV.05Download the example and review every instruction before using it. Replace references that do not exist in your project. Then try a small task: ask the AI to explain the applicable agreements and which file it would open for the current state.
If it gets this wrong, inspect the loaded files, working directory and any more specific instructions. Another copy of the same rules may not help. First resolve why the correct instructions were not used.
Resolve instructions that disagree
JRV.06A project can contain both “work independently” and “ask before every change”. Do not leave that contradiction for the next session to interpret. Specify which actions need your decision and which work the AI may perform independently.
Remove an old agreement only when you know it has been replaced. Put its replacement where your apps actually read it. One clearly chosen rule is easier to maintain than adding the same exception to several files.
Carry current context into the next session
JRV.07Instructions help an AI follow your working method. Shared memory helps make selected project information available again. They can work together: for example, an instruction can ask the AI to read the current handoff before continuing.
Keep that handoff in a file or in Jarvis, depending on your workflow. Jarvis does not replace your app’s instruction settings. See the project handoff guide for an example of the information worth carrying between sessions.
An instruction file that fits your project
JRV.08Four working agreements, a separate handoff and a short reading check. With examples for AGENTS.md and CLAUDE.md.
Start with four useful agreements
For a fictional website trial, an AGENTS.md could contain:
# How to work on this website ## Begin with the source Read docs/context.md and docs/handoff.md if they exist. Report a missing file. Do not invent missing facts. ## Work alongside others Inspect existing changes before starting. Preserve other people's work and change only the agreed parts. ## Check the result Use the checks documented by this project. Check a changed form with keyboard input as well. State what you actually tested, the outcome and remaining uncertainty. ## Publication A local change is not yet live. Publish only within an explicit request from the owner.
These directory names were chosen for the example. Create the referenced documents with your own content or use the correct existing paths. A reference to a missing file does not help the next session.
Keep today's state separate
Use docs/context.md for the goal and current decisions. Use docs/handoff.md for the state of the work. For example:
# Current state The field selection has been discussed. The form is not built yet. # Decision Visitors can request a callback. # Unknown Which service will receive the request. # Next step Read the project source and build a local form concept.
This is fictional project state, not text to insert blindly into your repository. The distinction matters: once the form works, update the handoff. The rules about checking and publishing remain relevant.
Using Claude Code and Codex together?
Keep shared rules in one file. If your Claude Code environment uses CLAUDE.md and you want it to include AGENTS.md, Anthropic documents this import form:
@AGENTS.md # Specific to this environment Add only the extra agreements this environment needs.
Read the existing CLAUDE.md first. Add an appropriate import without overwriting other instructions. In a new session, check which files were loaded. An instruction file provides context; it is not a technical access-control or security mechanism.
A small trial is more useful than a long rulebook
Ask a new session to make no changes yet and answer:
- Which source contains the current project goal?
- Which part has not been built?
- Which check is required after changing a form?
- May the session publish the change now, and what supports that conclusion?
Compare the answers with the files and your own request. If an answer is wrong, investigate the difference. Are instructions conflicting? Is the wrong directory open? Could the session reach the named file? Fix that cause before adding more instructions.
Sources and further reading
Check your AI app’s current requirements before connecting an account.
Content reviewed: 2026-11-24
MAKE IT YOUR OWN
Download instruction examples
A readable file you can adapt to your own work. No account needed to download it.
Download instruction examplesFREE STARTER PACK
Your next session starts here.
Five skills for project briefs, handoffs, decisions, writing style and output checks. Includes templates, examples and a trial project in Dutch and English. Read the instructions and adapt them to your project.
Download the starter pack ↗ZIP · NL + EN · No account needed. These files do not create an AI connection.
A few useful answers
FAQCan Claude Code read AGENTS.md?
Yes, current versions can, depending on settings and other instruction files. Check the official documentation and what your own session has loaded.
Should I use both files?
Not automatically. Start with the files your apps already read. Keep shared agreements in one place so two copies do not drift apart.
How is this different from a skill?
An instruction file holds continuing project agreements. A skill describes a repeatable task and is used when that task is needed.
THE NEXT CHAPTER