Authorization notice. Star CLI is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA developer with uncommitted edits in a git repository who wants a clear diff review and a commit message without writing it by hand.
The problemReviewing changes and writing a clean commit message takes attention, especially at the end of a long coding session.
The outcomeA reviewed diff and a Conventional Commits message ready to use in git.
What you need first
- Node.js 20 or newer
- pnpm, only if you build from source
- An API key for an OpenAI, Anthropic, or OpenAI-compatible provider, set via /connect or config.toml
Steps
- Install the CLI with
npm install -g @cryer/star-cli. - Change into your git repository and start the REPL with
star. - Type
/diffto see the colored working-tree diff. - Type
/committo have the agent draft a Conventional Commits message from the changes. - Read the draft, edit it if needed, and run your own git commit.
Prompt for your agent
Using the cryer/star-cli repo, run `star` inside <repo-path>, enter `/diff` and then `/commit`, and report the drafted commit message. Verify that the message follows the Conventional Commits format before anyone uses it.
Caveat. The model features need a configured provider first, because /commit depends on the active model.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page