Repository navigation
Description
Problem
With #47, an instructions entry with paths is rendered as a native rule file on Claude Code, Copilot and Cursor. Codex has no glob-scoped instruction form, so there the entry is a deviation and is not applied at all. A team split across Cursor and Codex gets scoped guidance on one client and nothing on the other.
"Not applied" was chosen over "applies to the whole repository" because widening means merging the entry into the root AGENTS.md, which Codex, Cursor and Antigravity share. That would break separate ownership per entry and the rule that the project file is a literal copy of its source, and Cursor would see the guidance twice, once unscoped.
Options
- Keep "not applied". Current behaviour. Honest and simple; Codex users get no scoped guidance.
- Pointer in the root
AGENTS.md. OpenLune appends a generated line such as "for files underweb/, followinstructions/frontend.md".- Keeps the scope and works for any pattern.
AGENTS.mdis no longer a literal copy of the project source; OpenLune has to own a generated part of it.- Whether the scope is honoured depends on the model following the pointer, not on a matcher.
- Cursor and Antigravity read the same file, so Cursor sees the pointer on top of its native rule. Redundant, probably harmless.
- Nested
AGENTS.md(e.g.web/AGENTS.md) for patterns that are a plain directory prefix; anything else stays a deviation.- Native, and leaves the root file untouched.
- Only covers directory-shaped patterns, needs OpenLune to interpret the pattern, and a nested
AGENTS.mdmay already exist and be unmanaged. Other clients that read nestedAGENTS.mdwould see the guidance in addition to their native rule.
Current leaning: stay with option 1 until there are Codex users on repositories with scoped entries, then take option 2.
Before deciding
- Codex's instruction discovery was not checked against its current documentation. From memory, it reads one file per directory (
AGENTS.override.md, elseAGENTS.md, else a configured fallback), so there is no Codex-only project file loaded in addition toAGENTS.md. Confirm this, and how nested files apply. - Antigravity is also a deviation today. It appears to have glob rules under
.agents/rules/; if its documentation confirms that, it can be rendered natively like the other three clients, leaving Codex as the only gap. That is a separate, cheaper change.
Activity
dominikbraun commentedon Nov 29, 2026
Decision: option 1, Codex keeps "not applied"
Checked against the current Codex instructions guide (https://learn.chatgpt.com/docs/agent-configuration/agents-md):
AGENTS.override.md, thenAGENTS.md, thenproject_doc_fallback_filenames). There is no glob-scoped instruction form and no Codex-only project file read alongsideAGENTS.md.web/AGENTS.md.That rules out the alternatives:
AGENTS.md(option 3) only takes effect for sessions started inside the scoped directory. For the usual root-launched session it does nothing, so it would be a deviation disguised as a native rendering, on top of needing OpenLune to interpret patterns and handle an existing unmanaged file.AGENTS.md(option 2) makes the project file no longer a literal copy of its source and hands OpenLune a generated part of a file shared with Cursor and Antigravity. Whether the scope holds depends on the model following prose rather than a matcher. Not worth a product-rule change for a client with no better mechanism; the existing deviation text already says what Codex does instead.Antigravity
The Antigravity rules documentation (https://antigravity.google/docs/rules, covering App, CLI and IDE) confirms glob rules: immediate
.mdchildren of.agents/rules/with frontmattertrigger: globand a comma-separatedglobsvalue. Patterns starting with*must be quoted, a pattern containing a comma cannot be expressed, and a rule file over 24,000 bytes is truncated. Scoped instructions can therefore be rendered natively for Antigravity, leaving Codex as the only client with this gap. That change is tracked separately.