Skip to content
Agentic Levels

Everything starts here.

GuestLocal progress only
PreferencesSign in
01Start with one taskBest first move for beginners.02Check your LevelMeasure where you are.03Score an AI resultFind the habit to practice first.04Return to Your WorkScores, links, and checkpoints.
Start here

Begin

HomeThe main entry point.New to AIStart with one useful task.
Know where you are

Measure

Check your LevelUse this after you have tried AI.Fluency ScoreScore an AI result you can review.
Build the habit

Learn

LevelsLessonsTracks
Find the reference

Library

PromptsReferenceResourcesCompare Tools
Turn it into work

Apply

Your Next MoveChoose what AI should change next.Tool SetupGet the tools ready.
Come back later

Return

Your WorkScores, links, and checkpoints.My PathContinue from your level.Updates
Site

Site

PricingAboutFAQ & FeedbackPreferences

© 2026 Fuentes Studio

Privacy·Terms
yourCouncil
Ready to help
✦

What do you want to understand?

Ask anything about what you're learning.

Tracks›Codex Fundamentals
L4Lesson 2Free

Layer instructions without conflict

Global, project, and folder rules

After this, you'll be able to decide whether a rule belongs in global guidance, project AGENTS.md, a deeper folder instruction, config, or the current prompt.

Before you start

Complete Make AGENTS.md useful first.

The idea

Instruction conflicts are usually placement problems. Codex reads guidance in layers. A global preference, a repo rule, a folder-specific rule, and a task prompt should not all try to own the same decision.

Global, repo, and folder rules overlap until the agent cannot tell which rule wins.
Global, repo, and folder rules overlap until the agent cannot tell which rule wins.
LayersRead from goal to proof so Layer instructions without conflict stays inspectable.
  1. 1
    GoalAfter this, you'll be able to decide whether a rule belongs in global guidance,
  2. 2
    InputsGlobal guidance is personal and cross-repo
  3. 3
    Layer instructions withoutStable personal preferences go to global guidance
  4. 4
    ReviewRepo commands and boundaries go to project guidance
  5. 5
    ProofSort a mixed rule list into global, project, folder, config, prompt, and discard

Here is the before and after: before, Codex is guessing from a loose request. After, you can decide whether a rule belongs in global guidance, project AGENTS.md, a deeper folder instruction, config, or the current prompt.

Now try it use the exercise prompt on one real repo task. Keep the output small enough to check before you accept the change.

You are ready when the Codex action, boundary, and proof all match the task.

Try it (12 min)

Watch out for

  • Putting task scope into global guidance.
  • Putting personal style rules into a shared repo file.
  • Keeping old config notes because they once mattered.
  • Adding duplicate rules in multiple places.

Paste this into Claude

Sort these rules into Codex instruction layers:

Rules:
- [paste 8-12 rules, commands, preferences, task constraints, and warnings]

Buckets:
1. Global guidance
2. Project AGENTS.md
3. Folder-specific guidance
4. Config
5. Current prompt
6. Do not keep

For each rule, give one reason and name any conflict you see.

Created by potrace 1.16, written by Peter Selinger 2001-2019 What a good response looks like

Project AGENTS.md: run npm run build before final because it applies to the repo. Current prompt: only edit the profile route because that scope belongs to this task. Do not keep: old yarn command because the repo uses npm now.

Created by potrace 1.16, written by Peter Selinger 2001-2019 What good looks like

  • Stable personal preferences go to global guidance
  • Repo commands and boundaries go to project guidance
  • One-off task scope goes to the prompt
  • Conflicting rules are identified before Codex runs

When this breaks

  • Breaks when a stale lower-level rule contradicts the current prompt.
  • Breaks when global rules include project-specific commands that fail in other repos.

AI can help with this

Use Codex to help you you can decide whether a rule belongs in global guidance, project AGENTS.md, a deeper folder instruction, config, or the current prompt. Start with the exercise prompt and your real input. Ask for one draft, then check it against this proof: Stable personal preferences go to global guidance. Accept only the version you can verify yourself.

The rules stack from broad to local with conflict removed and the golden dot on the active file.

Created by potrace 1.16, written by Peter Selinger 2001-2019 You can now

✓

You can name each instruction layer

  • ✓You can place stable rules where they belong
  • ✓You can spot duplicate or stale guidance
  • ✓You can keep the current prompt task-specific

Key takeaways

Good Codex guidance is layered. Put rules where they apply, and remove rules that no longer earn their place.

  1. 1Global guidance is personal and cross-repo.
  2. 2AGENTS.md is repo-wide.
  3. 3Folder guidance is for local exceptions.
  4. 4The prompt owns the current task.

Created by potrace 1.16, written by Peter Selinger 2001-2019 Go deeper

  • Codex AGENTS.md guide
  • Codex config basics

Was this helpful?

Up nextPick the right sign-in path→

Related lessons

Do Not Stuff CLAUDE.mdMake AGENTS.md useful
← Back to Codex Fundamentals