Skip to content

Support opt-in sparse checkout when creating managed worktrees #36075

Description

@shezchen

What variant of Codex are you using?

App

What feature would you like to see?

Please add a Codex config setting that enables sparse checkout for newly created managed worktrees.

The setting should be disabled by default. When enabled, Codex should prompt the user to select one or more repository directories before creating a new worktree, then materialize only those selected paths.

The sparse selection should be applied during creation, rather than creating a full worktree first and converting it afterward. When the setting is disabled, the current full-checkout behavior should remain unchanged.

Additional information

My GameDev repository is over 300 MB, with most of its size coming from game assets. For many Codex tasks, I only need the source-code directory and do not need textures, audio, models, or other assets.

Creating a full managed worktree is therefore unnecessarily slow and consumes significant disk space. An opt-in directory picker would make worktree-based and parallel workflows much more practical for large Game projects and monorepos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appconfigIssues involving config.toml, config keys, config merging, or config updatesenhancementNew feature or requestperformance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions