← All projects

Developer tools

Rail

GitHub

A Python CLI and API for routine Git workflows, from creating a branch or worktree to preparing a pull request and completing a release.

  • Python
  • CLI
  • Pydantic
  • Git
  • GitHub CLI

Key features

  • Create branches and isolated worktrees from the freshly fetched integration branch.
  • Run repository-defined checks with per-command retries.
  • Finalize a feature with rebase, checks, a single commit, push, and pull request creation or reuse.
  • Merge a pull request, with optional version tagging and branch and worktree cleanup.
  • JSON output and a Python API for integration with coding agents and development tools.

Used by Forge

Forge uses Rail to create task worktrees, validate and publish changes, and merge approved pull requests with tagging and cleanup. Forge coordinates execution and review; Rail handles the Git workflow.