Skip to main content

spin-up

Start a new project in one command: create the directory, drop in a placeholder README.md, git init, commit, create a private GitHub repo, push, and then launch your coding agent inside it.

$ spin-up claude ~/Projects/local-ai-library
Created https://github.com/you/local-ai-library (private)
# ...and Claude Code starts in ~/Projects/local-ai-library

Requirements

  • Python 3.10+
  • git
  • the GitHub CLI (gh), authenticated (gh auth login). spin-up checks this on every run, and creates repos under the account gh is logged in as, so there is no owner to configure
  • whichever coding agent(s) you want to launch

Install

The PyPI package is spin-up-dev-project; the command it installs is spin-up.

uv tool install spin-up-dev-project      # or: pipx install spin-up-dev-project

Configure agents

Create ~/.config/spin-up mapping a key to the command that starts your agent, one per line (blank lines and # comments are ignored):

claude: claude --dangerously-skip-permissions
cursor: cursor-agent

Usage

spin-up [-y] [-q] [--owner OWNER] <agent> <directory> [<name>]
Argument Meaning
agent A key from ~/.config/spin-up.
directory The directory to create. It must not already exist. Its basename is the repo name.
name Optional title for the README's # H1. Defaults to the directory name.
--owner GitHub owner for the new repo. Defaults to the user gh is logged in as.
-q, --quiet Don't print progress messages.
-y, --yes Don't ask for confirmation when possibly-related repos are found.

What it does, in order:

  1. Checks the agent is configured and its command is on PATH, that the directory doesn't exist, and that gh is authenticated. Nothing is created if any check fails.
  2. Lists your GitHub repos and looks for ones that might be related (see below). If any are found it prints them and asks Continue with spin-up of <directory>?.
  3. Creates the directory and README.md, runs git init -b main, and commits.
  4. Creates the private repo <owner>/<directory-name> and pushes.
  5. If run inside herdr (HERDR_WORKSPACE_ID is set), renames the current workspace to <name> if given, else the directory name. A failure here is only a warning.
  6. Replaces itself with the agent command, running in the new directory.

To avoid starting a project you already have, the directory name is split on -, _, . and spaces; words are lower-cased and singularised (libraries → library); common stop words (the, a, of, and, …) are dropped. Any existing repo whose name shares at least one remaining word is listed as possibly related. Only repo names are compared, and singularisation is a small rule-based English heuristic rather than a full dictionary.

Development

uv run --with pytest --with-editable . pytest

The tests use real git and a fake gh on PATH, so they never touch GitHub.

Licence

MIT

Metadata

Release files for spin-up-dev-project 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spin-up-dev-project 0.2.0
File Size Uploaded Provenance Actions
spin_up_dev_project-0.2.0.tar.gz 9.2 kB Without provenance Details for spin_up_dev_project-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spin-up-dev-project 0.2.0
File Interpreter ABI Platform Actions
spin_up_dev_project-0.2.0-py3-none-any.whl Python 3 none any Details for spin_up_dev_project-0.2.0-py3-none-any.whl

Total release size: 17.3 kB

Release files / spin_up_dev_project-0.2.0.tar.gz

Download URL spin_up_dev_project-0.2.0.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ccbe095f00c57bcb6ad97d839402fa25006a1c565a9e40319f295509bdc10fa9
BLAKE2b-256 checksum
How to use checksums
9782b87717af69083e065084881a739edc01aef3ca3dd295f188f9e353e1ce4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.9

Release files / spin_up_dev_project-0.2.0-py3-none-any.whl

Download URL spin_up_dev_project-0.2.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcea38f0f5d9366c8e0aa3e6df52d846306dc80289d8fc1e55f8deb35b4e3a1a
BLAKE2b-256 checksum
How to use checksums
e3b63a293c23ce111aa41936eaf5594fea1bd485cc7480c77cbffec4d895159c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.9

Security for spin-up-dev-project 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page