Skip to content

Commit 8465d09

Browse files
authored
feat(ci): add agent feedback artifact upload to all workflows (#2160)
1 parent 8d99ef4 commit 8465d09

4 files changed

Lines changed: 46 additions & 2 deletions

File tree

.github/workflows/agent-android-bot.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,5 +154,13 @@ jobs:
154154
claude_args: >-
155155
--model claude-opus-4-6
156156
--allowedTools "${{ env.ALLOWED_TOOLS }}"
157-
--append-system-prompt "You are running on CI (GitHub Actions). Environment: Ubuntu runner with Android emulator running (device Android35). No iOS simulator. Use agent-device with --platform android --session droid. Read and use skills from .claude/skills/ when relevant. CI notes: use default Metro port (8081)."
157+
--append-system-prompt "You are running on CI (GitHub Actions). Environment: Ubuntu runner with Android emulator running (device Android35). No iOS simulator. Use agent-device with --platform android --session droid. Read and use skills from .claude/skills/ when relevant. CI notes: use default Metro port (8081). When done, write a brief feedback file to /tmp/agent-feedback.md covering: what you accomplished, tools you needed but couldn't use, issues with skill instructions, suggestions for improvement."
158158
prompt: ${{ github.event.inputs.prompt || '' }}
159+
160+
- name: Upload agent feedback
161+
if: always()
162+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
163+
with:
164+
name: agent-feedback-android-bot-${{ github.event.issue.number || github.event.pull_request.number || github.run_id }}
165+
path: /tmp/agent-feedback.md
166+
if-no-files-found: ignore

.github/workflows/agent-bot.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,13 @@ jobs:
7878
claude_args: >-
7979
--model claude-opus-4-6
8080
--allowedTools "${{ env.ALLOWED_TOOLS }}"
81-
--append-system-prompt "You are running on CI (GitHub Actions). Environment: macOS runner with Xcode and iOS simulator. No Android emulator. Read and use skills from .claude/skills/ when relevant. CI notes: use default Metro port (8081)."
81+
--append-system-prompt "You are running on CI (GitHub Actions). Environment: macOS runner with Xcode and iOS simulator. No Android emulator. Read and use skills from .claude/skills/ when relevant. CI notes: use default Metro port (8081). When done, write a brief feedback file to /tmp/agent-feedback.md covering: what you accomplished, tools you needed but couldn't use, issues with skill instructions, suggestions for improvement."
8282
prompt: ${{ github.event.inputs.prompt || '' }}
83+
84+
- name: Upload agent feedback
85+
if: always()
86+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
87+
with:
88+
name: agent-feedback-bot-${{ github.event.issue.number || github.event.pull_request.number || github.run_id }}
89+
path: /tmp/agent-feedback.md
90+
if-no-files-found: ignore

.github/workflows/agent-fix.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,17 @@ jobs:
7979
Fix this GitHub issue. Read and follow .claude/skills/fix-github-issue/SKILL.md for the full workflow.
8080
After fixing, read and follow .claude/skills/raise-pr/SKILL.md to raise a PR.
8181
CI notes: use default Metro port (8081).
82+
83+
When done (whether successful or not), write a brief feedback file to /tmp/agent-feedback.md with:
84+
- What you accomplished (or where you got stuck)
85+
- Any tools you needed but couldn't use
86+
- Any issues with the skill instructions
87+
- Suggestions for improvement
88+
89+
- name: Upload agent feedback
90+
if: always()
91+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
92+
with:
93+
name: agent-feedback-fix-${{ github.event.issue.number || github.run_id }}
94+
path: /tmp/agent-feedback.md
95+
if-no-files-found: ignore

.github/workflows/agent-triage.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,17 @@ jobs:
3434
prompt: |
3535
You are running on CI (GitHub Actions).
3636
Read the skill file at .claude/skills/triage-issue/SKILL.md and follow its instructions to triage this issue.
37+
38+
When done, write a brief feedback file to /tmp/agent-feedback.md with:
39+
- What you accomplished
40+
- Any tools you needed but couldn't use
41+
- Any issues with the skill instructions
42+
- Suggestions for improvement
43+
44+
- name: Upload agent feedback
45+
if: always()
46+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
47+
with:
48+
name: agent-feedback-triage-${{ github.event.issue.number }}
49+
path: /tmp/agent-feedback.md
50+
if-no-files-found: ignore

0 commit comments

Comments
 (0)