Quick Start
Generate your first AI-powered commit message in under 60 seconds.
Prerequisites
- Git-Iris installed (Installation Guide)
- LLM provider API key (Configuration Guide)
1. Configure Your API Key
Pick your provider and set the API key:
OpenAI:
git-iris config --provider openai --api-key sk-...Anthropic:
git-iris config --provider anthropic --api-key sk-ant-...Google:
git-iris config --provider google --api-key AIza...Your configuration is saved to ~/.config/git-iris/config.toml and works across all repositories.
2. Make Some Changes
Navigate to any Git repository and stage changes:
cd your-project
# Make changes to files
git add .Git-Iris needs staged changes to generate a commit message.
3. Generate a Commit Message
Run the magic command:
git-iris genIris will:
- Analyze your staged changes
- Explore relevant files using her tool arsenal
- Generate a contextual commit message
- Open Studio in Commit mode
What You'll See:
- Your staged files in the left panel
- A live diff view showing changes
- An AI-generated commit message ready for review
- Real-time token streaming as Iris thinks
4. Review and Commit
In Studio:
| Action | Key |
|---|---|
| Edit message | e |
| Chat with Iris | / |
| Commit changes | c |
| Change emoji | m |
| Switch preset | p |
Press c to commit, or e to edit the message manually.
Alternative: Print to Stdout
For automation or scripting:
git-iris gen --printThis outputs the commit message without starting Studio.
Auto-commit (use with caution):
git-iris gen --auto-commitWhat Just Happened?
Iris didn't just pattern-match your diff. She:
- Used
git_diff()to understand what changed - Called
file_analyzer()to examine file metadata - Ran
code_search()to find related patterns - Analyzed
git_log()to match your commit style - Generated a message that captures why the change matters
This is agent-first intelligence. Iris gathers precisely what she needs via tool calls.
Explore Studio
Launch Studio directly to access all modes:
git-iris studioTry these modes:
- Explore Mode (
Shift+E) — Navigate code with semantic blame - Review Mode (
Shift+R) — Get AI code reviews - PR Mode (
Shift+P) — Generate pull request descriptions - Changelog Mode (
Shift+L) — Create changelogs between refs
Press / in any mode to chat with Iris. Ask her to refine content, explain changes, or answer questions.
Customize Your Experience
Use a Different Style Preset
git-iris gen --preset conventional
git-iris gen --preset detailed
git-iris gen --preset cosmic # For the mystically inclinedList all presets:
git-iris list-presetsDisable Gitmoji
git-iris gen --no-gitmojiOr disable globally:
git-iris config --gitmoji falseAdd Custom Instructions
Per-commit:
git-iris gen -i "Mention the ticket number and performance impact"Globally:
git-iris config --instructions "Always include JIRA ticket in commit messages"Next Steps
You've generated your first AI commit. Now explore:
- Configuration Guide — Deep dive into settings and providers
- Iris Studio — Learn all six Studio modes
- User Guide — Master commits, reviews, changelogs, and more
Press ? in Studio to see all keyboard shortcuts.
