-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmole.yaml.example
More file actions
83 lines (73 loc) · 2.88 KB
/
mole.yaml.example
File metadata and controls
83 lines (73 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Mole — AI-powered PR reviewer
# Copy this file to mole.yaml and fill in your values.
# All values can be overridden with MOLE_ prefixed env vars.
github:
# Create a GitHub App: https://github.com/settings/apps/new
app_id: 12345
private_key_path: /etc/mole/github-app.pem
webhook_secret: "your-webhook-secret"
llm:
# Your Anthropic API key
api_key: "sk-ant-..."
# Models (defaults shown)
review_model: "claude-sonnet-4-6"
deep_review_model: "claude-opus-4-6"
# Pricing per 1M tokens: [input, output]
# Used by the costs dashboard to estimate spending.
pricing:
claude-sonnet-4-6: [3.00, 15.00]
claude-opus-4-6: [15.00, 75.00]
mysql:
host: localhost
port: 3306
database: mole
user: mole
password: "your-password"
valkey:
host: localhost
port: 6379
server:
port: 8080
# development | production (default: production)
# In development mode, the dashboard login bypasses GitHub OAuth
# and provides role-based test logins (admin, dev, tech_lead, manager).
environment: production
worker:
# Number of concurrent review workers
count: 3
log:
# debug | info | warn | error
level: info
# Server-level defaults for review behavior.
# These apply to all repositories unless overridden by .mole/config.yaml in the repo.
defaults:
# Language for review comments: en, pt-BR
language: en
# Personality mode: mole (playful), formal (professional), minimal (terse)
personality: mole
# Codebase exploration (optional — requires git on the host)
# When configured, Mole clones repos locally and uses Haiku to explore
# the codebase before review, providing richer context to the reviewer.
# repos:
# base_path: "/var/lib/mole/repos"
#
# exploration:
# max_turns: 25 # total turns across all sessions (default: 25)
# model: "claude-sonnet-4-6" # exploration model (default: claude-sonnet-4-6)
# sessions: 1 # chunked sessions (default: 1 = single session)
# # Use sessions > 1 with smaller models (e.g. Haiku)
# # to work around context limits. Each session saves
# # findings and the next session continues from where
# # it stopped. Example: sessions: 5 with max_turns: 25
# # runs 5 sessions of 5 turns each.
# Dashboard
dashboard:
github_client_id: "your-oauth-app-client-id"
github_client_secret: "your-oauth-app-client-secret"
session_secret: "a-random-32-char-secret-here!!!"
base_url: "http://localhost:8080"
# Restrict access to members of a specific GitHub organization.
# Only users who belong to this org will be allowed to log in.
# Leave unset (or empty) to allow any authenticated GitHub user.
# Env override: MOLE_DASHBOARD_ALLOWED_ORG
allowed_org: "your-github-org"