Repository navigation
Batch filesystem metadata checks for instruction and skill discovery - #63266
Merged
copyberry[bot] merged 1 commit intoNov 23, 2026
Conversation
…63266) ## Why Discovering project instructions and repository skill directories can require several metadata checks per ancestor directory. Batching those checks reduces remote executor round trips and sandbox helper launches. ## What changed Add bounded metadata batches that return a result or error for each path in input order. Remote executors advertise support for `fs/getMetadataBatch`, and sandboxed filesystems can process a batch in one helper invocation. Check project root markers alongside the first working-directory instruction candidate, then batch the next candidate across unresolved directories in filename priority order. Batch checks for `.agents/skills` directories between the project root and the working directory. Fall back to individual checks when batching is unsupported. ## Testing Extend tests to assert batch counts for shallow and nested `AGENTS.md` discovery and verify that metadata batches preserve result order and per-path errors. GitOrigin-RevId: 6cb04202a905d783454908348d008def95b9a5d6
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/6cb04202a905d783454908348d008def95b9a5d6
branch
from
November 23, 2026 05:40
0253f7b to
5f645d7
Compare
Contributor
Codex Review Summary: 🔄 RunningThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/6cb04202a905d783454908348d008def95b9a5d6
branch
November 23, 2026 05:40
kerryzl77
temporarily deployed
to
issue-triage
November 23, 2026 05:45 — with
GitHub Actions
Inactive
kerryzl77
temporarily deployed
to
issue-triage
November 23, 2026 05:45 — with
GitHub Actions
Inactive
kerryzl77
temporarily deployed
to
issue-triage
November 23, 2026 05:45 — with
GitHub Actions
Inactive
CoffeeWeng
temporarily deployed
to
issue-triage
November 23, 2026 06:03 — with
GitHub Actions
Inactive
CoffeeWeng
temporarily deployed
to
issue-triage
November 23, 2026 06:03 — with
GitHub Actions
Inactive
CoffeeWeng
temporarily deployed
to
issue-triage
November 23, 2026 06:03 — with
GitHub Actions
Inactive
Vincent1826
temporarily deployed
to
issue-triage
November 23, 2026 06:19 — with
GitHub Actions
Inactive
Vincent1826
temporarily deployed
to
issue-triage
November 23, 2026 06:19 — with
GitHub Actions
Inactive
Vincent1826
temporarily deployed
to
issue-triage
November 23, 2026 06:19 — with
GitHub Actions
Inactive
MoreYogurt
temporarily deployed
to
issue-triage
November 23, 2026 06:43 — with
GitHub Actions
Inactive
MoreYogurt
temporarily deployed
to
issue-triage
November 23, 2026 06:43 — with
GitHub Actions
Inactive
MoreYogurt
temporarily deployed
to
issue-triage
November 23, 2026 06:43 — with
GitHub Actions
Inactive
bcoudurier-fh
temporarily deployed
to
issue-triage
November 23, 2026 06:43 — with
GitHub Actions
Inactive
bcoudurier-fh
temporarily deployed
to
issue-triage
November 23, 2026 06:43 — with
GitHub Actions
Inactive
bcoudurier-fh
temporarily deployed
to
issue-triage
November 23, 2026 06:43 — with
GitHub Actions
Inactive
bcoudurier-fh
temporarily deployed
to
issue-triage
November 23, 2026 06:44 — with
GitHub Actions
Inactive
ssgg0318-cpu
temporarily deployed
to
issue-triage
November 23, 2026 07:26 — with
GitHub Actions
Inactive
ssgg0318-cpu
temporarily deployed
to
issue-triage
November 23, 2026 07:26 — with
GitHub Actions
Inactive
ssgg0318-cpu
temporarily deployed
to
issue-triage
November 23, 2026 07:26 — with
GitHub Actions
Inactive
cdjfree-debug
temporarily deployed
to
issue-triage
November 23, 2026 07:29 — with
GitHub Actions
Inactive
cdjfree-debug
temporarily deployed
to
issue-triage
November 23, 2026 07:29 — with
GitHub Actions
Inactive
cdjfree-debug
temporarily deployed
to
issue-triage
November 23, 2026 07:29 — with
GitHub Actions
Inactive
cdjfree-debug
temporarily deployed
to
issue-triage
November 23, 2026 07:30 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Batch filesystem metadata checks for instruction and skill discovery
Why
Discovering project instructions and repository skill directories can
require several metadata checks per ancestor directory. Batching those
checks reduces remote executor round trips and sandbox helper launches.
What changed
Add bounded metadata batches that return a result or error for each
path in input order. Remote executors advertise support for
fs/getMetadataBatch, and sandboxed filesystems can process a batch inone helper invocation.
Check project root markers alongside the first working-directory
instruction candidate, then batch the next candidate across unresolved
directories in filename priority order. Batch checks for
.agents/skillsdirectories between the project root and the workingdirectory. Fall back to individual checks when batching is unsupported.
Testing
Extend tests to assert batch counts for shallow and nested
AGENTS.mddiscovery and verify that metadata batches preserve result order and
per-path errors.