When you ask AI to do something, do you explain every time who you are, what you do, and how you want it to answer? Rewriting the same explanation whenever you start a new conversation or switch to another tool takes effort. And if the amount you explain changes from day to day, the way the AI answers changes from day to day too.
I keep these explanations of my premises in a single instruction file stored in a Git repository. When I start a conversation, I only tell the AI in one line to "read this instruction file and follow it," and the AI starts from the same premises every time. In this article, based on the instruction file I actually use, I go through how I call it up, what I write in it, and how it has grown.
The limits of explaining premises in conversation
On top of my job at my employer, I hold several other roles, such as running my own company. I also use several AI tools, and in each of them I switch between multiple accounts, for example one for each organization's work and one for personal use. When the organization, tool, or account changes, the AI starts out knowing nothing about my premises. The premises behind what I ask also differ by organization. Even the same request, "write a reply to this email," calls for different wording and different information I am allowed to include, depending on which organization the reply is for and who it goes to.
Explaining premises in conversation every time has several limits.
First, the amount you explain changes from day to day. On days with time to spare you write carefully, and on busy days you tend to skip things. If the explanation is written differently, the quality of the answer varies even for the same request. And every time you start a new conversation or move to another tool, you have to explain everything again from the beginning.
Second, there is freshness. Even if you keep a frequently used explanation on hand and paste it in, depending on when you saved it, the team or the policy may have changed, and you end up asking with outdated premises.
Third, if you keep adding premises to the settings of each tool and account, you lose track of what you wrote where. Keeping a premise you added in one account reflected in the other tools and accounts takes effort, and the settings slowly drift apart from each other.
All of these come from premises being scattered across conversations and the settings of each tool. The premises need to be gathered in one place, somewhere every account of every tool can read the same thing.
One instruction file read at the start of each conversation
So I created a single instruction file that gathers the premises and put it in a Git repository. I tell the AI to read this file at the start of each conversation. Since it is what the AI always reads at the entrance of a conversation, I call it the "entry instruction file" in this article.
In the Claude app, I write the following in the project instructions. The AI reads the local file through an MCP server called Desktop Commander.
At the start of work, use Desktop Commander to read ~/path/to/ai-agents/agents/executive-assistant.md and follow its instructions.
Refer to the role-specific instruction files under ~/path/to/ai-agents/agents/ as needed.
In Claude Code, writing the same thing in the repository's CLAUDE.md gets it read at startup.
# AI Agent instructions
This repository manages instruction files for AI agents.
Read agents/executive-assistant.md and follow it.
With this in place, whichever tool I use, the AI reads the same instruction file at the start of the conversation. What I write in the settings of each tool and account is only these few lines pointing to the entrance, not the content of the premises. As long as the location of the entrance does not change, I can paste the same few lines into every account of every tool, and they do not need rewriting even months later. When I want to fix a premise, I only fix the entry instruction file, and the change reaches every tool and account. When I try a new tool, writing these few lines carries the premises over as they are.
With a single entrance, you might worry that the premises for different organizations and roles get mixed up. The entry instruction file holds the premises common to every organization and role, plus rules for telling from the topic which role in which organization a request is about. Instructions on how to behave for each organization and role are split into specialized instruction files below it, and the AI reads only the ones that match the topic. There is one entrance, but the behavior is separated by organization and role. I come back to this mechanism in a later section.
This repository is private, and I use it only for my own work.
What the entry instruction file contains
The entry instruction file has about ten headings, but by role they fall into four groups: my position and what I hand to AI, the rules the AI follows when doing the work, what the AI must not do and how I like answers, and how to revise the instruction file.
My position and what I hand to AI
First, I write which organizations I belong to and in what position, and what I want to hand to AI. This is also where I set the division of roles: the AI handles organizing information, drafting, and preparing material for decisions, and I make the decisions themselves.
Then I write rules for telling from the topic which organization a request is about. There are two kinds of clues for each organization.
One is proper nouns, such as company names, product names, organization names, and the names of clients. If one of these names appears, the organization is almost settled.
The other is the role I play in that organization, along with the tasks and words that often come up in that role. At my employer, for example, I lead a department, so topics like infrastructure, quality assurance, and reports on team status come up often. At my own company I am the representative, so billing, contracts, and accounting are at the center. So that the AI can identify the organization and role from tasks and words even when a request contains no proper nouns, I write these combinations for each organization.
With these clues, even when I skip the premises in a request, the AI can identify the organization from the words that appear. When nothing matches and it cannot tell, the file tells it to ask me which organization the request is about. Being asked once costs less rework than getting a reply draft written for the wrong organization.
Rules the AI follows when doing the work
Next, I write what the AI uses in its work and what I want it to do every single time.
There are two kinds of things it uses. One is information to refer to: the specialized instruction files and task procedures for each organization and role, and where knowledge is stored. The other is tools for carrying out work, such as MCP connectors and the tools available. For both, the details live in other files or in each tool's settings, and the entry instruction file only says where they are and when to use them. I come back to how this guidance is written in a later section.
The first thing I want done every time is to record new information from the conversation on the spot. With every response, the AI checks whether the latest exchange contains any of these three kinds of information:
- Facts: team members, environment setup, client contacts and their requests, and so on
- Decisions: adopting a tool, changing a policy, and so on
- Lessons: what a troubleshooting session revealed, and so on
If something matches, the AI appends it directly to the relevant knowledge file and, at the end of its response, reports in one or two lines what it wrote to which file. I look at the report, and if something does not need to be kept, I just tell it to take it back. Things that had only been said in conversation stay in the repository, so the next conversation can use them as premises too.
Things outside these three kinds also get recorded by the AI. For article revisions, for example, the file with the procedure for writing articles says, "If the same correction comes up twice in a row, add it to the file with the writing style rules for articles." The AI adds rules on its own as it takes my corrections. The next time it writes an article, it reads that file before starting, so it does not get the same correction again.
The second thing is what to do at the end of the work. The AI writes a record of the work, adds an entry to the changelog, adds a line of improvement notes to the procedure file of any related task, and then commits and pushes, all on its own every time. Because the decisions made in conversation remain as records, the next conversation can start where the last one left off.
What the AI must not do and how I like answers
What I do not let the AI do is written as a list of prohibitions. For example, it does not make decisions that finalize financial figures, it does not post to internal chat automatically but stops at a draft, and it does not leave internal proper nouns in articles I publish. Prohibitions are rules I want followed in every conversation, whatever the topic. Specialized instruction files and knowledge are only read depending on the topic, so I put the prohibitions in the entry instruction file, which is always read at the start of a conversation. That way they are followed from the start of every conversation.
I also write how I like answers: answer concisely, give two or three options with their premises when a decision is needed, and say clearly when information is uncertain. Writing the next action at the top when an explanation runs long, and fixing the file directly instead of listing suggestions when I ask it to "polish this," are also written here. These are small preferences, but if they are not followed, I end up repeating them in every conversation. Written in the entry instruction file, they come back in this answering style from the start of every conversation.
How to revise the instruction file
Last are the principles for revising the instruction file itself. It is usually the AI that revises the instruction file too, so how to revise it is also written inside the file. I cover the details in the section on growing the instruction file below.
How the entrance routes to instruction files and knowledge
The entry instruction file is a single file, but not everything is written in it. Detailed procedures for each organization, rules for each task, and the knowledge I have built up are split into separate files, and the folders are also split by organization and role. The entry instruction file only says where things are and when to read them, and its job is to route the AI to each file according to the topic.
The specialized instruction files for each organization are listed in the entrance with a one-line description each, such as an instruction file for supporting quality assurance work or one for accounting and finance. After identifying the organization and topic with the context rules, the AI goes to read the specialized instruction file that fits the topic. That is why the project instructions in the Claude app also add "refer to the role-specific instruction files as needed."
For knowledge files, I add when to read them. For the writing style rules for articles, for example, it looks like this:
- knowledge/writing-style-guide.md: writing style rules for articles
- When to refer: when drafting or polishing an article, or when told to "polish this"
With "When to refer," the AI reads only the files it needs as the conversation goes. In one place, the entrance also tells the AI to read, before making proposals, a file that collects mistakes the AI made repeatedly in the past under the heading "common mistakes." Having it read the record of mistakes first is more reliable than pointing out the same mistake again and again.
Even with this split, the entry instruction file is now close to 400 lines. As the amount read every time grows, the essential premises get buried more easily among the other content. I try to keep only the premises needed every time in the entrance and move everything else into guidance.
I cover in detail how to write the guidance from the entry instruction file to each file, and how to keep the files it points to in shape, in Day 6 of this series. The English version comes out tomorrow; the Japanese original is here:
https://zenn.dev/genda_jp/articles/8b0774f25f12a6
Growing the instruction file
The entry instruction file did not have its current shape from the start. Going back through the Git history, the instruction file on the day I created it was only about 100 lines. It had my organizations and roles, the context rules, guidance to the specialized instruction files, prohibitions and answering style, the available tools, and how to record knowledge, and nothing more.
From there, I added things each time something got in my way. On the very day I created it, I made recording the work at the end mandatory. The next month, I had the AI check whether to record knowledge with every response. The month after that, I added the pattern of gathering frequent tasks into a folder per task and pointing to them, and later I added principles for revising the instruction file so that improvement continues whichever model reads it. You do not need to write everything from the start. Adding things as they become necessary is enough.
I also leave rewriting the instruction file to AI. When I point something out or state a policy in conversation, the AI rewrites the text and leaves a note on when and what was changed.
(Revised 2026-10-14: Instructed to "record knowledge freely." From now on, do not stop at proposing; append matching information directly and report it at the end of the answer.)
This note is from when I changed the knowledge recording rule above. Until then, I had the AI propose each time whether to append something. When I told it to "record knowledge freely," I changed the rule so that it appends directly and reports. With the note, the AI can read when and why the current rule came to be. Even if old and new instructions contradict each other, it can tell which one is newer. In the repository's changelog too, the AI leaves a short note on why each change was made.
The instruction file also contains principles for revising it: do not settle for words like "appropriately" in procedures, and write them concretely down to the actual commands and file locations; attach sources to rules; and keep revisions as notes. If any model can read the file and act the same way, I can keep using the entry instruction file as is when I switch models.
Conversations without re-explaining premises
Since I put the entry instruction file in place, the way I start conversations has changed. Instead of explaining premises, I can go straight to the actual request. When something bothers me in a conversation, I have the AI reflect it in the instruction file on the spot, so the next conversation starts in the fixed state.
This way of fixing the instruction file and knowledge every time AI makes a mistake, and growing an environment where the same mistake is less likely, is almost the same as the idea now called "harness engineering." I created this entry instruction file at the end of February 2026, around the same time the term harness engineering was born, a little before it came into wide use. I wrote in detail about harnesses for uses beyond coding in this article:
https://dev.to/aws-builders/harness-engineering-with-nothing-but-markdown-g6b
Gathering the entrance into a single file means fixing a premise also happens in one place, which cuts the maintenance effort considerably. When I want to try a new tool or model, writing a few lines that point to the entrance lets me start from the same premises, so I can move quickly. AI tools will likely keep changing, so gathering premises outside the tools should pay off in the long run as well.
This is Day 5 of "A Year with AI," a 25-day advent calendar I am writing on my own. See Day 0 for what the series covers. The original Japanese version is on Zenn.
Top comments (0)