Use cases

Four jobs corralctl does well

And, at the end, the jobs it is the wrong tool for.

Keeping hundreds of repositories cloned and current

If you own or work across hundreds of repositories, the hard part is not cloning them once but keeping the copies right. corralctl clone <owner> clones what is missing, pulls what changed and skips the rest, so a daily run is cheap. --concurrency raises the number of workers, and --languages, --visibility and --include-forks narrow what is fetched.

Giving an AI coding agent the whole workspace

A coding agent usually sees the one repository it was opened in. corralctl mcp exposes every clone on the machine over the Model Context Protocol, so the agent can ask which repository declares a symbol, search code across all of them, and read a repository's shape before opening files. It is read-only unless you opt in, and deletion asks a person to approve each clone. See the MCP server page.

Moving or mirroring between forges

Clone from GitHub, GitLab, Gitea, Forgejo, Codeberg or Bitbucket, then run corralctl sync --to <forge> to mirror the organised tree onto any of the others, with each repository's visibility preserved. Start with --dry-run to see every repository that would be created or pushed.

Running syncs from cron or systemd

corralctl runs every git call without prompts, so an unattended run that hits a credential problem fails instead of hanging. Results go to stdout as text, JSON or NDJSON, diagnostics go to stderr, and the exit code is non-zero when any repository failed, which is what a scheduler needs to alert on.

When not to use corralctl

  • For a full backup. It clones working copies; use git clone --mirror or a purpose-built tool for archival copies.
  • For a forge it does not list from. Clones from any host work with the index and the MCP server, but listing an owner works only on the six forges.
  • If your repositories must stay where they are. Its value is a consistent layout; --layout can match your tree, or another tool may suit.
  • For code intelligence. It finds declarations, not references or types.
  • On Windows without WSL. Binaries are published, but Finder tags do nothing there and it is less tested than on macOS and Linux.

The comparison page shows which tool fits each of these jobs.