I’m currently working on a SaaS where I needed to share context across folders.
The Problem
Imagine the following setup:
/home/daniel/projects/work/
│
├── AGENTS.md # Work-level instructions
│
├── shared-context/
│ ├── AGENTS.md # Shared-context instructions
│ └── healthcare/
│ └── domain.md # Shared healthcare knowledge
│
├── test-project/
│ ├── AGENTS.md # Project-level instructions
│ ├── src/
│ │ └── AGENTS.md # Source-specific instructions
│ └── README.md
│
└── healthcare-app/
├── AGENTS.md # Zoa project instructions
├── emr-app/
└── strategy/
How do you access the context in shared-context/healthcare/domain.md when working within healthcare-app/
AGENTS in the sub-directory override any rules written in the parent directory. But the context/healthcare/domain.md is not loaded when necessary when you prompt within the healthcare-app/
Solution:
When adding a project in ChatGPT Desktop (Codex), add the working directory first. This will be set as primary. Now, add the folder that you like to share the context from.
Verification
“How do you verify whether context is loaded?”, might you ask. Here is where context marker helps.

Context marker is an arbitrary string that Codex adds when asked to any file (ideally markdown).
Here is how a context marker would look like when added.
File: shared-context/healthcare/domain.md
Context marker: SHARED-CONTEXT-5638
To verify whether the files are loaded, ask Codex the following:
Without reading any files, report the context markers already available in your instructions.
Codex will then list the context markers from the loaded files.
Use Context markers only to test context discovery. You don’t need to add context markers to every document.

