Repr uses gitDocumentation Index
Fetch the complete documentation index at: https://repr.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
post-commit hooks to automatically queue commits for story generation. Hooks run silently after each commit—no interruptions, no network calls, just quiet tracking.
How It Works
When you install a hook:- Hook installed -
reprcreates.git/hooks/post-commitin your repo - You commit - Git triggers the hook after each commit
- Commit queued - Hook adds commit SHA to
~/.repr/queue - You generate - Run
repr generateto turn queued commits into stories
Usage
Actions
install - Set up automatic tracking
Install the hook script in .git/hooks/post-commit.
Options:
--all- Install in all tracked repositories--repo <path>- Install in a specific repository
remove - Uninstall hooks
Remove the hook script from repositories.
Options:
--all- Remove from all tracked repositories--repo <path>- Remove from a specific repository
status - Check hook health
Check which repositories have hooks installed and view queue statistics.
Options:
--json- Output as JSON for scripting
queue - Internal command
Queue a specific commit (called by the git hook automatically).
Usage:
What Gets Queued?
The hook captures:- Commit SHA (full 40-character hash)
- Repository path
- Timestamp
- Commit diffs
- File contents
- Commit messages
repr generate, not during hook execution.
Hook Script
The installed hook is a simple bash script:- Runs in background (
&) - doesn’t slow down commits - Silent (
2>/dev/null) - never interrupts your workflow - Always exits 0 - never blocks commits even if repr fails
- No network calls - purely local file write
Workflow Examples
Daily Developer Flow
Selective Hook Usage
Maybe you want hooks on work projects but not personal ones:Pausing Auto-Tracking
If you want to pause hook-based tracking without removing hooks:Troubleshooting
Hook not running after commits
Check if it’s installed:Hook conflicts with existing post-commit
If you already have apost-commit hook, repr’s installer will warn you. You can:
Option 1: Merge manually
Queue not clearing after generate
The queue should auto-clear. If it doesn’t:repr doctor for diagnostics.
Hook making commits slow
Hooks run in the background and shouldn’t add noticeable latency. If commits feel slow:- Check disk I/O - the hook writes a small file
- Check if
~/.repr/queueis huge (>10k entries) - this shouldn’t happen - Run
repr doctorto check for issues
Security & Privacy
What hooks can’t do:- ✗ Make network requests
- ✗ Read file contents
- ✗ Access environment variables
- ✗ Modify your repository
- ✗ Send data anywhere
- ✓ Read commit SHA from git
- ✓ Write SHA to
~/.repr/queue(local file) - ✓ Exit immediately
Related Commands
repr generate- Process queued commits into storiesrepr repos pause/resume- Control auto-tracking per reporepr doctor- Diagnose hook issues

