/codex: the filesystem boundary's bare `agents/` makes Codex skip a repository's own agents/ folder

オープン 初心者向け
#3,924 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@indraoverflow がすでに取り組んでいます。

2026年11月5日 から。

  • #3995 @indraoverflow による — マージされずにクローズ
  • #4037 @indraoverflow による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
markdown
領域
devtools

調査の方向性

codex/SKILL.md の「Filesystem Boundary」セクションから始めてください。このセクションでは、プロンプトのテキストが保護対象のパスを列挙しており、そこに素の agents/ という項目が含まれています。その境界テキストが各 codex exec プロンプトにどのように挿入されているかを確認します。項目が正確なインストールパス(~/.claude/skills/、~/.agents/、.claude/skills/、agents/openai.yaml)だけを指しているか、またはレビュー対象リポジトリ自身のフォルダが読み取り可能であるとテキストに明記されていれば完了です。さらに、差分に agents/ の変更を含むテストプロンプトでそれを確認してください。

索引モデルが issue の本文から書いたものです。

説明

bug S3

What happens

The filesystem boundary that /codex puts in front of every codex exec prompt (codex/SKILL.md, "Filesystem Boundary") reads:

IMPORTANT: Do NOT read or execute any files under ~/.claude/, ~/.agents/, .claude/skills/, or agents/. ...

The first three entries are the skill install paths. The last one, agents/, is relative to the repository, so it also matches a repository's own agents/ folder when that folder is reviewed code (for example a repo that keeps agent prompt files in agents/ and tests them).

Seen on v1.91.162.0 (the text is unchanged in v1.91.350.0), Codex consult mode, reviewing a diff that changed agents/planner.md:

  • Codex left the changed agents/planner.md out of its review.
  • It wrapped the repo's documentation test suites in a read guard, and the suites that read agents/ were blocked (4 of 12 in one run; 3 of 3 that read it in a later run whose diff didn't touch agents/ at all).
  • Its verdict was "Can't verify".

It isn't consistent: an earlier run in the same session, with the same boundary, ran all 12 suites. The workaround is one extra sentence in the task text saying the repository's agents/ folder is reviewed code and may be read.

Expected

The boundary keeps Codex out of skill definitions without hiding repository content that happens to share the folder name.

Suggestion

Name the exact install paths the boundary protects (~/.claude/skills/, ~/.agents/, .claude/skills/, and the generated agents/openai.yaml it already names), not a bare agents/. Or add a sentence saying the reviewed repository's own folders are always readable. A test prompt for a repo with an agents/ folder in its diff would pin it.

主要言語
TypeScript
スター
139k
フォーク
20.6k
平均マージ
10時間 12分
マージ済み PR(30日)
655

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

garrytan/gstack のほかの issue

garrytan/gstack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。