Qmmit Documentation
Automatic AI prompt tracking via git hooks. Zero workflow changes.
curl -fsSL https://aicommit.space/install.sh | bashcd your-project && qmmit initgit commit & git push work automaticallyThat's it. Use git commit and git push normally. Prompts are captured and synced automatically.
Table of Contents
1. Installation
No Docker, no Node.js required. One command.
# macOS / Linuxcurl -fsSL https://aicommit.space/install.sh | bash# Windowsirm https://aicommit.space/install.ps1 | iex# npmnpm install -g @qmmit/cli
2. Enable Tracking
Run once per repo. Detects your AI tools, installs git hooks, imports past sessions.
cd your-projectqmmit init# Output:# ✔ Found Claude Code, Cursor, Kiro, Copilot# ✔ Post-commit hook installed# ✔ Pre-push hook installed# ✔ 47 prompts imported from past sessions# Your heatmap already has data!
Then connect to the platform:
qmmit login
3. Automatic Tracking
After qmmit init, tracking is invisible. Use your normal git workflow:
# Use AI tools normally...# Then commit as usual:git commit -m "feat: add auth"# [qmmit] 3 prompts tracked (claude-code, cursor) → a3f9c12# Push as usual:git push# [qmmit] 3 prompts synced → aicommit.space/you
The post-commit hook reads session files from your AI tools, filters by repo path and timestamp, and links prompts to the commit. The pre-push hook syncs to the dashboard. Both are non-blocking — if they fail, git still works normally.
4. Manual Tracking (qmmit add)
For web tools (ChatGPT, Gemini web) that don't leave local session files:
qmmit add "designed the DB schema"qmmit add "generated test cases" --model chatgpt-4oqmmit add "debugged race condition" --commit f7e8d9c# Buffered until next git commit, then auto-linked
5. Git Hooks
Qmmit installs two git hooks:
post-commitScans AI tool sessions, matches prompts to commit by timestamp window, stores locallypre-pushSyncs unsynced prompts to the platform APIBoth hooks call qmmit _hook internally. They always exit 0 — never block git. If you use husky or lefthook, Qmmit appends to existing hooks.
6. CLI Commands
Setup
qmmit initOne-time setup: detect tools, install hooks, import sessionsqmmit disableRemove hooks (data stays on dashboard)qmmit loginAuthenticate with platformqmmit statusShow tracking status, detected tools, statsTracking
qmmit add "text"Manually log a prompt (for web tools)qmmit add --model chatgpt-4oSpecify modelqmmit add --commit SHALink to a specific past commitqmmit logView prompt historyqmmit show HEADPrompts matched to last commitqmmit pushForce sync prompts to platform nowqmmit push --dry-runPreview what will syncPrivacy
qmmit privacyInteractive privacy managerqmmit scanScan for secrets before pushqmmit redact <id>Redact sensitive contentqmmit set-private <id>Make prompt private7. Prompt-to-Commit Matching
Prompts are linked to commits using a weighted scoring algorithm:
Prompts between previous commit and current commit timestamp
Files referenced in prompt match files changed in commit
Prompt words appear in commit message or diff
AI response code appears in git diff
Same session as prior matched prompt
8. Privacy & Security
All data stays local until you push. Secret scanning runs before sync.
qmmit scan # check for API keys, passwordsqmmit redact <id> # redact sensitive contentqmmit push --review # approve each prompt before sync
9. Supported AI Tools
10. Dashboard & Profiles
Your profile at aicommit.space/username shows: AI contribution heatmap, model breakdown, prompt timeline, streak counter, and project-level stats.