Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
88 lines (79 loc) · 3.06 KB
/
Copy path.env.example
File metadata and controls
88 lines (79 loc) · 3.06 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
84
85
86
87
88
# --- Secrets ---
# Required for LLM calls (OpenRouter / opencode harness)
OPENROUTER_API_KEY=
# GitHub PAT for clone/post; optional if using GitHub App auth below
GH_TOKEN=
# --- AgentField ---
AGENTFIELD_SERVER=http://localhost:8080
AGENTFIELD_API_KEY=
# Use http://pr-af:8004 when running via docker compose; http://127.0.0.1:8004 when running on host
AGENT_CALLBACK_URL=http://127.0.0.1:8004
# Public CP URL for HITL webhooks (Railway cross-project); leave empty for local single-project setups
AGENTFIELD_PUBLIC_URL=
NODE_ID=pr-af
# --- AI / harness config ---
# AForge exec is the default. Set PR_AF_PROVIDER=opencode to roll back.
PR_AF_PROVIDER=aforge
# Read by the Go node's SDK adapter; the pinned Python SDK always runs `exec`.
AGENTFIELD_AFORGE_COMMAND=exec
PR_AF_MODEL=deepseek/deepseek-v4-flash-0731
# Falls back to PR_AF_MODEL when unset
# PR_AF_AI_MODEL=
PR_AF_MAX_TURNS=50
PR_AF_AI_MAX_RETRIES=3
PR_AF_AI_INITIAL_BACKOFF_SECONDS=2.0
PR_AF_AI_MAX_BACKOFF_SECONDS=8.0
PR_AF_OPENCODE_BIN=opencode
PR_AF_AFORGE_BIN=aforge
# Optional provider-agnostic harness executable override (leave unset to use provider defaults)
# PR_AF_HARNESS_BIN=
PR_AF_OPENCODE_SERVER=
# Harness no-output watchdog window (seconds). Harness CLIs in JSON mode emit
# events only at completion boundaries, so long single completions look silent.
AGENTFIELD_HARNESS_IDLE_SECONDS=360
# Alternate LLM provider keys (forwarded to harness when set)
ANTHROPIC_API_KEY=
OPENAI_API_KEY=
GOOGLE_API_KEY=
# --- Review budget / repo paths ---
PR_AF_MAX_COST_USD=2.0
PR_AF_MAX_DURATION_SECONDS=3600
PR_AF_WORKDIR=/workspaces
# Defaults to cwd when unset
PR_AF_REPO_PATH=
# Fallback for Git operations without an operation-specific override
# PR_AF_GIT_TIMEOUT_SECONDS=600
# PR_AF_GIT_CLONE_TIMEOUT_SECONDS=600
# PR_AF_GIT_FETCH_TIMEOUT_SECONDS=600
# PR_AF_GIT_CHECKOUT_TIMEOUT_SECONDS=600
# Python has no diff timeout by default; the Go node defaults to 120 seconds
# PR_AF_GIT_DIFF_TIMEOUT_SECONDS=120
# Set to 0 only when using a derived image with git-lfs and LFS content is needed
# GIT_LFS_SKIP_SMUDGE=1
# Use /home/praf/.local/share in docker; set a host path when running outside docker
XDG_DATA_HOME=/home/praf/.local/share
# --- GitHub auth alternatives + webhooks ---
GITHUB_APP_ID=
GITHUB_APP_PRIVATE_KEY=
GITHUB_WEBHOOK_SECRET=
PR_AF_BOT_MENTION=@pr-af
# Adding this label to a PR triggers a review via webhook (alt to @mention)
PR_AF_LABEL=pr-af
# Optional per-deployment caps for webhook-triggered reviews (unset = defaults).
# Useful to protect a small/shared host from resource spikes.
# PR_AF_MAX_CONCURRENT_REVIEWERS=1
# PR_AF_MAX_REVIEW_DEPTH=0
# PR_AF_MAX_COVERAGE_ITERATIONS=1
# --- Human-in-the-loop (optional) ---
# Set HAX_API_KEY to enable HITL review gate
HAX_API_KEY=
HAX_SDK_URL=http://localhost:3000
AGENTFIELD_APPROVAL_USER_ID=
# --- CI script (optional for local dev) ---
# Required only when running scripts/ci_runner.py
PR_URL=
# --- Docker Compose agentfield service ---
# Used by docker compose up; not read by PR-AF Python code directly
AF_MODE=dev
AGENTFIELD_HTTP_ADDR=0.0.0.0:8080
AGENTFIELD_STORAGE_MODE=local