What do you want to do?
4 use cases
-
Review working-tree changes and draft a commit message
Use /diff to read colored changes, then /commit to draft a Conventional Commits message.
- Star CLI
- Software and DevOps
- Intermediate
View prompt
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.
-
Plan a change read-only before any file is edited
Run plan mode so the agent researches without writing and waits for your approval.
- Star CLI
- Software and DevOps
- Intermediate
View prompt
Using the cryer/star-cli repo, set permissionMode to plan in ~/.star-cli/config.toml, run `star` in <project-dir> with the request <task>, and report the plan it produces. Verify that no files changed before approval by checking `git status`.
-
Call the agent from a shell script with print mode and JSON
Run one prompt with star -p and --json, then parse the NDJSON output in a script.
- Star CLI
- Software and DevOps
- Advanced
View prompt
Using the cryer/star-cli repo, write a shell script that runs `star -p "<prompt>"` with --json and writes the output to <output-file>. Verify that every output line parses as valid JSON.
-
Resume a past agent session and export it to Markdown
Reopen a saved session with /resume or star -r, then save it as Markdown with /export.
- Star CLI
- Software and DevOps
- Intermediate
View prompt
Using the cryer/star-cli repo, run `star -r` in <project-dir>, select the session for <task>, then run `/export`. Report the exported file path and verify that the file opens as Markdown.
How to use Star CLI
- Check you have what it needs: 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.
- Open cryer/star-cli on GitHub and read the README and license.
- 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.
These steps come from our top use case, Review working-tree changes and draft a commit message, which also has a copy-paste agent prompt.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeStar CLI alternatives · Best AI repos for Software and DevOps
About this repo
- Who it is forDevelopers who work in git repositories and want an AI agent in the terminal with permission control over file edits and shell commands.
- Why it is hot
- LanguageTypeScript
- Sourcegithub.com/cryer/star-cli · Back to Hot repos
Requirements
- 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
Maintain Star CLI? Add the Featured on Deduped badge
Paste this into your README:
[](https://dedupedai.com/use-cases/cryer-star-cli/?ref=badge)
Questions about Star CLI
What is Star CLI?
A TypeScript command-line interface for AI agents that connects to several LLM providers, runs file, shell, and web tools behind a permission gate, and saves sessions. It is an open-source project on GitHub: https://github.com/cryer/star-cli.
Who is Star CLI for?
Developers who work in git repositories and want an AI agent in the terminal with permission control over file edits and shell commands.
What can I do with Star CLI?
4 use cases so far, for example: Review working-tree changes and draft a commit message; Plan a change read-only before any file is edited; Call the agent from a shell script with print mode and JSON. Each has steps and a copy-paste agent prompt.
What do I need to run Star CLI?
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.
What are alternatives to Star CLI?
Other hot AI repos in Software and DevOps: Harness2, iFixAi, Orca, Diagram Design, AI Memory.
Is Star CLI safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.