generate command is the core of repr. It analyzes your git history and uses an LLM to write stories—turning raw commits into professional narratives.
Usage
Options
How It Works
- Selects commits - From specific SHAs (
--commits), a timeframe (--since,--days), or defaults to last 90 days - Analyzes changes - Reads diffs to understand what actually changed
- Generates narrative - LLM writes a story using your chosen template
- Saves locally - Story saved to
~/.repr/stories/<id>.md
--cloud.
Examples
Basic Generation
Generate using local LLM:Use a Specific Template
Generate interview-ready stories with STAR format:- Situation: Context and problem
- Task: What needed to be done
- Action: How you solved it
- Result: Measurable impact
Generate from a Specific Timeframe
Control the time range for commit selection:- ISO dates:
2024-01-01,2024-06-15 - Day names:
monday,tuesday, etc. (previous occurrence) - Relative:
3 days ago,2 weeks ago,1 month ago - Keywords:
yesterday,today,last week,last month
Generate from Specific Commits
Target exact commits instead of using recent history:Generate for One Project
Focus on a single repository:Add Custom Context
Guide the LLM with additional instructions:Preview Before Generating
See what would be sent to the LLM without actually generating:Templates Comparison
Batch Sizes
The--batch-size option controls how many commits are grouped into one story:
- Small (3-5): More stories, focused scope. Good for daily/weekly reviews.
- Medium (5-10): Balanced. Good for feature work.
- Large (10-20): Comprehensive stories. Good for project summaries.
Privacy Modes
Local-Only (Maximum Privacy)
- ✅ Diffs processed by local LLM (Ollama/LocalAI)
- ✅ Zero data leaves your machine
- ✅ Works in air-gapped environments
- ✅ Free, no API costs
Cloud (Managed)
- ⚠️ Requires
repr login - ⚠️ Diffs sent to repr.dev for processing
- ✅ No local LLM needed
- ✅ Fast, optimized models
BYOK (Bring Your Own Key)
- ✅ Diffs sent directly to your API provider (OpenAI, Anthropic, etc.)
- ✅ repr.dev never sees your data
- ✅ Your API key, your costs
- ✅ Keys stored in OS keychain
Token Limits
For cloud generation, repr enforces limits to control costs:- Max commits per batch: 50 (configurable)
- Token limit: ~100k tokens per batch
- Show you the split plan
- Ask for confirmation
- Process in multiple batches
Troubleshooting
”Local LLM not found”
Install Ollama and pull a model:“No repositories tracked”
Initialize repr first:Generation is slow
- Use
--batch-size 3for smaller stories - Try a lighter model:
ollama pull phi3 - Use cloud generation instead
Stories are too technical/brief
Add a custom prompt:Related Commands
repr stories- View generated storiesrepr story view <id>- Read a specific storyrepr review- Interactive review workflowrepr push- Publish stories to repr.dev

