Skip to content

[Feature]: Watch a parent folder and offer to add new repositories as projects #20481

Description

@gustavolpaiva

Problem or use case

I keep all my projects under one parent folder (for example ~/dev/<project>). As far as I can tell, Orca only knows about repositories that were added explicitly — through the UI or orca repo add --path. When a new repository appears in that folder (a fresh git clone or a new project), it does not show up in the Projects sidebar until it is added by hand.

In my case, 16 repositories were registered and 2 other Git repositories in the same parent folder were not registered, so they did not appear in the sidebar. I checked orca agent-context --json (Orca 1.4.200) and found no command to scan or watch a folder for repositories.

Proposed solution

A per-host setting listing one or more watched parent folders:

  • Orca scans each watched folder (depth 1 by default, configurable) for Git repositories that are not registered yet.
  • For each new one, Orca asks: Add · Not now · Never for this folder. Asking should be the default; adding automatically could be an option.
  • "Never" is remembered per path, so throwaway clones don't keep asking.
  • Hidden folders (.worktrees, .wt, …) and folders without .git are ignored by default.
  • Orca waits until a clone has finished (for example, HEAD resolves to a commit and there is no index.lock) before asking.

CLI parity would help automation:

orca repo scan --root ~/dev --json   # list unregistered git repos under a root
orca repo watch add ~/dev            # manage watched roots

Alternatives or additional context

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions