Skip to content

.codexignore Never Respected #6530

Closed as duplicate
Closed as duplicate

Description

@silver-ben

What version of Codex is running?

codex-cli 0.57.0

What subscription do you have?

PRO

Which model were you using?

codex-gpt-5-high

What platform is your computer?

MacOS

What issue are you seeing?

The .codexignore file is currently ignored by the model. This causes unnecessary context usage and prevents repositories from including out-of-scope or outdated files safely. Either the .codexignore behavior should be fixed so it’s consistently respected, or the feature should be removed entirely to avoid misleading users.

What steps can reproduce the bug?

Load and repo with an .codexignore pointing to directories/files you wish for the model to NOT load in it's context.

What is the expected behavior?

Not load the directroies/files into it's context automatically.

Additional information

No response

Activity

  1. added
    bug
    on Nov 12, 2025
  2. added
    CLI
    context
    on Nov 12, 2025
  3. etraut-openai commented on Nov 12, 2025

    @etraut-openai
    Contributor

    There is currently no support for a .codexignore file. There is a feature request #2847. If you haven't already done so, please upvote that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugcontext

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions