Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git with Raycast AI

Automate git using Raycast AI!

Installation

Homebrew

brew install jag-k/tap/git-raycast

Manual

Download latest build from Releases and install it in any directory in your PATH.+

Usage

git-raycast
# OR
git raycast

Supported commands

Commit message changes

By default, message generates a commit message from staged changes. If nothing is staged, it falls back to unstaged changes:

git-raycast message

Use --changes to select changes explicitly:

git-raycast message --changes stage   # staged changes only
git-raycast message --changes unstage # unstaged changes only
git-raycast message --changes all     # both, labeled as separate sections

Set the default globally or for the current repository with Git config:

git config --global git-raycast.message-changes stage
git config git-raycast.message-changes all

The --changes flag takes priority over Git config, including when explicitly set to auto.

Raycast version

By default, git-raycast opens commands in stable Raycast:

git-raycast message

For Raycast beta, use:

git-raycast --raycast-version beta message
# OR
GIT_RAYCAST_VERSION=beta git-raycast message
# OR
git config --global git-raycast.raycast-version beta

Settings priority is: CLI argument or flag, environment variable, Git config, default value.

Raycast beta uses the raycast-x:// scheme and expects command arguments as URL-encoded JSON. The decoded arguments payload is:

{"diff":"..."}

Which is opened as:

raycast-x://extensions/raycast/ai/{command-name}?arguments=%7B%22diff%22%3A%22...%22%7D

For stable Raycast, the argument is passed as plain text in arguments.

Command names can also be configured with Git config:

git config --global git-raycast.message-name git-commit-message
git config --global git-raycast.summary-name daily-summary
git config --global git-raycast.mr-pr-summary-name mr-pr-summary
git config --global git-raycast.message-changes auto

Omit --global to set a value only for the current repository.

Development

Requirements:

  • Go version 1.22 or higher

Install dependencies:

go mod download

Build:

go build -o ./bin/git-raycast ./git-raycast

Run:

./bin/git-raycast
# or
go run ./git-raycast

License

MIT

About

Automate git using Raycast AI

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages