freshen is an interactive TUI for managing sibling Git repositories. Connect an optional GitHub user or organization to discover repositories and monitor GitHub Actions.
One screen for a folder of repositories: what is behind, what is dirty, what is waiting on CI. Recording and write-up at seankoji.com/projects/freshen.
Contributing? See CONTRIBUTING.md for prerequisites, build/test commands, and the CI-critical
scripts/directory.
- Concurrent Parallel Syncing: Syncs 20+ repositories simultaneously in seconds using Go worker pools.
- Organization overview: Starts with a priority-led dashboard: four operational tiles, grouped failures and review items, work already in flight, repository health, recent runs and, on tall terminals, the snapshot's sources. Each area opens its dedicated searchable screen.
- Concern queue: Ranks repositories with open PRs or issues and opens their existing detail view for review.
- Explicit repository sync: Startup loads metadata. Sync or clone only when requested; archived repositories are highlighted.
- Alias Mappings: Map GitHub repo names to custom local folder names with a repeatable
-alias local=remoteflag or analiaseslist in the config file..githubβgithubis built in. - GitHub Actions monitoring: Workflow runs, a separate job queue, completed-job and step counts, runner assignments, and a log tail for the selected job.
- Interactive Controls:
- Re-sync / retry individual repositories.
- Safely confirm deletion of archived repositories (
rm -rf).
- Non-Interactive Batch Mode: Run with
-yor--non-interactivefor silent CLI scripting.
Install via the official seankoji-com Homebrew tap:
brew install seankoji-com/tap/freshen(Or tap first: brew tap seankoji-com/tap && brew install freshen)
Install via the Windows Package Manager:
# Install from the manifest attached to a GitHub release
# (download SeanKoji.Freshen.yaml from the release page first).
# Releases are generated by the release workflow starting with the first tag
# cut after it was added; v0.1.1 and earlier have no such asset.
winget install --manifest SeanKoji.Freshen.yaml
# Or once indexed in winget-pkgs
winget install SeanKoji.FreshenPrebuilt release archives for macOS (ARM64 / Intel), Linux (ARM64 / x86_64), and Windows (ARM64 / x64) are published on GitHub Releases.
git clone https://github.com/seankoji-com/freshen.git
cd freshen
go build -o freshen .Launch the TUI interface:
./freshenGlobal keys work the same on every screen, drill-down and the help overlay.
Only the filter input, action menu and confirmations take over the keyboard
until Enter or Esc; Ctrl+C always quits.
| Key | Action |
|---|---|
0 / 1 / 2 / 3 / 4 |
Jump to Overview / Repositories / Actions / Runners / Concerns from anywhere, closing drill-downs |
Tab / Shift+Tab |
Next / previous screen |
Esc / β / h |
Back one level; then clear the filter; then dismiss the message |
/ |
Filter the nearest list (names and status words such as failed or busy); from Overview it opens Repositories; Enter applies, Esc clears |
r |
Refresh the current screen, without syncing repositories |
? |
Keys valid on the current screen, generated from the bindings the handlers use, plus the status legend |
q / Ctrl+C |
Quit |
ββ or j/k, PgUp / PgDn, Home / End |
Move within a list, or scroll details and help |
Enter / β / l |
Open; Actions opens run β jobs β steps and log tail |
Space |
Action menu for the selection |
o / y |
Open in GitHub / copy link or runner ID (local path without an owner) |
v / f |
Actions: toggle runs and job queue / cycle Active, Needs attention, Recent |
[ / ] |
Repository detail tabs: Logs / Branches / Issues / PRs |
s / a |
Sync or clone the selected repository / sync all (confirm) |
b |
Switch the selected repository between original and default branch |
p |
Commit all changes, push, create a PR and switch to default (confirm) |
X |
Remove clean secondary worktrees and delete non-default branches already on a remote (confirm) |
d |
Delete an archived local clone (confirm) |
Confirmations show the captured repository and path; only Enter accepts and
every other key except Esc and Ctrl+C is ignored. Repository actions run in
the background with busy and result feedback. Navigation never moves to another
screen merely because you reach the end of a list.
The header leads with a leaf mark, shows the owner and how old the current screen's data is
("updated 8s ago Β· every 20s"; on narrow terminals just a spinner while a refresh
runs); tabs carry counts of failures (β), running work (β») and concerns. A
state chip names the snapshot's health (healthy, review, failures, partial,
loading, stale, local, empty). On terminals at least 100 columns wide lists become dense
one-row tables; from 140 columns a read-only preview of the selected repository,
run, job or runner sits beside the list. Enter still opens the full screen. The
breadcrumb row shows the drill-down path, such as Actions βΊ alpha / CI #42 βΊ test; on narrow terminals it shortens before the filter input or the active
detail tab does. The status row shows progress, persistent warnings (such as a
failed runner refresh, with the cached runners' age and r to retry) and
transient messages, which expire after 6 seconds (errors after 15); key hints for
the current screen stay on the last row.
Status is always a glyph plus a word, never colour alone: β success, β
failure, β» running, β queued or waiting, β skipped or cancelled, ?
unknown, ! needs attention. Set NO_COLOR=1 to turn colour off; the selected
row then uses reverse video. For a light terminal, set FRESHEN_LIGHT=1 (or
leave COLORFGBG with a light background); freshen uses a dark-on-light palette
with the same contrast floor.
Actions retains all job results. Bars count completed jobs or steps, including skipped/cancelled steps; they do not estimate remaining time. Runs show how long they ran or have waited, and failed jobs name the first failing step. The recent view covers 30 runs per repository. Active runs are additionally queried when that window fills, and job lists are paginated. Missing job details and partial repository failures are labelled. Fleet access failures show observed assignments with unknown availability. The organisation poll starts at 20 seconds and slows with workspace size to budget API requests. Runner polling pauses on screens that do not show runners and refreshes when you return to Overview or Runners. Selected running-job logs refresh with the runner tick using one API request, never more than one at a time; GitHub may provide only step status while logs are unavailable, and an empty log is reported as empty.
# Specify a workspace and GitHub user or organization
freshen -dir ~/repos -owner octocat
# Non-interactive sync; archived repositories are skipped (deleted only with -delete-archived)
freshen -y
# Keep the GitHub repo "my-wiki" in a local folder named "wiki"
# (local folder name first, GitHub repo name second; repeatable)
freshen -alias wiki=my-wiki -alias docs=product-docs
# Display version
freshen -vIn TUI mode nothing is printed to the terminal β stray writes corrupt the alternate screen β so diagnostics go to a file under the user cache dir: ~/Library/Caches/freshen/freshen.log on macOS, ~/.cache/freshen/freshen.log on Linux. Set FRESHEN_LOG_LEVEL to debug, info (default), warn, or error.
tail -f ~/Library/Caches/freshen/freshen.logBatch mode (-y) leaves logging on stderr.
On first interactive launch, freshen asks for a sibling-repository workspace and an optional GitHub owner. Configuration is stored as freshen/config.json in the platform config directory; it contains no credentials. To keep alias mappings without passing -alias every run, add an aliases list in the same local=remote form to your existing config.json (run freshen once first so setup creates it):
{
"workspace": "/Users/you/repos",
"owner": "octocat",
"concurrency": 4,
"aliases": ["wiki=my-wiki", "docs=product-docs"]
}Flags override config. A -alias replaces any config alias that uses the same local folder name or the same GitHub repo name, so each folder maps to exactly one repo. Then FRESHEN_OWNER (or legacy FRESHEN_ORG) can supply an owner.
Workspace-only mode requires git and never calls GitHub. GitHub features require an authenticated GitHub CLI (gh auth login) or GH_TOKEN. Use a token with access to the target repositories; organization runner visibility may require organization-admin or runner permissions.
d then Enter deletes an archived repository and X then Enter force-removes secondary worktrees and non-default branches. Review the selected workspace carefully. Batch deletion requires --delete-archived.
Release binaries are published for macOS, Linux, and Windows with checksums.txt. Homebrew/Linuxbrew and winget manifests are generated from tagged releases; their upstream publication may require a maintainer submission. Verify checksums before installing binaries manually.
To publish a release, push a version tag such as v1.0.0. The release workflow
builds the supported OS and architecture combinations, uploads archives and
checksums to GitHub Releases, and updates the configured Homebrew tap when the
repository token has write access to that tap. Configure a dedicated
HOMEBREW_TAP_GITHUB_TOKEN repository secret with write access to
seankoji-com/homebrew-tap; the default GITHUB_TOKEN cannot write to that
separate repository. The Homebrew formula is written to
Formula/freshen.rb in the tap. The workflow also generates
SeanKoji.Freshen.yaml from the release's checksums.txt
(scripts/winget-manifest.sh) and attaches it to the release. Winget
publication is a separate upstream submission: validate that file with
winget validate, then open the corresponding pull request in
microsoft/winget-pkgs. To render one by hand for any release:
scripts/winget-manifest.sh vX.Y.Z checksums.txt SeanKoji.Freshen.yaml (the
checksums.txt from that release). CI runs goreleaser check and a snapshot build on every
pull request so release config errors surface before a tag.
- Language: Go 1.26+
- TUI Framework: Bubble Tea
- Styling & Widgets: Lip Gloss & Bubbles
- Integrations:
git& GitHub CLI (gh)
Interested in contributing? See CONTRIBUTING.md for details on setting up your development environment, build & test workflow, commit conventions, and debugging tips.
