TheDocumentation Index
Fetch the complete documentation index at: https://repr.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
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
| Option | Description | Default |
|---|---|---|
--local, -l | Use local LLM (Ollama/LocalAI) | Auto (if not signed in) |
--cloud | Use cloud LLM (requires login) | Auto (if signed in) |
--template <name>, -t | Template: resume, changelog, narrative, interview | resume |
--repo <path> | Only generate for specific repository | All tracked repos |
--commits <shas> | Comma-separated commit SHAs to generate from | Recent commits |
--since <date> | Generate from commits since date (e.g., 2024-01-01, monday, 2 weeks ago) | - |
--days <n> | Generate from commits in the last N days | 90 |
--batch-size <n> | Number of commits to group into one story | 5 |
--dry-run | Preview what would be sent without saving | - |
--prompt <text>, -p | Append custom instructions to the LLM | - |
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
| Template | Best For | Style | Example |
|---|---|---|---|
resume | Portfolios, performance reviews | Action verbs, impact-focused | ”Optimized database queries by 40%…” |
changelog | Release notes, sprint summaries | Categorized bullets (Added/Fixed/Changed) | “Fixed: Race condition in auth flow” |
narrative | Blog posts, case studies | Storytelling, problem-solving journey | ”We started by identifying a bottleneck…” |
interview | Job interviews, promotions | STAR format (Situation/Task/Action/Result) | “Result: Reduced failures by 60%“ |
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

