Skip to main content

Repo Ffwd

A safe, parallel, config-driven CLI and agent skill for keeping local Git repositories updated to their remote default branch.

Features

  • Parallel & bounded: Fetches repositories concurrently (--concurrency) with per-repository timeouts (--timeout) and transient network retries.
  • Non-interactive by construction: Runs every git subprocess with closed stdin, GIT_TERMINAL_PROMPT=0, GCM_INTERACTIVE=never, and non-interactive SSH (BatchMode=yes injected only when neither GIT_SSH_COMMAND/GIT_SSH nor core.sshCommand is configured).
  • Depth-bounded, zero double-scanning: Walks configured [[roots]] up to depth, stops descending at .git boundaries, skips linked worktrees by default, honors exclude globs and .repoignore, and deduplicates overlapping roots and symlinks via realpath and --git-common-dir.
  • Smart conditional AutoStash (--autostash, default false): Never touches or stashes repositories that are already up to date (behind == 0), ahead, or diverged. Only stashes when behind and dirty files block fast-forward, then immediately restores (git stash pop), preserving the stash on conflict.
  • Worktree-safe off-branch updates: Updates local <default> refs via git fetch <remote> <default>:<default> without switching branches, skipping ref updates whenever <default> is checked out in a linked worktree.
  • Agent- & script-ready: Noun-verb CLI conforming to CLI Design Standard v1.4.15 (text, --json, -o markdown), deterministic ordering, --dry-run, doctor, and a bundled skill plugin for Claude Code, Codex, and Antigravity.

Installation

# Run on demand with uvx
uvx repo-ffwd --help

# Or install persistently
uv tool install repo-ffwd
# pip install repo-ffwd

Quick Start

# 1. Guided initial setup (creates your XDG TOML config)
repo-ffwd config init

# 2. Preview discovered repositories (offline)
repo-ffwd repo list

# 3. Preview updates without mutating anything
repo-ffwd repo sync --dry-run

# 4. Sync all configured repositories in parallel
repo-ffwd repo sync

If you run repo-ffwd repo sync interactively before creating a config file, it prompts to run guided setup. In scripts or CI (--no-input, piped stdin/stderr, or JSON output mode), it exits cleanly with an actionable hint unless --root <path> is passed.

Configuration

Config lives in your XDG config directory (repo-ffwd config path prints the exact path):

[sync]
concurrency = 6
timeout_seconds = 60
retries = 1
prune = true
autostash = false
include_worktrees = false
remote = "origin"

[defaults]
depth = 2
exclude = [".*", "_archive", "archive", "node_modules", ".venv"]

[output]
format = "text"
color = "auto"
only_changed = true

[[roots]]
path = "~/projects"
depth = 2
exclude = ["vendor/*"]
tags = ["work"]

Inspect and edit settings without touching the file directly:

repo-ffwd config view --show-origin
repo-ffwd config set sync.concurrency 8
repo-ffwd doctor

Commands

  • repo-ffwd repo sync — Fetch and fast-forward default branches in parallel (--root, --max-depth, --concurrency, --timeout, --autostash, --dry-run, --all, --tag, --fail-fast)
  • repo-ffwd repo list — Offline discovery preview
  • repo-ffwd repo status — Read-only branch, sync state, dirty, and ahead/behind status (--fetch, repeatable --filter, --detailed, --legend)
  • repo-ffwd config init | view | path | get | set — Configuration management
  • repo-ffwd doctor — Check Python, git, config file, and configured roots
  • repo-ffwd completion bash|zsh|fish — Shell completions

See docs/cli-interface.md for the complete interface contract and CONFORMANCE.md for the CLI Design Standard v1.4.15 conformance record.

Bundled Agent Skill

This repository ships the repo-ffwd skill plugin under plugins/repo-ffwd/ with manifests for Claude Code, Codex, and Antigravity.

Development

just setup   # install dev env and git hooks
just check   # lint, typecheck, boundaries, and full pytest suite
uv build     # build wheel and sdist

Metadata

Release files for repo-ffwd 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for repo-ffwd 0.2.0
File Size Uploaded Provenance Actions
repo_ffwd-0.2.0.tar.gz 82.3 kB Without provenance Details for repo_ffwd-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for repo-ffwd 0.2.0
File Interpreter ABI Platform Actions
repo_ffwd-0.2.0-py3-none-any.whl Python 3 none any Details for repo_ffwd-0.2.0-py3-none-any.whl

Total release size: 200.4 kB

Release files / repo_ffwd-0.2.0.tar.gz

Download URL repo_ffwd-0.2.0.tar.gz
Size 82.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5a4886da2e137d3f26900926eda5f7349d5852ae5edd88f927c0d500965a5f43
BLAKE2b-256 checksum
How to use checksums
dea1b47cf293c32dc31446fe58ae65c1e565a981317ddefe60656fb063a3849d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / repo_ffwd-0.2.0-py3-none-any.whl

Download URL repo_ffwd-0.2.0-py3-none-any.whl
Size 118.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6531ff0bafc2dbc92f96ef0bd45de2b99d609b6f263ef81c912c96846a459b80
BLAKE2b-256 checksum
How to use checksums
118d8780d70a5b56d97a49f45aa0af4a5d78ccd7946febbce8adf6e5c6d7f66f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for repo-ffwd 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page