@@ -6,5 +6,60 @@ RAG_API_URL=http://host.docker.internal:8001
66CODECROW_API_URL = http://codecrow-web-application:8081
77
88# Platform MCP JAR path
9- PLATFORM_MCP_JAR = /app/codecrow-platform-mcp-1.0.jar\
10- INTERNAL_API_SECRET = codecrow-internal-secret-change-me
9+ PLATFORM_MCP_JAR = /app/codecrow-platform-mcp-1.0.jar
10+ INTERNAL_API_SECRET = codecrow-internal-secret-change-me
11+
12+ # === LLM Settings ===
13+ # Temperature for code review (0.0 = deterministic, 0.1-0.3 = more creative)
14+ LLM_TEMPERATURE = 0.0
15+
16+ # === Direct Review Mode ===
17+ # When rawDiff is provided in request, bypasses MCP agent for faster review
18+ # This is controlled by pipeline-agent sending rawDiff field
19+ # No configuration needed - automatic when rawDiff is present
20+
21+ # === Diff Processing Limits (matching MCP server LargeContentFilter) ===
22+ # Maximum file size in bytes (default: 25KB - same as LargeContentFilter.DEFAULT_SIZE_THRESHOLD_BYTES)
23+ DIFF_MAX_FILE_SIZE = 25600
24+ # Maximum files to include in review (default: 100)
25+ DIFF_MAX_FILES = 100
26+ # Maximum total diff size in bytes (default: 500KB)
27+ DIFF_MAX_TOTAL_SIZE = 500000
28+ # Maximum lines per file (default: 1000)
29+ DIFF_MAX_LINES_PER_FILE = 1000
30+
31+ # === LLM Reranking (for large PRs) ===
32+ # Enable LLM-based reranking for large PRs
33+ LLM_RERANK_ENABLED = true
34+ # Minimum files to trigger LLM reranking (default: 20)
35+ LLM_RERANK_THRESHOLD = 20
36+ # Max RAG items to rerank via LLM
37+ LLM_RERANK_MAX_ITEMS = 15
38+
39+ # === RAG Context Settings ===
40+ # Minimum relevance score for RAG results (0.0-1.0)
41+ RAG_MIN_RELEVANCE_SCORE = 0.7
42+ # Default number of RAG chunks to retrieve
43+ RAG_DEFAULT_TOP_K = 15
44+ # Cache TTL in seconds
45+ RAG_CACHE_TTL_SECONDS = 300
46+ # Max cache entries
47+ RAG_CACHE_MAX_SIZE = 100
48+
49+ # === Context Budget (token allocation percentages, must sum to 1.0) ===
50+ CONTEXT_BUDGET_HIGH_PRIORITY_PCT = 0.30
51+ CONTEXT_BUDGET_MEDIUM_PRIORITY_PCT = 0.40
52+ CONTEXT_BUDGET_LOW_PRIORITY_PCT = 0.20
53+ CONTEXT_BUDGET_RAG_PCT = 0.10
54+
55+ # === Prompt Logging (Debug) ===
56+ # Enable prompt logging for debugging
57+ PROMPT_LOG_ENABLED = true
58+ # Log full prompts to file
59+ PROMPT_LOG_TO_FILE = true
60+ # Also log to console (verbose)
61+ PROMPT_LOG_TO_CONSOLE = false
62+ # Directory for prompt logs
63+ PROMPT_LOG_DIR = /tmp/codecrow_prompts
64+ # Max log files to keep (auto-cleanup)
65+ PROMPT_LOG_MAX_FILES = 50
0 commit comments