@rizumita/devstart-cli
v0.1.1
Published
Devstart CLI is a TypeScript tool that scaffolds working branches and git worktrees straight from GitHub Issues or PRs, then starts your preferred editor or automation runner. All you need locally is `node` + `pnpm`.
Readme
Devstart CLI
Devstart CLI is a TypeScript tool that scaffolds working branches and git worktrees straight from GitHub Issues or PRs, then starts your preferred editor or automation runner. All you need locally is node + pnpm.
日本語ドキュメントは
README.ja.mdを参照してください。
Key Features
devstart <issue|pr>automatically createsissue/<number>branches or reuses the PR headdevstart issues/devstart prsoffers an interactive picker (requires theghCLI)- Places git worktrees under
<repo>.worktrees/, with--in-placeto reuse the current clone - Launches VS Code or Cursor, and forwards custom arguments to
codex/clauderunners
Setup
pnpm install- Recommend Node.js 18+ and pnpm 10.18+
- Assumes
gh auth statusandgit worktree listsucceed on your machine
Build & Test
pnpm build # TypeScript -> dist/
pnpm test # Vitest
pnpm start -- --help # Inspect the CLI help with the latest buildAlways run pnpm build to emit dist/index.js before invoking pnpm start.
Usage
pnpm start -- --help
# Example: interactively pick an issue and open VS Code
pnpm start -- issues --vsc
# Example: switch branches in the existing repo without a worktree
pnpm start -- 123 --in-place
# Example: run with codex runner and forward extra arguments
pnpm start -- 456 --codex=--model=gpt-4 --codex-arg "--max-tokens=2000"Common flags:
--vsc,--cursor: open the prepared worktree in the specified editor--codex[=value],--claude[=value]: enable runners and set their primary argument--codex-arg <value>,--claude-arg <value>: pass additional runner arguments (repeatable)--shell[=path],--shell-arg <value>: launch an interactive shell inside the worktree (defaults to$DEVSTART_SHELL,$SHELL, or/bin/bash)--version,-V: print the CLI version and exit--in-place: skip creating a worktree and only switch the current repo branch
Development Flow
- Run
pnpm build && pnpm test - Apply your changes inside the worktree, then rerun
devstartto relaunch runners or editors - Commit with Conventional Commit prefixes (e.g.,
feat: ...,fix: ...)
See AGENTS.md for the full contribution guide.
