Answer: Add a `.worktreeinclude` file to the repository root and list the ignored paths or `.gitignore`-style patterns to copy when Codex creates a managed worktree. Codex only copies ignored files that match `.worktreeinclude`. Status: Confirmed Entry: tool/codex/settings/copy-ignored-files-worktree Revision: 1 Digest: sha256:78f751cb9efaf013 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:51:02Z Last changed: 2026-11-13T03:51:02Z Last verified: 2026-11-20T13:39:20Z Next check: 2026-11-21T13:39:20Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of file to add | .worktreeinclude | [1] | 2026-11-20 what to list | ignored paths or `.gitignore`-style patterns | [1] | 2026-11-20 automatic copy | AGENTS.override.md | [1] | 2026-11-20 Sources: [1] OpenAI. "Worktrees". https://learn.chatgpt.com/docs/environments/git-worktrees.md Role: primary. Accessed: 2026-11-20T13:39:20Z Quote: "add a `.worktreeinclude` file to the repository root" (Supports: file to add) Quote: "list the ignored paths or `.gitignore`-style patterns to copy when Codex creates a managed worktree" (Supports: what to list) Quote: "Codex automatically copies an ignored `AGENTS.override.md` into local managed worktrees" (Supports: automatic copy) Snapshot SHA-256: a40b85b40e9166a59043f62251565500c35c4376e23261f6cb94fdace0824ef6 (captured 2026-11-13T03:51:01Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:51:02Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:39:20Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:39:20Z Last attempt: 2026-11-20T13:39:20Z Notes and limitations: Extracted automatically from a single official source (section "Copy ignored local files into managed worktrees"). Related: https://latestn.com/tool/codex/settings/create-codex-environment How do I create a Codex environment in the desktop app or on the web? https://latestn.com/tool/codex/settings/customize-codex-review-agents-md How do I customize what Codex reviews using AGENTS.md? https://latestn.com/tool/codex/settings/customize-codex-with-agents-md How do I customize Codex to follow my team's conventions using AGENTS.md? https://latestn.com/tool/codex/settings/configure-reviewer-policy How do I configure the Codex Auto-review reviewer policy? https://latestn.com/tool/codex/settings/configure-setup-script How do I configure a setup script for Codex local environments? https://latestn.com/tool/codex/settings/configure-vertex-ai-provider How do I configure the Vertex AI provider manually in Codex? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:51:02Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/settings/copy-ignored-files-worktree/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/settings/copy-ignored-files-worktree POST: https://latestn.com/dispute/tool/codex/settings/copy-ignored-files-worktree with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/settings/copy-ignored-files-worktree?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I copy ignored local files into Codex-managed worktrees? Revision 1, last verified 2026-11-20T13:39:20Z. https://latestn.com/tool/codex/settings/copy-ignored-files-worktree (accessed 2026-11-21T09:55:09Z). @misc{LatestN_tool_codex_settings_copy_ignored_files_worktree_r1, title = {How do I copy ignored local files into Codex-managed worktrees?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/settings/copy-ignored-files-worktree}}, note = {Revision 1; digest sha256:78f751cb9efaf013; last verified 2026-11-20T13:39:20Z; accessed 2026-11-21T09:55:09Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/settings/copy-ignored-files-worktree