Skip to content

Load shared instructions directly from root AGENTS.md - #39

Merged
Afgan0r merged 1 commit into
masterfrom
fix/codex-agent-instructions
Aug 19, 2026
Merged

Load shared instructions directly from root AGENTS.md#39
Afgan0r merged 1 commit into
masterfrom
fix/codex-agent-instructions

Conversation

@Afgan0r

@Afgan0r Afgan0r commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Embed the canonical shared agent instructions in the root AGENTS.md.
  • Keep repository-specific rules after the managed block.
  • Remove the retired .agent-instructions/AGENTS.md copy.
  • Refresh solidstats-shared-project-standards: AGENTS.md is the only required agent-instruction file, and deleted CLAUDE.md files must not be recreated.

Why

Codex does not expand nested @.agent-instructions/AGENTS.md imports. It only loads instruction files found in its startup directory chain, so the shared rules were not guaranteed to enter the initial context.

Impact

New Codex sessions load the shared rules directly from the root file. The canonical source remains generated rather than maintained twice. CLAUDE.md is no longer part of the repository contract.

Validation

  • Canonical installer --check passes.
  • Root AGENTS.md is 30,340 bytes, below the portable 32 KiB limit.
  • markdownlint-cli2 passes for the root instructions and refreshed skill.
  • The refreshed skill passes quick_validate.py.
  • A fresh Codex startup rollout contains the managed rules before the user task and has no preceding tool calls.

Embed shared rules directly in the root instruction file.
Codex now loads them during session startup without imports.

Co-Authored-By: GPT-5.6 Sol <noreply@openai.com>
@Afgan0r
Afgan0r marked this pull request as ready for review August 19, 2026 19:05
@Afgan0r
Afgan0r merged commit 140ef4f into master Aug 19, 2026
4 checks passed
@Afgan0r Afgan0r changed the title Embed shared instructions in root AGENTS.md Load shared instructions directly from root AGENTS.md Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant