Skip to content

Commit 59ca984

Browse files
committed
update
1 parent d42f454 commit 59ca984

1 file changed

Lines changed: 22 additions & 8 deletions

File tree

.github/workflows/repo-assist.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,23 @@ steps:
9898
repo_assist_prs = sum(1 for p in prs if p['title'].startswith('[Repo Assist]'))
9999
other_prs = sum(1 for p in prs if not p['title'].startswith('[Repo Assist]'))
100100
101+
task_names = {
102+
1: 'Issue Labelling',
103+
2: 'Issue Investigation and Comment',
104+
3: 'Issue Investigation and Fix',
105+
4: 'Engineering Investments',
106+
5: 'Coding Improvements',
107+
6: 'Maintain Repo Assist PRs',
108+
7: 'Stale PR Nudges',
109+
8: 'Performance Improvements',
110+
9: 'Testing Improvements',
111+
10: 'Take the Repository Forward',
112+
}
113+
101114
weights = {
102-
1: 1 + unlabelled,
103-
2: 3 + 0.3 * open_issues,
104-
3: 3 + 0.3 * open_issues,
115+
1: 1 + 3 * unlabelled,
116+
2: 3 + 1 * open_issues,
117+
3: 3 + 0.7 * open_issues,
105118
4: 5 + 0.2 * open_issues,
106119
5: 5 + 0.1 * open_issues,
107120
6: float(repo_assist_prs),
@@ -136,22 +149,22 @@ steps:
136149
print('Task weights:')
137150
for t, w in weights.items():
138151
tag = ' <-- SELECTED' if t in chosen else ''
139-
print(f' Task {t:2d}: weight {w:6.1f}{tag}')
152+
print(f' Task {t:2d} ({task_names[t]}): weight {w:6.1f}{tag}')
140153
print()
141-
print(f'Selected tasks for this run: Task {chosen[0]} and Task {chosen[1]}')
154+
print(f'Selected tasks for this run: Task {chosen[0]} ({task_names[chosen[0]]}) and Task {chosen[1]} ({task_names[chosen[1]]})')
142155
143156
result = {
144157
'open_issues': open_issues, 'unlabelled_issues': unlabelled,
145158
'repo_assist_prs': repo_assist_prs, 'other_prs': other_prs,
159+
'task_names': task_names,
146160
'weights': {str(k): round(v, 2) for k, v in weights.items()},
147161
'selected_tasks': chosen,
148162
}
149163
with open('/tmp/gh-aw/task_selection.json', 'w') as f:
150164
json.dump(result, f, indent=2)
151165
EOF
152166
153-
source: githubnext/agentics/workflows/repo-assist.md@4ee2ca4faa30612b9ed0d207472068f5efc9ecf3
154-
engine: copilot
167+
source: githubnext/agentics/workflows/repo-assist.md@5029c9574c7bd2baa70aab6c8de9ea09edf11803
155168
---
156169

157170
# Repo Assist
@@ -195,9 +208,10 @@ Read memory at the **start** of every run; update it at the **end**.
195208

196209
Each run, the deterministic pre-step collects live repo data (open issue count, unlabelled issue count, open Repo Assist PRs, other open PRs), computes a **weighted probability** for each task, and selects **two tasks** for this run using a seeded random draw. The weights and selected tasks are printed in the workflow logs. You will find the selection in `/tmp/gh-aw/task_selection.json`.
197210

198-
**Read the task selection**: at the start of your run, read `/tmp/gh-aw/task_selection.json` and confirm the two selected tasks in your opening reasoning. Execute **those two tasks** (plus the mandatory Task 11).
211+
**Read the task selection**: at the start of your run, read `/tmp/gh-aw/task_selection.json` and confirm the two selected tasks in your opening reasoning. Execute **those two tasks** (plus the mandatory Task 11). If there's really nothing to do for a selected task, do not force yourself to do it - try any other different task instead that looks most useful.
199212

200213
The weighting scheme naturally adapts to repo state:
214+
201215
- When unlabelled issues pile up, Task 1 (labelling) dominates.
202216
- When there are many open issues, Tasks 2 and 3 (commenting and fixing) get more weight.
203217
- As the backlog clears, Tasks 4–10 (engineering, improvements, nudges, forward progress) draw more evenly.

0 commit comments

Comments
 (0)