-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.ini
More file actions
86 lines (73 loc) · 2.42 KB
/
config.ini
File metadata and controls
86 lines (73 loc) · 2.42 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
# Agentic Code Optimization Configuration
# Agent Configuration
[agents]
max_iterations = 20
default_provider = ollama
timeout = 300
verbose = true
recursion_limit = 200
# ============================================================================
# MIDDLEWARE CONFIGURATION
# ============================================================================
# Middleware provides additional capabilities to agents during execution.
# Enable/disable individual middleware components below.
# Summarization Middleware - Automatically summarize conversation history when approaching token limits
enable_summarization = false
summarization_trigger_tokens = 4096
summarization_keep_messages = 20
summarization_model = gpt-5-mini
# To-do List Middleware - Provides task planning capabilities for multi-step operations
enable_todo_list = true
# LLM Tool Selector Middleware - Uses LLM to intelligently filter relevant tools before main model call
enable_llm_tool_selector = false
tool_selector_max_tools = 5
tool_selector_always_include =
tool_selector_model = gpt-5-mini
# Tool Retry Middleware - Automatically retry failed tool calls with exponential backoff
enable_tool_retry = true
tool_retry_max_retries = 3
tool_retry_backoff_factor = 2.0
tool_retry_initial_delay = 1.0
# Context Editing Middleware - Manages conversation context by clearing older tool outputs
enable_context_editing = true
context_edit_trigger_tokens = 100000
context_edit_keep_tool_uses = 3
# Shell Tool Middleware - Exposes persistent shell session for command execution
enable_shell_tool = true
shell_workspace_root = /Users/parth/agentic-code-optimization
# File Search Middleware - Provides glob and regex search capabilities over filesystem
enable_file_search = true
file_search_use_ripgrep = true
# Ollama Local Provider
[ollama]
base_url = http://localhost:11434
; model = gpt-oss:120b
; model = devstral-small-2:24b
model = devstral-2:123b
temperature = 0.7
max_tokens = 32768
timeout = 300
keep_alive = 20m
# OpenAI Provider
[openai]
api_key = ${OPENAI_API_KEY}
model = gpt-5.2
; model = gpt-5.2-2025-12-11
temperature = 0.7
max_tokens = 32768
timeout = 300
organization_id = ${OPENAI_ORGANIZATION_ID}
# Anthropic Claude Provider
[anthropic]
api_key = ${ANTHROPIC_API_KEY}
model = claude-3-5-sonnet-20241022
temperature = 0.7
max_tokens = 4096
timeout = 60
# Gemini Provider
[gemini]
api_key = ${GEMINI_API_KEY}
model = gemini-3-pro-preview
temperature = 0.7
max_tokens = 32768
timeout = 300