The AI Master Guide
In about 10 minutes a non-coder stands up a folder of plain-English markdown (a CLAUDE.md map plus numbered rooms) that their AI agent reads every session, and learns enough of the why to adapt it.
Quick start
Hand this guide to your own AI and let it walk you through.
I just found this guide online: "The AI Master Guide" (https://t8.dev/guides/the-ai-master-guide/). Can you walk me through it and help me make it useful for me? Start by asking me what I am working with and what I want out of it. Then take it one step at a time, skip anything that does not apply to me, and ask before anything that changes my computer or my accounts. The full guide is below.
- ChatGPT, Claude or any chat. The whole guide comes with it.
- Download + copy prompt An agent that reads files (Claude Code, Codex). Saves the-ai-master-guide.md to Downloads.
Download
contents
The step from chatting in a browser to an agent that works in your files. Give it a folder it reads every session and it picks up where you left off. Works with Claude, ChatGPT (Codex) or any agent that opens a folder. Plan on about 10 minutes, no coding.
Hand this guide to your agent: open t8.dev/guides/the-ai-master-guide/ and use the Quick start box, which copies the whole guide with a walk-me-through prompt. Or paste this text into your agent and ask: “I just found this guide. Can you walk me through it and help me make it useful for me?”
Quickstart: a working folder in 10 minutes
Choose your path. Your OS (Windows · macOS · Linux) and your surface (Terminal or Desktop app) decide which labelled lines are yours. Skip the rest.
- Install. An AI account plus its agent app: Claude → Claude Code · ChatGPT → Codex.
Claude Code needs a paid Claude plan (Pro, $20/mo) or API credits; Codex comes with ChatGPT plans, including limited free use. Commands below are Claude Code’s. For Codex’s commands, pick your plan on the web version: t8.dev/guides/the-ai-master-guide/. File names: Claude Code reads CLAUDE.md; Codex and most other agents read AGENTS.md. This page says CLAUDE.md; on Codex, use AGENTS.md instead.
Windows · Terminal: open PowerShell (Start menu, type PowerShell), then run:
irm https://claude.ai/install.ps1 | iex
macOS / Linux · Terminal: open Terminal (Mac: Spotlight, type Terminal), then run:
curl -fsSL https://claude.ai/install.sh | bash
Terminal check: the installer shows no progress, so wait for the prompt. Open a new terminal and run this; a version number means it worked:
claude --version
Desktop app (macOS, Windows; Linux is beta): install the Claude desktop app from the links on code.claude.com/docs/en/desktop, sign in, and look for the Code tab.
Your plan (Claude): Claude Code needs a paid Claude plan (Pro, Max, Team or Enterprise) or a Claude Console account billed by use. The free claude.ai plan does not include it. Pro is listed at $20 a month, or $17 a month billed yearly; check claude.com/product/claude-code before you pay, since prices change.
Your plan (ChatGPT): Codex comes with ChatGPT Free, Go, Plus, Pro, Business, Edu and Enterprise. Free and Go are for light use; Plus is listed at $20 a month. An OpenAI API key also works, billed at API rates. Check learn.chatgpt.com/docs/pricing first, since plans and limits change.
Your plan (something else): this method does not care which model you pay for. You need an agent that can open a folder and read plain markdown files. Find the instruction file name yours reads (many read AGENTS.md) and use it as your map file. Everything else is the same.
Windows · Terminal (Codex): open PowerShell (Start menu, type PowerShell), then run:
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
macOS / Linux · Terminal (Codex): open Terminal (Mac: Spotlight, type Terminal), then run:
curl -fsSL https://chatgpt.com/codex/install.sh | sh
Desktop app (Codex): install the ChatGPT desktop app from learn.chatgpt.com/docs/app (macOS, Windows, Linux) and sign in with your ChatGPT account.
-
Make a workspace. One folder on your Desktop, named for a real project. Everything below goes inside it.
-
Build it in a text editor, not a file manager. Any of these works: VS Code (free,
code.visualstudio.com, any OS; File → Open Folder) or Obsidian (free,obsidian.md; it renders markdown as a clean, structured page, which some people find easier to read; vault menu → Manage Vaults… → Open folder as vault). Pick your folder, then create this tree (three rooms, one job each: in → make → out):
Windows: turn on file extensions first, once. Windows can hide them, and then a file you name CLAUDE.md can quietly become CLAUDE.md.txt: it looks right and your agent never reads it.
Windows: turn on file extensions first, once. Windows can hide them, and then a file you name AGENTS.md can quietly become AGENTS.md.txt: it looks right and your agent never reads it. See the steps below.
How to show extensions: in File Explorer, open the View menu, then Show, then tick File name extensions (Windows 10: the View tab, then tick File name extensions). Now every name shows its ending, and you can see if one is wrong. Notepad (already on Windows 11, and it now shows markdown formatted) also works: in Save as, choose All files as the type, then check the name still ends in .md.
macOS / Linux: any plain text editor works. The Windows extension issue does not apply.
The top file is the map: the one instruction file your agent loads on its own. Claude Code calls it CLAUDE.md; Codex and most other agents call it AGENTS.md. Same job, different name.
The top file is the map: the one instruction file your agent loads on its own. Yours is AGENTS.md, which Codex and most other agents read from the folder you open them in.
my-work/
├── CLAUDE.md ← the map: who, where, routing (auto-loads)
├── 00-inbox/ ← anything new lands here first
│ ├── CONTEXT.md ← this room's contract
│ └── processed/ ← files you've used, kept
├── 01-build/ ← where you make things
│ ├── CONTEXT.md
│ └── BRIEF.md ← one line: STATUS: drafting
└── 02-done/ ← finished work
└── CONTEXT.md
my-work/
├── AGENTS.md ← the map: who, where, routing (auto-loads)
├── 00-inbox/ ← anything new lands here first
│ ├── CONTEXT.md ← this room's contract
│ └── processed/ ← files you've used, kept
├── 01-build/ ← where you make things
│ ├── CONTEXT.md
│ └── BRIEF.md ← one line: STATUS: drafting
└── 02-done/ ← finished work
└── CONTEXT.md
New to this: name the folder after something you already do, like taxes-2026 or wedding-planning. Keep the three rooms. 00-inbox is where the stuff now scattered across Downloads and email attachments goes.
At work: try q4-board-report/, and put only material you are allowed to share in 00-inbox. The agent can read everything in the folder, so leave customer and HR files out until you have checked your employer’s rules.
Running my own thing: one workspace per client, like client-acme/. 00-inbox holds their emails and briefs, 01-build your drafts, 02-done what you actually send. Never mix two clients in one folder.
I already code: if the project already has a CLAUDE.md, don’t make a second map. Add the routing table to it, and keep the rooms in a docs/ai/ folder, with specs and issue links in 00-inbox. Or keep the workspace beside the repo.
I already code: if the project already has an AGENTS.md, don’t make a second map. Add the routing table to it, and keep the rooms in a docs/ai/ folder, with specs and issue links in 00-inbox. Or keep the workspace beside the repo.
Seen CLAUDE.md in other people’s folders? That is Claude Code’s name for the same file. If you ever also use Claude, add a second file named CLAUDE.md that contains one line, @AGENTS.md. Claude Code follows that line, so both agents read the same map and you never copy it. Keeping the real text in AGENTS.md is the habit that keeps you free to switch models.
One folder for more than one AI? Put the map in AGENTS.md and make CLAUDE.md a single line: @AGENTS.md. Claude Code follows that line and Codex reads AGENTS.md directly, so you can switch plans without moving anything.
Fill in the map and 01-build/CONTEXT.md from the two blocks below. For 00-inbox and 02-done, copy the build contract and change its title, Identity, Inputs and Handoff to fit that room.
The map, filled in with your own details:
# My Work — Floor Plan
I'm <you>. This folder turns <raw stuff> into <finished thing>.
## Rooms
| When I… | Go to | Read first |
| -------------------- | ----------- | ---------- |
| Drop in new material | 00-inbox/ | CONTEXT.md |
| Make something | 01-build/ | CONTEXT.md |
| Find finished work | 02-done/ | CONTEXT.md |
## The one rule
Everything traces back to 00-inbox. Never invent; pull from there.
Used a file? Move it to 00-inbox/processed/. Never delete it.
Only read the room the task needs. Skip the rest.
01-build/CONTEXT.md, a room contract (every numbered folder gets one):
# 01 — Build · CONTEXT
> The workshop. Raw material from 00 becomes a finished piece, then moves to 02.
## Identity
Where things get made. One piece at a time.
## Inputs
A scoped idea or raw material from ../00-inbox/.
## Process
1. Pull what's relevant from 00. 2. Draft it; rough is fine. 3. Tighten until ready.
## Outputs / Handoff
Finished piece → move to ../02-done/. Used files → ../00-inbox/processed/.
New to this, the map filled in for taxes-2026:
I’m Sam. This folder turns my tax papers into a checklist I can hand my accountant. Never guess a number: if a paper is missing, add it to
01-build/questions.md.
At work, the map filled in for q4-board-report/:
I’m Priya, an ops manager. This folder turns last quarter’s numbers and meeting notes into a one-page board update. Only use what is in
00-inbox, and mark anything you could not source.
Running my own thing, the map filled in for client-acme/:
I’m Dana, a freelance bookkeeper. This folder turns Acme’s receipts and emails into a monthly report and a reply I can send. Work only from this folder; Acme is the only client here.
I already code, the map filled in for a repo’s docs/ai/:
I’m Lee. This folder turns bug reports and logs into a proposed fix and a test. Read, then propose; never edit the repo itself unless I say so.
- Launch. Open the agent in your folder:
Windows 11 · Terminal: right-click inside the folder → Open in Terminal if your menu has it (or open PowerShell and cd to the folder), run claude, sign in.
macOS · Terminal: type cd in Terminal, drag the folder in, press Enter, run claude, sign in.
Linux · Terminal: cd into the folder, run claude, sign in.
Desktop app: Code tab → choose the Local environment, then pick your folder with the project folder control.
Terminal (Codex): open a terminal in the folder (Windows 11: right-click inside it, then Open in Terminal; Mac: type cd , drag the folder in, press Enter; Linux: cd into it). Run codex and choose Sign in with ChatGPT.
Desktop app (Codex): open your folder as a project in the ChatGPT desktop app and start in Codex. The menus move often, so the current steps are on learn.chatgpt.com/docs/app.
Another agent: open it inside your folder (a terminal in the folder, or its Open folder command), then start a session.
Check it worked: type /context. It lists the CLAUDE.md and rules files that loaded.
Check it worked: ask “Summarize the current instructions.” It should describe your AGENTS.md.
Check it worked: ask “Which instruction files did you load?” It should name your map file.
- Give it one real task. Drop a real file into
00-inbox/, then ask:
Read 00-inbox/CONTEXT.md, then draft a one-page summary from the file in there.
Watch it route itself and work from your files.
New to this: drop in a bill or a long email you have been avoiding and ask:
Read 00-inbox/CONTEXT.md, then summarize the bill in 00-inbox and list any charge I should question.
At work: use notes from a meeting you attended, saved as standup-notes.txt. Ask:
Read 00-inbox/CONTEXT.md, then pull every action item from standup-notes.txt into 01-build/actions.md, one line each with an owner.
Running my own thing: save a client’s email thread as acme-thread.txt and ask:
Read 00-inbox/CONTEXT.md, then draft a reply in 01-build/reply.md using only what is in acme-thread.txt.
Read it before you send anything.
I already code: drop in an error.log and ask:
Read 00-inbox/CONTEXT.md, then find the first failing line in error.log and write a proposed fix to 01-build/fix-notes.md. Do not edit the repo.
Let the Agent Set Itself Up
Skip memorising setup commands. From inside your workspace, paste a how to prompt starter; the agent does the steps and you approve each:
Connect <tool> to this agent over MCP using the official server published by <tool>'s maker; tell me who publishes it and what access it will get. If the maker has no official server, stop and tell me; don't install a community one without labelling it as community and getting my yes. Then run the setup for my OS. If it needs a key or login, stop and tell me where to get it; never write a key into a file. Finish by listing the MCP servers you can reach and confirm this one shows as connected.
Read the map file at the root of this folder and every CONTEXT.md. Interview me, one question at a time, about my real work. Then rewrite them to fit it: keep the routing table, keep each file to one page, and show me the diff before you save.
Write it for your work. Fill in a few boxes and this writes the interview prompt for you, so the map and room contracts fit what you really do. Paste it into your agent from inside your workspace.
Read the map file ‹map› at the root of this folder and every CONTEXT.md.
My real work: ‹work›
Tools I use: ‹tools?›
Never read or touch: ‹avoid?›
‹pace›
Keep the routing table, keep each file to one page, and show me the diff before you save. Never write a key or password into a file.
Terminal check: the agent ends with claude mcp list. To look yourself, type /mcp in the session.
Desktop app check: the agent can run claude mcp list for you. To look yourself, ask “Which connectors are configured in this session?” or open Settings → Connectors.
Terminal check (Codex): the agent can run codex mcp list for you. To look yourself, type /mcp in the session.
Desktop app check (Codex): type /mcp in the message box to see connected servers. The ChatGPT desktop app, the Codex CLI and the IDE extension share one MCP setup.
Check (another agent): ask it “Which MCP servers are connected in this session?” and compare with its own settings screen.
- Name the tool and the finish line. “Connect
<tool>” plus “check it connected” beats “set up MCP.” - Read before you approve. You own what it runs. Only connect a tool’s official server, from a maker you trust: an MCP server is third-party code you are letting run, on any agent.
- Not sure it should be a door? Skill, Script, or Door? is one page; MCP: The Room Gets a Door is the full setup.
New to this: answer the interview in plain words, as if telling a friend what you do all week. “Show me the diff” means it lists what it will change before it saves, so you can say no.
At work: after the interview, add:
Add a rule to the map file: treat anything in 00-inbox marked confidential as off limits unless I name the file.
A rule is a request to the agent, not a lock, so it does not replace your employer’s policy.
Running my own thing: after the interview, add:
Add a rule to the map file: this folder is for client-acme only. Never pull material from any other client's folder.
I already code: once a tool is connected, ask:
List every MCP server you can reach and what each one can write to.
Then compare with claude mcp list in a terminal.
I already code: once a tool is connected, ask:
List every MCP server you can reach and what each one can write to.
Then compare with codex mcp list in a terminal.
I already code: once a tool is connected, ask:
List every MCP server you can reach and what each one can write to.
Then compare with your agent’s own settings.
What’s this talk about API keys? Will my credentials get taken? Signing in with your Claude or ChatGPT plan is an account login, not an API key. An API key lets a program use your AI developer account; whoever has it can run up charges. Nothing here needs one by default, but some tools ask. Common ways keys leak: pasting one into a file, chat or screenshot (the agent reads the files in your folder), or connecting an untrusted tool. Keep keys out of workspace files and prefer your OS credential store; environment variables keep a key out of files, but the agent’s shell can still read them. A full walkthrough, the AI Safety guide, is coming.
At work: a key or tool your employer did not issue may break their rules. Ask IT which AI plans are approved and whether company data may go in, since work and personal plans can treat your data differently. The AI Safety guide, coming soon, will cover this.
Running my own thing: a client’s files and logins are theirs. Check your contract before pasting their data into a folder the agent reads, and keep their keys out of 00-inbox. The AI Safety guide, coming soon, goes deeper.
The Room Contract
Each field answers one question
- Identity: what is this room for?
- Inputs: what arrives, and from where?
- Process: the numbered steps.
- Outputs / Handoff: what leaves, and to which room?
The 4-field shape is my own template, a fuller take on ICM’s stage contract.
Keep it honest
- One page, about 80 lines. Past that, the room is doing two jobs: split it.
- Write about the work, not the AI. “What happens in this room,” not “be helpful and concise.”
- Make handoffs explicit (
Promote → 02) so work visibly moves.
How It Works
The mechanism
- Only instruction files auto-load (your map file, plus rules and memory). Your
CONTEXT.mdfiles don’t. Every other file gets read because something points to it: map → room → next room. - Routing is “want X → go Y → read Z,” plus what to skip.
- State lives in files. A
STATUS:line in aBRIEF.mdtells any session where things stand.
Why less is more
- Less, but relevant, beats everything. A bigger context window is not even attention: model performance gets less reliable as input grows (Hong, Troynikov & Huber, Context Rot, Chroma, 2025).
- Design your own: 2-4 stages, a contract each, then the map. Run a real task; fix what it gets wrong.
Mistakes · Cheat Codes
Three ways it goes wrong
- Map too long. Keep it to a page or two (Claude’s guidance is under 200 lines; Codex stops loading instruction files at 32 KiB combined). Overflow goes in a room.
- No routing table, no skip list. The AI guesses, or reads everything.
- Too many rooms too soon. Start with 2–3.
Three cheat codes
- Plan mode (Claude Code).
Shift+Tabuntil the status bar shows plan mode (or start a prompt with/plan). It proposes before it edits. - Skip-permissions is for sandboxes only.
--dangerously-skip-permissionsneeds a container, VM, or sandbox runtime. - Maps cascade. Claude loads
CLAUDE.mdfrom every folder above yours, so keep home-folder rules short. To serve both Claude and Codex: real text inAGENTS.md, andCLAUDE.mdis one line,@AGENTS.md.
- Look before it edits. Most agents have a read-only or plan mode: find it in yours before you point it at real files.
- Skip-permissions is for sandboxes only. Any “run everything without asking” switch belongs inside an environment that is already locked down. Read its warning first.
- Maps cascade. Many agents read the map file from every folder above yours, so keep outer rules short.
- Look before it edits (Codex). To chat or plan without changes, switch to read-only with
/permissions./plantoggles plan mode. - Skip-permissions is for sandboxes only. Codex’s
--dangerously-bypass-approvals-and-sandbox(alias--yolo) belongs inside an environment that is already locked down. - Maps cascade. Codex reads
AGENTS.mdfrom your project root down to your folder, and the closer file wins, so keep the root short. If you also use Claude, add aCLAUDE.mdthat is one line,@AGENTS.md.
Go Deeper
I built a universal starter workspace this way, the ICM Starter Kit, coming soon to t8.dev. It puts the three ideas below into files.
Markdown you steer rather than compile is my soft DSL; write-up coming.
New to this: finish one real task in your own folder before you open the kit or the paper. They make more sense once you have watched the agent route itself.
At work: put your team’s shared rules once, in the kit’s root AGENTS.md, and let each room inherit them instead of repeating them. Agree the rules with the people whose data the rooms touch.
Running my own thing: copy the kit once per client, with your own working rules at the root. Each client then gets the same office layout and none of the other clients’ material.
I already code: the kit keeps real text in AGENTS.md and makes CLAUDE.md the one line @AGENTS.md, so Claude Code and Codex read the same file. The paper’s section 3.2 is the short read.
I already code: the kit keeps its real text in AGENTS.md, so Codex and most other agents read the same file. The paper’s section 3.2 is the short read.
Learn ICM from the source: Jake Van Clief & David McDermott (2026), Interpretable Context Methodology: Folder Structure as Agentic Architecture, arXiv:2603.16021. Go learn it at Clief Notes (skool.com/cliefnotes).
The Core Idea
ICM’s claim: “Stage sequencing is the folder numbering. Context scoping is the folder hierarchy. State management is the files on disk.” (Van Clief & McDermott, §3.2) So the work was never a cleverer prompt. It’s three things:
- Engineer the CONTEXT. Only what this task needs, nothing else.
- Give it STRUCTURE. Map, rooms, contracts, handoffs.
- Give your agent an OFFICE to work in. It walks in, finds the brief, does the job, and leaves the result where you expect it.
None of this belongs to one vendor: plain folders and markdown work with Claude, ChatGPT or whatever you use next. What you point the agent at is up to you.
For Your Agent
If you’re an AI agent walking someone through this guide:
- Check before step 1. Ask their OS, their AI plan, and which agent app they use (Claude Code, Codex, other; terminal or desktop). Confirm it runs and is signed in. Any tool they connect must be its maker’s official MCP server. Ask; don’t assume.
- One step at a time. Do or explain one step, show the result, and wait for them before the next.
- Official sources win. If a menu, command or file name doesn’t match what you see, check
code.claude.com/docsorlearn.chatgpt.com/docs, tell them what changed, and follow the docs. - Ask before anything they can’t undo: installs, deleting or moving files, publishing, spending money, account or security settings.
- Prove each step: a version number after install;
/context(or “Which instruction files did you load?”) names their map file; the first task’s answer comes from the file in00-inbox/; a connected tool shows in/mcp. - Make it stick: save the prompts they reuse as files in the room that uses them, and point to each one from the map. That is this guide’s method.
Download
Sources
- code.claude.com×8
- learn.microsoft.com
- support.apple.com
- claude.com×2
- antigravity.google
- obsidian.md×2
- www.bleepingcomputer.com
- code.visualstudio.com
- support.claude.com
- arxiv.org×2
- www.trychroma.com
- learn.chatgpt.com×8
- github.com
- agents.md
All 31 links
- https://code.claude.com/docs/en/quickstart
- https://learn.microsoft.com/en-us/powershell/scripting/windows-powershell/starting-windows-powershell?view=powershell-7.6
- https://support.apple.com/guide/terminal/open-or-quit-terminal-apd5265185d-f365-44cb-8b09-71a064a42125/mac
- https://claude.com/pricing
- https://antigravity.google/pricing
- https://obsidian.md/pricing
- https://www.bleepingcomputer.com/news/microsoft/hands-on-with-windows-11-notepads-new-markdown-support/
- https://code.visualstudio.com/download
- https://obsidian.md/help/Files+and+folders/Manage+vaults
- https://code.claude.com/docs/en/desktop
- https://code.claude.com/docs/en/memory
- https://code.claude.com/docs/en/permission-modes
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/security
- https://code.claude.com/docs/en/authentication
- https://support.claude.com/en/articles/9767949-api-key-best-practices-keep-your-keys-safe-and-secure
- https://arxiv.org/abs/2603.16021
- https://arxiv.org/pdf/2603.16021v2
- https://www.trychroma.com/research/context-rot
- https://code.claude.com/docs/en/setup
- https://claude.com/product/claude-code
- https://learn.chatgpt.com/docs/pricing
- https://github.com/openai/codex
- https://learn.chatgpt.com/docs/auth
- https://learn.chatgpt.com/docs/agent-configuration/agents-md
- https://learn.chatgpt.com/docs/app
- https://learn.chatgpt.com/docs
- https://learn.chatgpt.com/docs/extend/mcp?surface=cli
- https://learn.chatgpt.com/docs/agent-approvals-security.md
- https://learn.chatgpt.com/docs/developer-commands?surface=cli
- https://agents.md