Skip to content

Support optional sparse checkout for new worktrees #254

Description

@blaksmatic

Summary

Orca currently creates new worktrees as full checkouts. For large monorepos, it would be very helpful to support optional sparse checkout when creating a worktree.

I’m not asking for this to replace the current behavior. Full checkout still seems like the right default. The request is to add a sparse-checkout option for cases where the user only needs a small part of a large repo.

Why this would help

Many agent and developer tasks are scoped to a single package, service, or directory. In large repos, a full checkout can mean:

  • more disk usage
  • slower indexing / startup
  • noisier file trees and search results
  • more unnecessary files for focused work

An opt-in sparse mode would make Orca more useful for big monorepos without changing the default experience for everyone else.

Suggested behavior

A possible approach:

  1. Keep full checkout as the default when creating a worktree.
  2. Add an advanced option to create the worktree as a sparse checkout.
  3. Let the user choose paths directly, or pick from saved presets.
  4. Make it visible in the UI that a worktree is partial / sparse.
  5. Allow expanding or reconfiguring the sparse paths later.

Important UX details

Sparse checkout is most useful if Orca treats it as a first-class state rather than a hidden git detail. For example:

  • search results may be incomplete by design
  • missing files should not look like errors
  • the worktree card could show a sparse badge
  • there should be an easy path to widen the checkout later

Scope of request

This is intentionally narrower than remote SSH support. Even just local worktree creation with optional sparse checkout would already be a meaningful improvement for large repos.

Activity

  1. colinchambachan commented on Apr 25, 2026

    @colinchambachan
    Contributor

    @AmethystLiang is anyone taking a look at this? Happy to work on it if it's an approved feature

  2. nwparker commented on Apr 25, 2026

    @nwparker
    Contributor

    Go for it ! 🙏

  3. added theissue type on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions