Skip to main content

TUI dashboard for tmux sessions with git and PR status

Project description

vigil

TUI dashboard for tmux sessions. Monitors git status and GitHub PR state across all your sessions from a single view.

Navigate sessions with vim-style keybindings, merge PRs, approve reviews, rebase branches, and clean up sessions — all without leaving the terminal. Works with any tmux workflow: git worktrees, one-branch-per-session, or plain repos.

Install

brew install joshuazd/tap/vigil

Or via PyPI:

pipx install vigil-tui

Or from source:

git clone https://github.com/joshuazd/vigil.git
pipx install ./vigil

Prerequisites

Usage

# Launch the TUI
vigil

# Show help
vigil --help

Vigil discovers all tmux sessions, reads git status from each session's working directory, and fetches PR state via gh. Sessions are color-coded by state: idle, pending review, CI failing, mergeable, etc.

Keybindings

Key Action
j / k Navigate down / up
Enter Switch to session (popup mode) or toggle detail
Tab Toggle detail panel
o Open PR in browser
m Merge PR (press twice to confirm)
a Approve PR
b Rebase and force-push
x Cleanup session (press twice to confirm)
d Dispatch (run configured hook with input)
r Refresh
q Quit

Configuration

All configuration is optional. Create ~/.config/vigil/config.toml to customize:

[settings]
git_interval = 3       # Git polling interval (seconds)
pr_interval = 30       # PR polling interval (seconds)
cache_ttl = 30         # Cache staleness threshold (seconds)
log_level = "INFO"     # DEBUG, INFO, WARNING, ERROR
git_workers = 8        # Max parallel git status threads
capture_window = ""    # Window name for detail panel (empty = first window)

[hooks]
cleanup = "tmux kill-session -t {session} && git worktree remove {path}"
dispatch = "my-dispatch-script {input}"
merge = "gh pr merge {branch} --squash --delete-branch"
approve = "gh pr review {branch} --approve"

Hooks

Actions are shell command templates with {placeholder} variables, automatically shell-escaped:

Hook Variables Default
cleanup {session}, {path}, {branch}, {git_root} Built-in (see below)
dispatch {input} (none — must be configured)
merge {branch}, {git_root} gh pr merge {branch} --squash --delete-branch
approve {branch}, {git_root} gh pr review {branch} --approve

The built-in cleanup kills the tmux session, then removes the git worktree if the session directory is one. For non-worktree sessions, it just kills the session. Override with a hook for custom behavior.

The default merge uses --squash --delete-branch. Override [hooks] merge for a different strategy. Set any hook to "" to disable it.

Environment variable overrides

Environment variables override TOML settings for quick testing:

VIGIL_GIT_INTERVAL, VIGIL_PR_INTERVAL, VIGIL_CACHE_TTL, VIGIL_LOG_LEVEL, VIGIL_GIT_WORKERS, VIGIL_CAPTURE_WINDOW

Development

git clone https://github.com/joshuazd/vigil.git
cd vigil
pip install -e ".[dev]"
pytest

The ./vigil bootstrap script auto-creates a virtualenv at ~/.local/share/vigil/venv for quick local use without a manual install.

Logs are written to ~/.local/share/vigil/vigil.log (rotating, 2 MB max).

License

GPL-3.0 — see LICENSE for details.

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

vigil_tui-0.2.0.tar.gz (44.3 kB view details)

Uploaded Source

Built Distribution

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

vigil_tui-0.2.0-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

Details for the file vigil_tui-0.2.0.tar.gz.

File metadata

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

File hashes

Hashes for vigil_tui-0.2.0.tar.gz
Algorithm Hash digest
SHA256 63fd16086898a65e0dcdebd41fd8665a681ce954496397293061a4f88c9259fb
MD5 a0b87d792d503cf1e26f413998294307
BLAKE2b-256 d17fa6b1e2e87a4d543c8087caf9cd83e555e791c47500c5798e5feef3e4e859

See more details on using hashes here.

Provenance

The following attestation bundles were made for vigil_tui-0.2.0.tar.gz:

Publisher: publish.yml on joshuazd/vigil

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

File details

Details for the file vigil_tui-0.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for vigil_tui-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23c301c3e558e07eb7c5481b987ecaef052b169422a9a8d5b9051ce8d03c7ed2
MD5 5e62e5066386b2d05fa7b8a4e9da7080
BLAKE2b-256 8129311b671add081b00a278dc4aee903dbcc2fa1c06b8fc2bb42e9316b8ddb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for vigil_tui-0.2.0-py3-none-any.whl:

Publisher: publish.yml on joshuazd/vigil

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