Skip to main content

jetsam

PyPI Docs CI

Git workflow accelerator for humans and agents.

Jetsam wraps common multi-step git workflows into single, plannable commands. Every action generates a preview plan before executing, making it safe for interactive use and ideal for AI agent integration via MCP.

Documentation | PyPI | GitHub

Installation

pip install jetsam-mcp
# or
uv pip install jetsam-mcp

Quick start

# Initialize in a repo
jetsam init

# Check status
jetsam status

# Stage + commit
jetsam save -m "fix parser bug"

# Full pipeline: stage → commit → push → PR
jetsam ship -m "add dark mode"

# Tag and release
jetsam release v0.1.0 --title "First release"

Every command shows a plan and asks for confirmation before executing. Use --dry-run to preview without executing, or --execute to skip the prompt.

Verb reference

Verb Alias Description
status s Show repository state snapshot
save v Stage and commit with smart defaults
sync y Fetch, rebase/merge, and push
ship h Full pipeline: stage, commit, push, open PR
switch w Switch branches with automatic stash/unstash
start b Start work on an issue or feature (branch or worktree)
finish f Merge PR and clean up branch
tidy t Prune merged branches and stale remote refs
release r Tag, push tag, and create platform release
log l Condensed commit history
diff d Show diff with smart defaults
pr p Pull request operations (view/create/list)
prs List PRs with check and review status
checks c Show CI check status
issues i List issues from project tracker
init Initialize jetsam in a repo

Common flags

All workflow verbs (save, sync, ship, switch, start, finish, tidy, release) support:

  • --dry-run — show plan without executing
  • --execute — execute without prompting
  • --json (global) — output as JSON

Key verb options

save [-m MESSAGE] [--include GLOB] [--exclude GLOB] [FILES...]

ship [-m MESSAGE] [--to BRANCH] [--no-pr] [--merge] [--include GLOB] [--exclude GLOB] [FILES...]

sync [--strategy rebase|merge]

switch BRANCH [-c/--create]

start TARGET [-w/--worktree] [--base BRANCH] [--prefix PREFIX]

finish [--strategy squash|merge|rebase] [--no-delete]

release TAG [--title TITLE] [--notes NOTES] [--draft]

MCP integration

Jetsam includes a built-in MCP server for agent integration:

# Full agent setup: MCP config + routing instructions + warning hooks
jetsam init --mcp --agents claude --hooks claude

# Or just the MCP server config
jetsam init --mcp

This creates .mcp.json for automatic MCP discovery, CLAUDE.md with a routing table that teaches agents to use jetsam tools instead of raw git/gh, and warning hooks that alert agents when they bypass jetsam.

The MCP tools mirror CLI verbs with a plan → confirm flow:

  1. Call a workflow tool (e.g. save, ship, release) — returns a plan
  2. Optionally call modify_plan to adjust the plan
  3. Call confirm to execute, or cancel to discard

Additional MCP tools for PR interaction: pr_comment, pr_review, pr_comments, issue_close.

Shell aliases

Install short aliases for common operations:

jetsam init --aliases

This adds the following aliases to your shell config:

Alias Command
jt jetsam
jts jetsam status
jtv jetsam save
jty jetsam sync
jth jetsam ship
jtp jetsam ship --pr
jtw jetsam switch
jtl jetsam log
jtd jetsam diff

Worktree support

Jetsam supports git worktrees for parallel development:

# Start work in a new worktree
jetsam start my-feature --worktree

# Finish and clean up the worktree
jetsam finish

Shared paths

Create a .git-worktree-shared file in the repo root to automatically symlink paths into new worktrees (one path per line):

.env
node_modules
.venv

Lines starting with # are ignored.

Configuration

Jetsam stores its configuration in .jetsam/ at the repo root:

Path Purpose
.jetsam/ Config directory (created by init)
.jetsam/plans/ Temporary plan storage (5-minute TTL)
.mcp.json MCP server config (created by init --mcp)
.git-worktree-shared Paths to symlink into worktrees

Platform support

Jetsam auto-detects GitHub and GitLab from remote URLs:

Git pass-through: any unrecognized command is forwarded to git, so jetsam log --oneline works exactly like git log --oneline.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jetsam_mcp-1.1.4.tar.gz (139.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jetsam_mcp-1.1.4-py3-none-any.whl (69.0 kB view details)

Uploaded Python 3

File details

Details for the file jetsam_mcp-1.1.4.tar.gz.

File metadata

  • Download URL: jetsam_mcp-1.1.4.tar.gz
  • Upload date:
  • Size: 139.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jetsam_mcp-1.1.4.tar.gz
Algorithm Hash digest
SHA256 62cfb94757253138016e5d7d12f23accc4f4b55e8bfc5b99f51ed2151f9443b9
MD5 643c9ffa90fe165a0570680a79491862
BLAKE2b-256 b9683ce01240f2fed8b89e03f6ac6a61c66a70881d12c40e1437f47bf04a2a4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for jetsam_mcp-1.1.4.tar.gz:

Publisher: publish.yml on teaguesterling/jetsam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jetsam_mcp-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: jetsam_mcp-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 69.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jetsam_mcp-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6d9aa32d9aa524afca5839c5b675733b64decdcdae10f35544d2a0cedee5008d
MD5 2f04858ab07b7a52112973d7c7fe1ce0
BLAKE2b-256 4351e7a4e4c3a3e0833f126c5b35be91d9a7fc7092b4fd25f3de054b4d930a8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for jetsam_mcp-1.1.4-py3-none-any.whl:

Publisher: publish.yml on teaguesterling/jetsam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.2.1

2 files

1.1.7

2 files

1.1.6

2 files

1.1.5

2 files

This release

1.1.4 This release

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

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