Skip to content

Provide the ability to allow workspace-write to access ./.codex #14393

Closed as not planned

Description

@kendonB

What variant of Codex are you using?

CLI

What feature would you like to see?

My understanding is that the only way to allow the agent to access the local repo ./.codex/ is to switch on danger mode. There does not seem to be any way to allow workspace-write to write and edit the local repo ./.codex. This would be especially useful for developing complex skills with many scripts. Even allowing ./.codex/skills to be edited would be enough.

Additional information

No response

Activity

  1. added
    enhancement
    on Mar 11, 2026
  2. added
    CLI
    sandbox
    on Mar 11, 2026
  3. github-actions commented on Mar 11, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. removed
    CLI
    on Mar 11, 2026
  5. viyatb-oai commented on Mar 17, 2026

    @viyatb-oai
    Contributor

    you can add

    [sandbox_workspace_write]
    writable_roots = [
      "/Users/<user>/.codex/",
    ...
    ]
    

    to enable writes to .codex if you really need to. We won't support this out of box because it allows the model to edit its own configuration and bypass the sandbox restrictions.

  6. kendonB commented on Mar 18, 2026

    @kendonB
    Author

    @viyatb-oai this was poorly documented enough that your frontier model was unaware this was possible. Recommend updating docs or the system prompt accordingly.

  7. kendonB commented on Mar 18, 2026

    @kendonB
    Author

    @viyatb-oai You also seem to have misunderstood my issue and responded as if I meant the central .codex folder

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

    enhancementsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions