TUI shows `Agents.md: <none>` even though repo `AGENTS.md` is loaded into prompt

Resolved 💬 1 comment Opened Apr 12, 2026 by Ihab-Zhaika Closed Apr 12, 2026

What version of Codex CLI is running?

0.120.0`

What subscription do you have?

Azure

Which model were you using?

GPT-5.4

What platform is your computer?

Windows

What terminal emulator and version are you using (if applicable)?

PowerShell

What issue are you seeing?

Environment:

  • Codex CLI: 0.120.0
  • OS: Windows
  • Working repo has root AGENTS.md
  • Repo is trusted in ~/.codex/config.toml

Summary:
The TUI header shows Agents.md: <none>, but the repo AGENTS.md is actually being loaded and injected into the
model prompt.

Steps to reproduce:

  1. Create a repo with a root AGENTS.md
  2. Start Codex in that repo
  3. Observe the header/status panel shows Agents.md: <none>
  4. Run:

```powershell
codex debug prompt-input "test"

Actual behavior:

  • Header says: Agents.md: <none>

Expected behavior:

Additional notes:

  • This was not a repo layout problem; the file exists at repo root
  • Session metadata appears to record the repo cwd, but the injected AGENTS.md content shows up as prompt content

rather than as explicit header metadata

  • This makes the header misleading even though instruction loading is working

Evidence:

  • codex debug prompt-input "test" output includes content from the Agent.md

What steps can reproduce the bug?

  1. Create a repo with a root AGENTS.md
  2. Start Codex in that repo
  3. Observe the header/status panel shows Agents.md: <none>
  4. Run:

```powershell
codex debug prompt-input "test"

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗