Gitrama is a CLI tool that brings AI-powered semantic search and intelligence to your Git history. It includes AskGIT, an embedded AI assistant that understands your entire repo context.
All AI processing is handled server-side via api.gitrama.ai. No API keys required — just install and use.
Ask natural language questions about your repository:
Command: gtr chat
AskGIT automatically gathers context from 10 git subprocess calls (branch info, recent commits, diffs, contributors, file tree) and sends that context to api.gitrama.ai for intelligent analysis.
Generate conventional commit messages from staged changes:
git diff --stagedCommand: gtr commit
Generate clean, descriptive branch names from a task description:
Command: gtr branch
Get AI-powered analysis of your repository:
Command: gtr chat then ask about repo insights
Gitrama is distributed via PyPI:
pip install gitrama
Verify installation:
gtr version
No API keys or configuration needed. Gitrama connects to api.gitrama.ai for all AI processing out of the box.
Optional configuration available via:
gtr config
When the user asks about git history or repo context, run the appropriate gitrama command:
# Start an interactive chat about the repo
gtr chat
# Generate a commit message for staged changes
gtr commit
# Generate a branch name
gtr branch "add user authentication with OAuth"
# Quick shortcuts
gtr c # alias for commit
gtr b # alias for branch
gtr ch # alias for chat
Local CLI (gtr) → gathers git context locally → POST to api.gitrama.ai → AI response
If gtr is not found after install:
# Ensure pip scripts are on PATH
python3 -m gitrama --version
If connection errors occur:
# Verify api.gitrama.ai is reachable
curl -s https://api.gitrama.ai/health
共 1 个版本