The AI agent's folder (repo): the home it works in

Elias Iliopoulos2 min readΕλληνικά

A repo is a folder. The word is short for repository, and in practice it means a folder that holds other folders. An AI agent always works inside one: that is where it finds its information and where it leaves its work. The folder is the agent’s home.

The master repo and its subfolders

This is how I explain it. There is the master repo, the main folder you ‘pin’ your agent to: you open the agent inside that folder. Underneath it sit subfolders, one for each part of the business. Each of those can be called a repo too.

For a small company, a simple example looks something like this:

company/               ← the master repo
├── AGENTS.md          ← the agent's first instructions
├── sales/
├── accounting/
└── marketing/

It does not need to be perfect on day one. The folder grows with the work, the same way your team’s shared drive grew over the years.

The agent stays at home

The folder is where you pin the agent. It does not step outside unless you give it access. That is good news for safety: you know what it can see, because you chose it. More on what happens to your data in Is ChatGPT safe for company data?.

Take the accounting subfolder. Inside it are the instructions for the monthly expense report, the supplier list, who runs payroll and who gets what. When you open the agent there, it stops being a generic assistant. It becomes your team’s accountant, because the information in the folder is what makes it one. Put it in the marketing folder and it becomes your marketing person.

Now picture the opposite. A generic marketing agent can do nothing if it does not know which company it works for, what it sells and to whom. It does not know whether it is advertising alcohol or children’s clothes. The same engine, without a folder, is no use to anyone.

When we talk about an agent, we are always also talking about the folder it lives in.

Why the repo comes first

With a chat, the work lives in conversations. With an agent, the work lives in the folder, and every time you open it everything is there. That is the big difference from the lesson Chat or AI agent.

So before you hunt for the best model or the smartest tool, build a clean home. A few folders with sensible names, no old files lying around to confuse it, and one file at the top that tells the agent where to find what. A clean folder makes the agent more accurate and, as we will see, cheaper, because it reads less to find what it needs. You will find repo and markdown in the AI agent glossary too.

That file at the top of the folder is the next lesson: AGENTS.md and CLAUDE.md.

Next lessonAGENTS.md and CLAUDE.md: your AI agent's first instructions