AI-powered development log generator for git repositories
This guide will help you install and start using Devlog in minutes.
Before installing Devlog, ensure you have:
# Clone the repository
git clone https://github.com/ananno/devlog.git
cd devlog
# Build release binary
cargo build --release
# The binary will be available at target/release/devlog
./target/release/devlog --help
# Optional: Install to system path
cargo install --path .
# Clone the repository
git clone https://gitlab.com/aice/devlog.git
cd devlog
# Build release binary
cargo build --release
# The binary will be available at target/release/devlog
./target/release/devlog --help
# Optional: Install to system path
cargo install --path .
# Coming soon: Install directly from crates.io
cargo install devlog
If you only need local LLM support:
cargo build --release --no-default-features
This removes OpenAI and Anthropic dependencies, reducing binary size.
For privacy-first AI features, set up a local LLM:
# macOS/Linux
curl https://ollama.ai/install.sh | sh
# Or download from: https://ollama.ai
# Download llama3.2 (recommended, ~2GB)
ollama pull llama3.2
# Or use other models
ollama pull mistral
ollama pull codellama
ollama serve
The server runs on http://localhost:11434 by default.
devlog --llm ollama --llm-model llama3.2 --help
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
make
llama.cpp/models/ directory./server -m models/your-model.gguf -c 2048
Runs on http://localhost:8080 by default.
devlog --llm llamacpp --help
Let’s generate your first changelog!
cd /path/to/your/git/repository
git tag -l
Output example:
v1.0.0
v1.1.0
v2.0.0
# Between two versions
devlog --from v1.0.0 --to v2.0.0
# From version to current HEAD
devlog --from v2.0.0 --to HEAD
# Last 20 commits
devlog --limit 20
Output:
======================================================================
Development Log: v1.0.0 → v2.0.0
======================================================================
- [PR] feat(auth): add user authentication system (2024-01-05)
PR: #123
- [Merge] Merge pull request #125 from feature/dashboard (2024-01-08)
PR: #125, #126
- [Direct] refactor(auth): improve error handling (2024-01-10)
======================================================================
Summary: 3 units displayed
======================================================================
If you have Ollama installed:
devlog --from v1.0.0 --to v2.0.0 --llm ollama
Output with AI summaries:
======================================================================
Development Log: v1.0.0 → v2.0.0
======================================================================
- [PR] Add user authentication system (2024-01-05)
PR: #123
Summary: Implemented JWT-based authentication with secure token
handling and session management
- [Merge] Dashboard feature integration (2024-01-08)
PR: #125, #126
Summary: Integrated comprehensive dashboard with analytics, user
preferences, and responsive design
======================================================================
Summary: 2 units displayed
======================================================================
For detailed code change analysis:
devlog --from v1.0.0 --to v2.0.0 --llm ollama --diff-analysis
Output with diff analysis:
======================================================================
Development Log: v1.0.0 → v2.0.0
======================================================================
- [PR] Add user authentication system (2024-01-05)
PR: #123
• What changed: Implemented JWT-based authentication
• Summary:
- Added JWT token generation and validation
- Created login and logout endpoints
- Added middleware for protected routes
- Integrated bcrypt for password hashing
• Impact: Moderate
• Files: 8 files, +423/-12 lines
======================================================================
Summary: 1 unit displayed
======================================================================
# Generate release notes for v2.0.0
devlog --from v1.9.0 --to v2.0.0 \
--llm ollama \
--diff-analysis \
--output RELEASE_NOTES.md
# Create/update CHANGELOG.md
devlog --from v1.0.0 --to HEAD \
--llm ollama \
--output CHANGELOG.md
# High-level feature overview
devlog --from v1.0.0 --to v2.0.0 \
--llm ollama \
--diff-analysis \
--group-features
# Last 10 commits
devlog --limit 10 --llm ollama
# Generate changelog in CI pipeline
devlog --from $LAST_TAG --to $CI_COMMIT_SHA \
--llm ollama \
--output artifacts/CHANGELOG.md \
--no-consent-prompt
devlog --from v1.0.0 --to v2.0.0 --output CHANGELOG.md
devlog --from v1.0.0 --to v2.0.0 --format json --output changelog.json
devlog --from v1.0.0 --to v2.0.0 --group
Output:
## Features
- feat(auth): add user authentication
- feat(api): implement REST endpoints
## Bug Fixes
- fix(auth): correct token expiration
- fix(db): resolve connection pool issue
devlog --from v1.0.0 --to v2.0.0 --authors
Output:
- feat(auth): add user authentication [abc1234] (John Doe)
Create a .env file or export in your shell:
# For cloud LLMs (optional)
export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."
# Logging level
export DEVLOG_LOG_LEVEL="info" # trace, debug, info, warn, error
export RUST_LOG="devlog=debug"
# Privacy mode (for cloud providers)
export DEVLOG_PRIVACY_MODE="strict" # strict, moderate, relaxed
When using cloud providers:
# Maximum privacy (default)
devlog --llm openai --privacy-level strict
# Keep file paths
devlog --llm openai --privacy-level moderate
# No sanitization (local LLMs only)
devlog --llm ollama --privacy-level relaxed
devlog --version
cd devlog
cargo test
devlog --help
# Clone a sample repository
git clone https://github.com/rust-lang/rust-analyzer.git
cd rust-analyzer
# Generate changelog
devlog --limit 10
Solution 1: Use full path
./target/release/devlog --help
Solution 2: Install to system
cargo install --path .
# Ensure ~/.cargo/bin is in PATH
Check Ollama is running:
curl http://localhost:11434/api/tags
Start Ollama:
ollama serve
Check your Git tags:
git tag -l
git log --oneline
Use valid references:
# Use commit hashes instead
devlog --from abc1234 --to def5678
For OpenAI:
export OPENAI_API_KEY="sk-..."
For Anthropic:
export ANTHROPIC_API_KEY="sk-ant-..."
Make binary executable:
chmod +x target/release/devlog
Now that you have Devlog installed:
| Documentation: GitHub Pages | GitLab Pages |
| Issues: GitHub | GitLab |
| ← Back to Home | Next: Features → |