Skip to content
be-human.ai
← Back to the journal

Harness fundamentals

AI Agent Workspace File Structure: A Simple, Reviewable Layout

A simple folder layout for AI agents: where to keep instructions, notes, working files and outputs so the work stays findable and easy to review.

Be Human typographic cover with the title: AI Agent Workspace File Structure: A Simple, Reviewable Layout
Conceptual illustration created with AI · Be Human

A good AI agent workspace file structure has a few folders, each with one job: instructions the agent reads, inputs it receives, notes it keeps, drafts it works on, outputs it delivers, and a record of each run. Keep what only people may change apart from what the agent may change, and name files so a reviewer can tell what each one is and whether it is final. The goal is not tidiness. It is that someone can open the workspace tomorrow and understand what happened without asking the agent.

Key takeaways

  • Give each folder one job: instructions, inbox, notes, work, outputs and runs cover most business roles.
  • Separate drafts from finished outputs, and never let a draft sit where a reviewer expects a final.
  • Keep notes short, dated and sourced, one subject per note, with an index the agent opens first.
  • Set permissions per folder: the agent reads instructions, appends to logs and cannot overwrite finals.
  • Test the layout by asking a reviewer who did not watch the task to find the result, the sources and the open questions.

Why does an agent's workspace need a structure?

An agent that works across many steps, or across several days, produces material: files it received, facts it learned, drafts, partial results and finished work. If all of that lands in one place, three problems follow. Reviewers cannot find the result. The agent loads the wrong material, or too much of it. And an old draft gets mistaken for the approved version.

There is also a technical reason. An agent can only hold so much in view at once, so it works better when it can look things up on demand instead of carrying everything. A clear layout with predictable names lets it open the one file it needs. Anthropic's writing on [context engineering](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents) describes this idea of loading information as needed rather than all at once, and structured note-taking outside the immediate context as a way to keep long work coherent.

Structure also serves the people around the agent. A manager, an auditor or a colleague taking over a task should be able to follow the trail from request to result. When a run stops halfway, the workspace is what allows it to continue, which is the subject of AI agent checkpoints and how to resume unfinished work.

What is the simplest structure that works?

Start with six areas. Each has a single purpose, and none requires special software. A shared drive, a document repository or a plain file store can all hold them.

  • Instructions: the role description, rules, approval boundaries and definition of done. People edit this area. The agent only reads it.
  • Inbox: material that arrives from outside, such as emails, forms, exports and attachments. Files are stored as received and never edited.
  • Notes: durable memory the agent writes and reads. Short, dated, one subject per note, with an index.
  • Work: drafts, scratch files and intermediate results for the task in progress. Safe to clear when the task closes.
  • Outputs: finished deliverables, one folder per task, each ready for a person to review.
  • Runs: a short record of each run, covering what was asked, what was done, which tools were called and what remains unfinished.

Resist adding more at the start. Extra folders create judgment calls about where a file belongs, and the agent will make those calls inconsistently. Add an area only when a real problem appears, for example a separate reference area once the agent depends on a stable set of policy documents that people maintain.

If you run more than one agent, give each its own workspace with the same layout. Sharing one pile of files between agents blurs who wrote what. When you do need them to share, share through a defined handoff area, not through each other's work folders.

How should an agent keep notes?

Notes are the agent's memory in file form, and bad notes are worse than none. A note that is vague, undated or unsourced will be trusted later by an agent that has no way to question it. A few rules keep notes useful.

  • One subject per note, with a plain title that says what it covers.
  • Every note records its date, its source and who or what wrote it.
  • Facts and decisions are written apart from guesses, and guesses are labelled as guesses.
  • Notes that would change how the agent treats customers, staff or money are confirmed by a person before they count.
  • An index note lists every note with one line each, so the agent opens the index first instead of reading everything.

Date and source matter most. When two notes disagree, you need something to decide which one wins, and a newer note from a stronger source usually beats an older one from a weaker source. The rules for that choice are covered in when AI agent memories conflict. If the notes carry no date or source, no rule can be applied.

Also decide what does not belong in notes. Passwords, access tokens and personal data that the task does not need should stay out. A note is a long-lived file that many people and processes may read, so treat it that way.

How do you name files and separate drafts from outputs?

A reviewer should be able to read a file name and know what it is. A simple pattern works well: the date in year-month-day order, then the subject, then the kind of document, then a status word such as draft or final. Sorting by name then groups the work by day, and the status is visible without opening anything.

Three habits protect the reviewer.

  • Drafts live in the work area. Only finished items go to outputs. If a file is in outputs, a person can assume it is meant to be read.
  • A final is never overwritten. If something changes, the agent saves a new version and leaves the old one in place, so a reviewer can see what changed.
  • Every output folder carries a short cover note.

The cover note is the most valuable file in the workspace. It states the original request, the sources used, the checks performed, anything the agent could not verify and any decision it left for a person. It is where evidence lives, and it connects directly to a definition of done that demands evidence. A reviewer who reads the cover note first can usually decide in a minute whether the deliverable needs a closer look.

Which permissions belong on which folder?

The layout is also a permission map. Each area has a different level of trust, so each should have a different level of access.

  • Instructions: the agent reads. Only named people write.
  • Inbox: the agent reads. New files arrive through the intake channel. No edits and no deletions by the agent.
  • Notes: the agent reads and adds. Edits or removal of older notes go through a person or a reviewed process.
  • Work: full access for the agent, since nothing here is final.
  • Outputs: the agent creates new files but cannot overwrite a final. Sending anything outside the company requires approval.
  • Runs: append only, so the record cannot be quietly rewritten.

The split between instructions and inbox deserves particular attention. Anything in the inbox came from outside the company, and an email or attachment can contain text written to look like an instruction. Keeping real instructions in a separate read-only area, and treating inbox content strictly as data to be read and not as commands, reduces that risk. It does not remove it. The [OWASP prompt injection prevention guidance](https://cheatsheetseries.owasp.org/cheatsheets/LLM_Prompt_Injection_Prevention_Cheat_Sheet.html) lists further defenses worth layering on top. For a wider view of which controls to put in place first, see AI agent guardrails for business.

How do you set this up, step by step?

You can build and test the layout on one role before extending it.

  • Step one: choose one agent role and one type of task. Do not design for every future use.
  • Step two: create the six areas and write one sentence at the top of each saying what belongs there and what does not.
  • Step three: move the existing role description, rules and approval boundaries into the instructions area, and add a short passage telling the agent how the workspace is laid out.
  • Step four: write the index note and a template for the run record and the output cover note.
  • Step five: apply the permissions from the previous section and check them by trying to do something the agent should not be able to do.
  • Step six: run a real task. Then ask a reviewer who did not watch it to find the result, the sources and the open questions using only the workspace.
  • Step seven: fix whatever they could not find, by renaming, moving or adding to the cover note template, and repeat with the next task.

An illustrative scenario: an agent prepares weekly follow-ups for a procurement team. The inbox holds supplier replies exactly as received. The notes area has one note per supplier with agreed delivery terms, each dated and sourced. The work area holds draft messages. For each week the outputs area has a folder with the approved messages and a cover note listing which replies were read and which suppliers did not answer. In the middle of one run, a tool fails, and the run record shows where it stopped. The next run starts from that record. Later a manager asks why one supplier was chased. She opens the cover note, then the supplier note, then the original reply in the inbox, and has her answer without asking anyone.

How does a managed setup handle the workspace?

Be Human treats the workspace as part of the first engagement, alongside the role, the memory and tools it needs, the approval boundaries and an observable success criterion. The folder layout, naming rules, note format and per-folder permissions are agreed and written down at the start. During managed operations, the team reviews permissions, checks notes for stale or conflicting entries, and makes changes to the layout in a controlled way, so the structure stays current as the role changes. The client keeps control of the instructions and approves anything that changes what the agent is allowed to do.

Frequently asked questions

Should every agent get its own workspace? Yes, in most cases. A separate workspace with the same layout makes it clear who wrote what and lets you set permissions per role. If agents need to pass work to each other, use a defined handoff area instead of opening one agent's work folder to another.

Should the workspace be a shared drive, a code repository or a database? Use what your team can already review and control. The workspace needs folders, version history and permissions, and a shared drive or document repository usually provides all three. Structured records, such as a list of orders, are better kept in a database that the agent reaches through a controlled tool, not as loose files.

How often should notes be cleaned up? Review them on a regular schedule agreed with whoever owns the role, and more often early on. Archive notes that are outdated instead of deleting them, so you can trace an earlier decision if someone questions it. The review should look for stale facts, duplicates and notes that contradict each other.

Does the workspace replace the agent's instructions? No. The instructions live inside the workspace and tell the agent what to do. They should include a brief explanation of the layout, so the agent knows where to read, where to write and what it may not touch. Keeping that explanation short makes it easier to maintain.

Be Human editorial guidance. Examples are illustrative unless explicitly attributed. Sources provide background; implementation choices depend on your workflow.

Less busywork. More room for you.

Bring us the work you wish you had time for.

Try a personalized AI agent free for 7 days on WhatsApp ↗