Project system
GIQ
AI-enhanced Git workflow assistant that keeps normal Git semantics intact.
What it does
GIQ wraps Git commands, reads staged diffs, asks OpenAI or Azure OpenAI for commit message suggestions, and lets the developer choose through a terminal UI.
System map
- 1
Git Repo
Staged files and cached diff
- 2
GIQ CLI
Cobra commands and passthrough
- 3
Config
OpenAI or Azure OpenAI
- 4
AI Provider
Generate commit options
- 5
Bubble Tea UI
Pick or write message
- 6
Git Commit
Executes system git
Git Repo
Staged files and cached diff
Codebase read
- Unknown commands pass through to the system git binary, so the wrapper does not trap users in a custom workflow.
- Commit generation uses staged file names plus cached diff content to keep the model focused.
- The TUI presents multiple suggestions while preserving a custom-message fallback.
Key snippet
diff, _ := a.GetDiff()
files, _ := a.GetStagedFiles()
suggestions, err := ai.GenerateCommitMessages(
a.Config,
promptFrom(files, diff),
)Tech used
GoCobrago-gitBubble TeaOpenAIAzure OpenAIViper
Source paths inspected
internal/app/app.gointernal/ai/ai.gointernal/cmd/commit.gointernal/config