You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate .env template (no arg) or load config file
Review is always printed to stdout (or file with -o).
With --publish, review is additionally posted to the platform.
Source modes
Mode
Git command
Use case
auto
Smart detection: CI base, branch diff, or uncommitted
Default — works in CI and locally
staged
git diff --cached
Before committing
commit
git diff HEAD~1
After committing, before pushing
branch
target_branch...HEAD
Review all branch changes
Configuration
All settings can be set via environment variables, .env file, or --config file.
CLI flags take priority over env vars. Env vars take priority over .env.
junior --config > .env # generate template, then edit
AI Keys (one required)
Variable
Description
OPENAI_API_KEY
For OpenAI models
ANTHROPIC_API_KEY
For Anthropic models
Platform Tokens (set only one)
Variable
Description
GITLAB_TOKEN
GitLab token with api scope
GITHUB_TOKEN
GitHub token
Tuning
Variable
Default
Description
AGENT_BACKEND
pydantic
pydantic, claudecode, codex, deepagents
MODEL_PROVIDER
auto-detect
openai or anthropic (auto-detected from API key)
MODEL_NAME
gpt-5.4-mini / claude-opus-4-6
LLM model identifier
PROMPTS
security,logic,design
Comma-separated prompt names
SOURCE
auto
auto, staged, commit, branch
MAX_CONCURRENT_AGENTS
3
Limit parallel sub-agents (rate limit protection)
PUBLISH_OUTPUT
—
Write review to file instead of stdout
Exit codes
Code
Meaning
0
Review completed
1
Blocking issues found (critical or multiple high-severity)