-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagent-runner.config.json
More file actions
150 lines (150 loc) · 5.55 KB
/
agent-runner.config.json
File metadata and controls
150 lines (150 loc) · 5.55 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
"owner": "metyatech",
"repos": "all",
"workdirRoot": "D:\\ghws",
"pollIntervalSeconds": 60,
"concurrency": 8,
"logMaintenance": {
"enabled": true,
"maxAgeDays": 30,
"keepLatest": 2000,
"maxTotalMB": 1024,
"taskRunKeepLatest": 200,
"writeLatestPointers": true
},
"reportMaintenance": {
"enabled": true,
"maxAgeDays": 90,
"keepLatest": 500,
"maxTotalMB": 256
},
"amazonQ": {
"enabled": true,
"command": "wsl.exe",
"args": [
"-d",
"Ubuntu",
"--",
"bash",
"-lc",
"q chat --no-interactive --trust-all-tools --wrap never \"$1\"",
"--"
],
"promptMode": "arg"
},
"idle": {
"enabled": true,
"maxRunsPerCycle": 2,
"cooldownMinutes": 240,
"tasks": [
"Bring the repo into compliance with AGENTS.md and project docs/standards. Identify the highest-impact gap, fix it, and update docs/tests as needed. If nothing meaningful is needed, exit."
],
"promptTemplate": "You are running an autonomous idle task.\nTarget repo: {{repo}}\nTask: {{task}}\nOpen PR count: {{openPrCount}}\nOpen PR context:\n{{openPrContext}}\n\nRequirements:\n- Follow AGENTS.md rules.\n- This is Windows. If you run shell commands, use PowerShell syntax. Do not use `&&`; use `;` or separate commands.\n- Do not push directly to the main branch. Use a branch and open a PR if there are changes.\n- Do NOT merge or close the PR automatically. Leave it open for human review.\n- Post a short summary comment on the PR.\n- If there are no safe changes, exit cleanly without opening a PR.\n- After opening a PR, check out the main branch and pull to keep the local clone clean.\n- If the repo has uncommitted changes, exit without making changes.\n- Repository creation, splitting, renaming, archiving, or deletion is allowed when needed.\n- End your final response with:\nAGENT_RUNNER_STATUS: done\n<message to post to GitHub>\nInclude: changes made, tests run (or 'Not run'), commit hashes, and PR URL (or 'none').",
"usageGate": {
"enabled": true,
"timeoutSeconds": 20,
"minRemainingPercent": {
"fiveHour": 50
},
"weeklySchedule": {
"startMinutes": 1440,
"minRemainingPercentAtStart": 100,
"minRemainingPercentAtEnd": 0
}
},
"copilotUsageGate": {
"enabled": true,
"timeoutSeconds": 20,
"apiBaseUrl": "https://api.github.com",
"apiVersion": "2025-05-01",
"monthlySchedule": {
"startMinutes": 10080,
"minRemainingPercentAtStart": 100,
"minRemainingPercentAtEnd": 0
}
},
"geminiUsageGate": {
"enabled": true,
"strategy": "spare-only",
"startMinutes": 240,
"minRemainingPercentAtStart": 100,
"minRemainingPercentAtEnd": 0
},
"amazonQUsageGate": {
"enabled": true,
"monthlyLimit": 50,
"monthlySchedule": {
"startMinutes": 10080,
"minRemainingPercentAtStart": 100,
"minRemainingPercentAtEnd": 0
}
},
"claudeUsageGate": {
"enabled": true,
"minRemainingPercent": {
"fiveHour": 50
},
"weeklySchedule": {
"startMinutes": 1440,
"minRemainingPercentAtStart": 100,
"minRemainingPercentAtEnd": 0
}
},
"repoScope": "local"
},
"labels": {
"queued": "agent:queued",
"reviewFollowup": "agent:review-followup",
"reviewFollowupWaiting": "agent:review-followup:waiting",
"reviewFollowupActionRequired": "agent:review-followup:action-required",
"running": "agent:running",
"done": "agent:done",
"failed": "agent:failed",
"needsUserReply": "agent:needs-user-reply"
},
"managedAuthors": ["metyatech"],
"codex": {
"command": "codex",
"args": [
"exec",
"--dangerously-bypass-approvals-and-sandbox",
"-c",
"model_reasoning_effort=\"medium\"",
"--model",
"gpt-5.2"
],
"promptTemplate": "You are running an autonomous task. Follow AGENTS.md rules. Use repo(s): {{repos}}. Task:\n{{task}}\n\nRequirements:\n- GitHub operations (issues, PRs, commits, pushes) are allowed and are NOT considered external sending.\n- Do not send or post anything outside GitHub (email, LMS, Slack, web forms, etc.) unless the user explicitly approves in the issue. If external communication is required, prepare a draft message + attachments list + checklist and ask the user for explicit approval before any send/post.\n- Commit and push any code changes.\n- Reference the issue number in commit messages (e.g., 'Refs #<issue-number>').\n- End your final response with:\nAGENT_RUNNER_STATUS: done\n<message to post to GitHub>\n- If blocked and you need user input, use:\nAGENT_RUNNER_STATUS: needs_user_reply\n<message asking the user what is needed>\nInclude: changes made, tests run (or 'Not run'), and commit hashes."
},
"webhooks": {
"enabled": true,
"host": "127.0.0.1",
"port": 4312,
"path": "/webhooks/github",
"secretEnv": "AGENT_GITHUB_WEBHOOK_SECRET",
"catchup": {
"enabled": true,
"intervalMinutes": 60,
"maxIssuesPerRun": 50
}
},
"copilot": {
"command": "copilot",
"args": ["--allow-all", "--model", "gemini-3-pro-preview", "-p"]
},
"gemini": {
"command": "gemini",
"args": [
"--approval-mode",
"yolo",
"--allowed-tools",
"glob,read_file,read_many_files,list_directory,search_file_content,replace,write_file,run_shell_command,save_memory",
"-p"
]
},
"claude": {
"enabled": true,
"command": "claude",
"args": ["--dangerously-skip-permissions", "-p"],
"promptMode": "arg"
}
}