{"id":50373656,"url":"https://github.com/barturba/sp","last_synced_at":"2026-05-30T08:30:20.945Z","repository":{"id":357722988,"uuid":"1238266245","full_name":"barturba/sp","owner":"barturba","description":"A fast terminal cockpit for git-worktree and agent-heavy development.","archived":false,"fork":false,"pushed_at":"2026-05-14T01:40:14.000Z","size":6620,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-14T03:23:16.619Z","etag":null,"topics":["developer-tools","git","ratatui","rust","tui","worktrees"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barturba.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-14T01:08:54.000Z","updated_at":"2026-05-14T01:40:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/barturba/sp","commit_stats":null,"previous_names":["barturba/sp"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/barturba/sp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barturba%2Fsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barturba%2Fsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barturba%2Fsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barturba%2Fsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barturba","download_url":"https://codeload.github.com/barturba/sp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barturba%2Fsp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33686018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["developer-tools","git","ratatui","rust","tui","worktrees"],"created_at":"2026-05-30T08:30:20.342Z","updated_at":"2026-05-30T08:30:20.939Z","avatar_url":"https://github.com/barturba.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sp\n\n`sp` is a fast terminal cockpit for developers who run a lot of parallel work in git worktrees.\n\nIt watches agent branches, shows what is ready to merge, keeps dirty work obvious, and gives you a few high-leverage keys for the daily loop:\n\n- `m` merge the selected worktree\n- `M` merge every ready worktree\n- `u` rebase all worktrees onto the base branch\n- `d` run your deploy command\n- `r` refresh\n- `q` quit\n\nIt is intentionally small: no daemon, no database, no SaaS, no hidden state. It shells out to `git`, renders a compact Ratatui interface, and stays responsive by doing expensive status polling off the UI thread.\n\n![sp terminal dashboard](assets/screenshot.png)\n\n## Why\n\nMost git tools are built around one branch at a time. My actual programming loop often looks like this:\n\n1. Spawn a few focused agents in separate worktrees.\n2. Let them work independently.\n3. Watch which branches are ready, dirty, stale, or blocked.\n4. Merge clean work in order.\n5. Rebase everything against `main`.\n6. Deploy when the base checkout is clean.\n\n`sp` makes that loop visible at a glance. It is the sort of tool you build when you like programming enough to remove the tiny frictions around programming.\n\n## Install\n\n```bash\ncargo install --path .\n```\n\nFrom GitHub:\n\n```bash\ncargo install --git https://github.com/barturba/sp\n```\n\nOr run from a checkout:\n\n```bash\ncargo run --release --bin sp\n```\n\n## Quick Start\n\nFrom any git repository:\n\n```bash\nsp\n```\n\nFor scriptable output:\n\n```bash\nsp --once\n```\n\nPoint it at another checkout:\n\n```bash\nsp --repo ~/code/my-app --base main\n```\n\n## Configuration\n\n`sp` auto-discovers worktrees with `git worktree list --porcelain`. Add `sp.toml` at the repo root when you want stable labels, explicit branch order, or deploy support:\n\n```toml\nbase_branch = \"main\"\ndeploy_command = \"bin/deploy\"\n\n[[worktree]]\nlabel = \"agent-A\"\nbranch = \"agent/A\"\npath = \"../my-app-worktrees/agent-A\"\n\n[[worktree]]\nlabel = \"agent-B\"\nbranch = \"agent/B\"\npath = \"../my-app-worktrees/agent-B\"\n\n[[worktree]]\nlabel = \"agent-annotations\"\nbranch = \"agent/annotations\"\npath = \"../my-app-worktrees/agent-annotations\"\n```\n\n## Safety Model\n\n`sp` is deliberately conservative.\n\n- Merge is blocked if the base checkout is not on the base branch.\n- Merge is blocked if the base checkout is dirty.\n- Merge is blocked if the selected worktree is dirty, missing, or on the wrong branch.\n- Merge first rebases the target branch onto the base branch.\n- Fast-forward merges are preferred.\n- Non-fast-forward clean merges are committed with Git's merge message.\n- Conflicted merges and rebases are aborted and reported.\n- Rebase-all stashes dirty worktrees before rebasing, then restores the stash.\n\nThis is not magic. It is boring git automation with sharp edges rounded off.\n\n## Demo Repo\n\nCreate a disposable demo repository with two agent worktrees:\n\n```bash\nscripts/demo-repo.sh /tmp/sp-demo\ncd /tmp/sp-demo/repo\nsp\n```\n\n## Development\n\n```bash\ncargo fmt --check\ncargo test\ncargo clippy -- -D warnings\n```\n\nThe TUI is built with:\n\n- Rust\n- Ratatui\n- Crossterm\n- Clap\n\n## Name\n\n`sp` is short because tools you run all day should be short. Read it as \"ship panel\", \"status panel\", or just a tiny command that helps you keep moving.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarturba%2Fsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarturba%2Fsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarturba%2Fsp/lists"}