CLI for creating agent-friendly workspaces inside a git repo.
This is a standard pyproject.toml project. With uv:
uv tool install .Or run ad-hoc:
uv run sprig --helpsprig init: run from the repo root. Ensures.workspaces/is listed in.gitignorefor safe workspace usage.sprig new <name>: run from the repo root. Fetchesorigin/<branch>, creates a git worktree on branchworkspace/<name>(configurable via-w), scaffolds.workspaces/<name>, updates.gitignore, and runsmake setupunless skipped.sprig list: run from the repo root to list workspaces.sprig clean <name>: run from the repo root to remove a workspace (prompted unless--yes).sprig branch status: run from inside a workspace to see repo + git status.sprig branch clean: run from inside a workspace to get a safe removal hint.
--branch/-borAGENT_WS_BRANCHto choose pull target (defaultmain).--no-setuporAGENT_WS_SKIP_SETUP=1to skipmake setup.AGENT_WS_SKIP_GIT=1to skip git pull/clean (useful in CI/tests only).--forceto ignore dirty tree and overwrite an existing workspace.--quietto reduce output fromsprig new.