Skip to main content

A Python CLI tool for managing and synchronizing multiple git repositories with ease

Project description

GitDirector

An interactive TUI for managing all your git repositories from one place — launch AI coding agents, spin up tmux sessions, and run multiple agents across repos in parallel.

Why GitDirector?

Stop context-switching between terminals. gitdirector console gives you a live dashboard of every repository you work on. Hit enter, pick a repo, and instantly drop into a tmux session with your AI agent of choice — OpenCode, Claude Code, GitHub Copilot, or Codex. Run them all at once, each in its own session, while you track sync state, branches, and changes across every repo in real time.

Installation

pip install gitdirector

Usage

Command Description
gitdirector console Open the interactive TUI dashboard
gitdirector link PATH [--discover] Link a repository or discover all under a path
gitdirector unlink PATH|NAME [--discover] Unlink a repository by path, name, or all under a path
gitdirector list List all tracked repositories with live status
gitdirector status Show dirty repositories with staged/unstaged files
gitdirector pull Pull latest changes for all tracked repositories
gitdirector cd NAME Open or switch to a tmux session for a repository
gitdirector autoclean links|sessions Clean broken links or stale tmux sessions
gitdirector help Show help

link

gitdirector link /path/to/repo
gitdirector link /path/to/folder --discover   # recursively find and link all repos

unlink

gitdirector unlink /path/to/repo         # unlink by full path
gitdirector unlink my-repo               # unlink by repository name
gitdirector unlink /path/to/folder --discover  # unlink all repos under a path

If multiple tracked repositories share the same name, gitdirector will refuse and list the conflicting paths so you can use the full path instead.

list

Displays a live table of all tracked repositories with:

  • Sync state: up to date, ahead, behind, diverged, or unknown
  • Current branch
  • Staged/unstaged changes
  • Last commit (relative time)
  • Tracked file size
  • Path

Checks run concurrently (default: 10 workers).

status

Shows repositories with uncommitted changes (staged and/or unstaged files). Prints a summary of total, clean, and changed repo counts.

pull

Pulls all tracked repositories concurrently using fast-forward only (git pull --ff-only). Reports success or failure per repository.

cd

gitdirector cd my-repo

Opens a tmux session rooted at the repository directory, or switches to it if a session for that repo already exists.

  • Inside tmux — switches the current client to the target session.
  • Outside tmux — replaces the current process with tmux attach-session, handing the terminal over to tmux.

Requires tmux to be installed on your system.

macOS: brew install tmux
Debian/Ubuntu: sudo apt install tmux
Arch: sudo pacman -S tmux

console

gitdirector console

Opens a full interactive TUI dashboard built with Textual. All repositories load concurrently with live status updates.

Features:

  • Live table with sync state, branch, changes, last commit, and active tmux sessions
  • / to filter repositories by name or path
  • s to cycle sort by any column
  • r to refresh all statuses
  • Press enter on any repository to open an action menu:
    • New tmux session — create and attach a session for the repository
    • Attach existing session — switch to any already-running tmux session
    • Launch AI agent — open OpenCode, Claude Code, GitHub Copilot, or Codex in a new tmux session
    • Remove session — kill a running tmux session

Configuration

Config is stored at ~/.gitdirector/config.yaml.

repositories:
  - /path/to/repo1
  - /path/to/repo2
max_workers: 10   # optional, default 10

Requirements

  • Python 3.9+
  • Git
  • tmux ≥ 3.2a (for gitdirector cd)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitdirector-1.1.0.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitdirector-1.1.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file gitdirector-1.1.0.tar.gz.

File metadata

  • Download URL: gitdirector-1.1.0.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gitdirector-1.1.0.tar.gz
Algorithm Hash digest
SHA256 9bdbabf99bbd54e9862c90de075c6f8d0164d4728c422ed5ce6c8fcf98d33f46
MD5 6259cc0aa4559a5c550114b42805f902
BLAKE2b-256 89b6672448d7fb6e510025394ec45f710574470d510881dd3ed58fdd47841088

See more details on using hashes here.

Provenance

The following attestation bundles were made for gitdirector-1.1.0.tar.gz:

Publisher: release.yml on anitoanto/gitdirector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gitdirector-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: gitdirector-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gitdirector-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c8805152dcf322c2543117af6053e1c643f2c639f87ecc84e2c140e255b60dc
MD5 ce0ac3b678e1b14d2a62d116935afc2b
BLAKE2b-256 29d4708521846f864ae466e83cff6db8c9bd979ad3d50a21c725bfc8371052af

See more details on using hashes here.

Provenance

The following attestation bundles were made for gitdirector-1.1.0-py3-none-any.whl:

Publisher: release.yml on anitoanto/gitdirector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page